简体   繁体   English

如何为客户端应用程序创建配置文件?

[英]How to create provisioning profile for client app?

I created an app and sold it to a client.我创建了一个应用程序并将其出售给客户。 Fast forward 10 months, he asked me to do some work on the app which I did.快进 10 个月,他让我为我所做的应用程序做一些工作。 Now I am trying to submit the app for him.现在我正在尝试为他提交应用程序。

I have the "App Manager" role in iTunesConnect.我在 iTunesConnect 中有“应用程序管理员”角色。 The issue I am having is that when I try to Archive the app in Xcode I get the following issues:我遇到的问题是,当我尝试在 Xcode 中存档应用程序时,出现以下问题:

Failed to create provisioning profile.未能创建配置文件。 The app ID "com.xxxx.xxxx" cannot be registered to your development team.您的开发团队无法注册应用 ID“com.xxxx.xxxx”。 Change your bundle identifier to a unique string to try again.将您的捆绑标识符更改为唯一字符串以重试。

and

No profiles for 'com.xxxx.xxxx' were found.找不到“com.xxxx.xxxx”的配置文件。 Xcode couldn't find a provisioning profile matching 'com.xxxx.xxxx'. Xcode 找不到与“com.xxxx.xxxx”匹配的配置文件。

I've created provisioning profiles before but how would I go about creating this one?我之前已经创建了配置文件,但我将如何创建这个配置文件? If I need the "App ID" to create it through https://developer.apple.com/ , how would I recreate that?如果我需要“App ID”来通过https://developer.apple.com/创建它,我将如何重新创建它? I deleted this app id when I sold it almost a year ago.大约一年前,当我出售它时,我删除了这个应用程序 ID。

My train of thought is going like this right now: the client added me as an app manager and I can now see the app I am doing work on in itunesconnect.apple.com .我现在的思路是这样的:客户将我添加为应用程序管理员,我现在可以在itunesconnect.apple.com 中看到我正在处理的应用程序。 How do I make this 'team' appear in Xcode in order to get the provisioning profile?如何让这个“团队”出现在 Xcode 中以获取配置文件?

Right-now you are added as App-Manager to your client's iTunes-Account.现在,您已作为 App-Manager 添加到您客户的 iTunes 帐户中。 This gives you right to do some management stuff on iTunes (upload build, submit, testflight, create app...), but nothing related to the Xcode side.这使您有权在 iTunes 上做一些管理工作(上传构建、提交、测试飞行、创建应用程序...),但与 Xcode 方面无关。 That's why the Team and Role will never appears in your Xcode account.这就是团队和角色永远不会出现在您的 Xcode 帐户中的原因。 (You are not added yet!) (您还没有添加!)

You need to be added to the Team of their Apple-Developper-Account with at least Team-Admin privileges to be able to do all aspects of development & distribution.您需要被添加到他们的 Apple-Developper-Account 的团队中,并且至少具有 Team-Admin 权限才能进行开发和分发的所有方面。

Team admins manage all assets used to sign your apps, either during development or when your team is ready to distribute an app.团队管理员管理用于签署您的应用程序的所有资产,无论是在开发期间还是在您的团队准备分发应用程序时。

Managing Your Developer Account Team 管理您的开发者帐户团队

Also your client needs to be enrolled as organization to be able to add people.此外,您的客户需要注册为组织才能添加人员。

If you have an organization membership in the Apple Developer Program, you can add people to your team and assign them roles, thereby granting them levels of access to team assets.如果您拥有 Apple Developer Program 的组织成员资格,您可以将人员添加到您的团队并为其分配角色,从而授予他们对团队资产的访问级别。

Also keep in mind that the switch from an individual Account to an organization is a time consuming process, and it's not straight forward.另请记住,从个人帐户切换到组织是一个耗时的过程,而且不是一蹴而就的。 They need the organization to provide some administrative info about the company.他们需要组织提供有关公司的一些管理信息。 I advise to not advise them to switch right now but after the release to iTunes.我建议不要建议他们立即切换,而是在发布到 iTunes 之后切换。

The quick solution is to use their apple-id to build and release, or to have one of them do it for you.快速的解决方案是使用他们的 apple-id 来构建和发布,或者让他们中的一个为你做。

I had the same issue a few months ago.几个月前我遇到了同样的问题。

Failed to create provisioning profile. The app ID "com.xxxx.xxxx" 
cannot be registered to your development team. Change your 
bundle identifier to a unique string to try again.

The cause (for me) was that our company had a $99 Apple Developer account (so we could put our app on the App Store) and a $299 Apple Enterprise Account (so we could create and privately distribute in-house apps)原因(对我而言)是我们公司有一个 99 美元的 Apple Developer 帐户(因此我们可以将我们的应用程序放在 App Store 上)一个 299 美元的 Apple Enterprise 帐户(因此我们可以创建和私下分发内部应用程序)

