如何更改现有应用程序的配置文件? [英] 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' 中的产品类型应用程序"需要代码签名

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、Provisioning 配置文件(Developer、Distribution).有关详细信息,请参阅 Apple 开发文档:https:///developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html
  2. 在该开发帐户中注册您的设备 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

  • 转到您的应用程序 --> 单击左侧项目导航器窗口中的项目
  • 检查右侧您将看到项目设置
  • 单击常规选项卡并输入捆绑标识符作为您的应用程序 ID刚刚在上面的第 1 步中从开发者帐户创建.
  • 现在选中自动配置"复选框,这是一种从您用于创建 appID 的开发者帐户中自动选择配置文件的简便方法.(注意转到您的 Xcode 首选项和帐户选项卡以输入相同的开发帐户凭据,以便 XCode 可以自动为您下载和创建配置文件)
  • 现在连接您的设备,您应该会看到设备反映在左上角.
  • 运行该项目,您将看到该应用已安装在设备上.

SDKiOS 11.1"中的产品类型应用程序"需要代码签名 -- 为此,您只需确保所有 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.

另外,请注意:如果以前的供应商已经从他的苹果帐户发布了二进制文件,则您不能使用您的苹果帐户创建相同的捆绑 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天全站免登陆