如何更改现有应用程序的配置文件? [英] How to change provisioning profile for existing app?

本文介绍了如何更改现有应用程序的配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从未开发过适用于iPhone的应用程序,但是我们的客户有一个应用程序,该应用程序是由他以前的供应商开发的,因为该供应商已经从他的国家/地区打包了自己的业务,因此,现在我们可以为该应用程序获取该源代码了发展.我们需要立即采取的行动是,该应用程序未在iOS 11.0上运行,我们需要为11.0提供构建.

I have never developed apps for iPhone, but our client has an app, which was developed by his previous vendor, now that vendor has wrapped up his operation from our country, So now we have that source code for that app for further development. The immediate action we need to take is that the app is not running on iOS 11.0 and we need to provide build for 11.0.

因此,我在Xcode中打开了该应用程序,并将部署目标设置为iOS 11,该应用程序构建成功并且正在模拟器上运行,因此我认为可以在真实设备上进行检查,但是当我连接设备并询问Xcode时在我的设备上进行构建和部署时,我收到了错误消息.

So I opened the app in Xcode and set deployment target to iOS 11, the app build was successful and it is running on the simulator, So I thought lets check it on real device, but when I connected a device and asked Xcode to build and deploy on my device I received the error.

找不到与"PROTEST"匹配的团队"***********"的配置文件:Xcode找不到与"***********/PROTEST"匹配的任何配置文件.安装配置文件(通过将其拖放到Xcode的停靠项上)或在目标编辑器的常规"选项卡中选择其他配置文件.

No profile for team '***********' matching 'PROTEST' found: Xcode couldn't find any provisioning profiles matching '***********/PROTEST'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.

SDK'iOS 11.1'中的产品类型'Application'需要代码签名

Code signing is required for product type 'Application' in SDK 'iOS 11.1'

据我了解,我需要为iOS应用开发创建配置文件.

So as I have understood I need to create provisioning profile for app development for iOS.

有人需要指导我吗,我需要知道如何创建配置文件,以及如何将其用于以前由其他人开发的现有项目.

Can someone please guide me, I need to know, how to create a provisioning profile and how should I use for existing project which was developed by someone else before.

注意:***********代表密钥或供应配置文件ID,我不确定,但我认为我应该对其进行审查.

NOTE: the *********** represent the key or provisioning profile ID, I am not really sure but I thought I should censor it.

推荐答案

请按照以下步骤操作:

  1. 登录到developer.apple.com/membercenter并根据需要生成证书,APP ID,供应配置文件(开发人员,分发).有关详细信息,请参阅Apple开发文档: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html
  2. 在该dev帐户中注册您的设备UUID并添加它,当您创建开发人员配置文件时,可能不需要分发(如果其企业帐户和您正在创建通用分发配置文件).

  1. Login to the developer.apple.com/membercenter and generate the Certificate, APP ID, Provisioning profile (Developer, Distribution) as your needs. Refer Apple development doc for details: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html
  2. In that dev-account register your device UUID and add that when you are creating a developer profile, distribution may not require though(if its enterprise account and you creating Universal distribution profile).

现在在您的项目中执行此操作

Do this in your project now

  • 转到您的应用->单击左侧项目导航器窗口中的项目
  • 在右侧检查您将看到项目设置
  • 单击常规"选项卡,然后将捆绑包标识符输入为您的APP ID 只是在开发者帐户的上面第1步中创建的.
  • 现在选中自动配置"复选框,这是从创建AppID的开发者帐户中自动选择配置文件的简便方法. (请注意,请转到您的Xcode首选项和帐户"标签以输入相同的开发帐户凭据,以便XCode可以自动为您下载并创建配置文件)
  • 现在连接您的设备,您应该会在左上角看到该设备.
  • 运行项目,您将看到该应用程序已在设备上安装.
  • Go to your App --> Click project on left project navigator window
  • Check on the right side you will see project settings
  • Click general tab and enter the bundle identifier as the APP ID you just created in step 1 above from dev account.
  • Now select the checkbox "Automatic provisioning" this is an easy way to automatically pick the profile from the developer account that you have used for appID creation. (note go to your Xcode preference and Accounts tab to enter the same dev-account credentials so XCode can automatically download and create profiles for you)
  • Now connect your device and you should see the device reflected to the top left corner.
  • Run the project and you will see the app is getting installed on the device.

SDK'iOS 11.1'中产品类型'Application'要求代码签名-为此,您只需确保所有Pod和库都不必将代码签名"设置为内部版本设置区域,只有应用和扩展程序(如果有的话)都使用您从Apple创建的正确证书进行签名.

Code signing is required for product type 'Application' in SDK 'iOS 11.1' -- For this you just make sure all the Pods and libraries are having to Do not Code sign set to the build settings area and only the App and extensions if any are signed with the right certificate you created from apple.

此外,请注意以下事项:如果以前的供应商已从其Apple帐户释放了二进制文件,则无法使用您的Apple帐户创建相同的捆绑包ID.因此,除非供应商从此帐户撤消/删除捆绑包ID,否则最终将其作为AppStore上的新应用程序使用.

Also, note on this: If the previous vendor has released the binary from his apple account, you cannot create the same bundle ID with your apple account. Hence you end up having this as a new app on AppStore unless the vendor revokes/delete the bundle Id from this account.

希望这会有所帮助.

这篇关于如何更改现有应用程序的配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