On the Apple Developer website, we had registered our com.MikesCompany.AppName ID whilst logged into our $99 Developer Account, as our goal was to sell it via the App Store.在 Apple Developer 网站上,我们在登录 99 美元的开发者帐户的同时注册了我们的com.MikesCompany.AppName ID,因为我们的目标是通过 App Store 销售它。

But, of course, when we were developing and testing our app, using our Enterprise Account, Xcode stubbornly refused to let us use this App ID in a Provisioning Profile as it was "already in use".但是,当然,当我们使用我们的企业帐户开发和测试我们的应用程序时,Xcode 顽固地拒绝让我们在 Provisioning Profile 中使用这个 App ID,因为它“已经在使用中”。

There are many reasons I loathe Xcode (and looking at its rating in the Apple App Store, I'm far from being alone) and this whole code-signing stuff is one of the main reasons...我讨厌 Xcode 的原因有很多(看看它在 Apple App Store 中的评分,我并不孤单),这整个代码签名的东西是主要原因之一......

Year after year, it just doesn't get better (even the new "Automatic Code Signing" feature allows you to build versions which will blatantly never run on a device, and give you the hopeless and misleading " AppName cannot be installed at this time " message).年复一年,它并没有变得更好(即使是新的“自动代码签名”功能也允许您构建公然永远不会在设备上运行的版本,并给您带来绝望和误导“ AppName cannot be installed at this time “ 信息)。

Anyway, the answer to your question... make sure that you are building your app using a member of the correct group where your App ID was created in.无论如何,您的问题的答案......确保您正在使用创建您的 App ID 的正确组的成员构建您的应用程序。

The way i got your question is you first need a valid dev suscribed account than check if any app id exists in your developer account(at developer.apple.com) with bundle identifier com.XXXXXX.XXXX (which you are getting in Xcode) if not than create one.我得到你的问题的方式是你首先需要一个有效的开发者订阅帐户,而不是检查你的开发者帐户(在 developer.apple.com)中是否存在任何应用程序 ID包标识符为 com.XXXXXX.XXXX (你在 Xcode 中得到)如果不是创建一个。

Go in provisional profiles tab(at developer.apple.com) and check if any profile exists which contains you that appId.进入临时配置文件选项卡(在 developer.apple.com)并检查是否存在包含您该 appId 的任何配置文件。 if not than add it to any provisional profile with valid development certificates added to it for same app Id .如果不是,则将其添加到任何临时配置文件中,并为相同的应用程序 Id添加了有效的开发证书

In you Xcode Go to Preferences>Accounts ( add your dev account if not added ) > select personal team or team > download the provisional profile on which Download appears.在您的Xcode 中,转到首选项>帐户(如果未添加,请添加您的开发帐户) > 选择个人团队或团队>下载显示下载的临时配置文件 Check if code-signing issue disappears in General Tab and in your Build setting you have selected valid provisional profile selected .检查常规选项卡中的代码签名问题是否消失,并且在您的构建设置中您选择了有效的临时配置文件 selected

Here's how I solved a very similar issue.这是我如何解决一个非常相似的问题。

  1. The client needs to check the box 'Access to Certificates, Identifiers & Profiles' for your account in App Store Connect.客户需要在 App Store Connect 中为您的帐户选中“访问证书、标识符和配置文件”框。 This will allow you access to their developer.apple.com portal as well as allow you access to the Team profile inside of Xcode .这将允许您访问他们的 developer.apple.com 门户,并允许您访问Xcode 内团队配置文件
  2. Open Xcode > Preferences > Accounts select the account that your client added to their App Store Connect.打开 Xcode > Preferences > Accounts 选择您的客户添加到其 App Store Connect 的帐户。 You should see their Team name under the Team section.您应该在“团队”部分下看到他们的团队名称。 If you don't, something went wrong, ensure you added as a developer, that you accepted the invite, that you are logged into the correct account in Xcode, etc.如果您不这样做,则出现问题,请确保您已添加为开发人员,您接受了邀请,您在 Xcode 中登录了正确的帐户等。
  3. In Xcode select your Project File > Target > Signing & Capabilities under team, do not select your personal team profile, select their team profile, this should be the name of their App Store Connect organization.在 Xcode 中,在团队下选择您的项目文件 > 目标 > 签名和功能,不要选择您的个人团队配置文件,选择他们的团队配置文件,这应该是他们的 App Store Connect 组织的名称。

And that's it, the app should build, run, and you should be able to submit updates to their App Store Connect without issue.就是这样,应用程序应该构建、运行,并且您应该能够毫无问题地向他们的 App Store Connect 提交更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM