xcode 如何绕过Apple应用程序ID疯狂
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36922738/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to get around Apple app ID insanity
提问by Karl
As you all know, Apple changed how Xcode works such that you can't ever create an app with a previously used app ID, even if you're just writing test apps to use locally. Up until now I've just been typing in garbage IDs to get around this stupid antifeature, but today I was greeted with this gem:
众所周知,Apple 改变了 Xcode 的工作方式,因此您永远无法使用以前使用的应用程序 ID 创建应用程序,即使您只是编写测试应用程序以在本地使用。到目前为止,我一直在输入垃圾 ID 来绕过这个愚蠢的反功能,但今天我收到了这个宝石:
So now I'm blocked from creating any more test apps, effectively stopping my development dead in its tracks (I write libraries and frameworks, and need to test them in test apps).
所以现在我无法创建任何更多的测试应用程序,有效地阻止我的开发停滞不前(我编写库和框架,并且需要在测试应用程序中测试它们)。
Does anyone know of a way to bypass or disable Apple's restrictions?
有谁知道绕过或禁用 Apple 限制的方法?
采纳答案by Darko
Same thing happened to me. I presume it's some kind of a new limit that Apple has put on "non-paying" developers, and that it limits you to 10 apps in 7 days.
同样的事情发生在我身上。我认为这是 Apple 对“非付费”开发人员施加的某种新限制,并且将您限制在 7 天内最多 10 个应用程序。
Edit - To resolve this, I'll just make a random apple dev ID...
编辑 - 为了解决这个问题,我将制作一个随机的苹果开发 ID...
回答by Fadi
It is type of limits of free developer accounts, but we could figure out a solution for that too :
这是免费开发者帐户的限制类型,但我们也可以找到解决方案:
1- Navigate to the project of any previous application that have been installed on the same device has the problem with .
1- 导航到已安装在同一设备上的任何以前的应用程序的项目有问题。
2- Open Build Settings tab
for the app project in Xcode
.
2-Build Settings tab
在Xcode
.
3- Search for Bundle ID
and copy it .
3-搜索Bundle ID
并复制它。
4- Open up your current app that has the problem and navigate to the same place > Paste and Replace the current Bundle ID
with the old one.
4-打开当前有问题的应用程序并导航到同一位置>粘贴并用Bundle ID
旧应用程序替换当前应用程序。
5- Run the app.
5- 运行应用程序。
!!! WALA
!!!WALA
回答by Raj
I faced the same situation in my new mackbook with xcode 7.3.1 version. Even if I tried with old bundle identifier, it didnt worked.Following below steps helped me to run the app in device.
我在使用 xcode 7.3.1 版本的新 macbook 中遇到了同样的情况。即使我尝试使用旧的包标识符,它也没有奏效。以下步骤帮助我在设备中运行该应用程序。
- Got to xcode preference
- Click accounts and choose your apple id.
- 得到了 xcode 偏好
- 单击帐户并选择您的 Apple ID。
This will download all the provisioning profile associated with given apple id. And after that use any identifier that you have used before. You can easily get the old identifier from provisioning profile names.
这将下载与给定 Apple ID 关联的所有配置文件。然后使用您之前使用过的任何标识符。您可以轻松地从配置文件名称中获取旧标识符。
回答by Anand Prem
Just use the bundle ID of any old app that you have already installed like this and change the bundle ID after 7 days. I think apple puts a limit for free developer accounts.
只需像这样使用您已经安装的任何旧应用程序的捆绑 ID,并在 7 天后更改捆绑 ID。我认为苹果对免费开发者帐户设置了限制。
EDIT: Its important about what @haquangvu mentioned in his answer that, your old app get replaced. So take care of it and thanks @haquangvu for your answer.
编辑:重要的是@haquangvu 在他的回答中提到的,你的旧应用程序被替换了。所以请照顾好它并感谢@haquangvu 的回答。
回答by haquangvu
Use one of your old Bundle IDs. It works. But your old Application will be delete.
使用旧的 Bundle ID 之一。有用。但是您的旧应用程序将被删除。
回答by Rafael Fernandes
DO NOT MAKE ANOTHER ID thats not the solution!!!
不要制作另一个不是解决方案的 ID!!!
To make it work thats what you need to do:
为了使它工作,这就是你需要做的:
Window > Preferences - Account
Then choose your apple ID and your team, then click on View Detail...
Button on the bottom right.
然后选择您的 Apple ID 和您的团队,然后单击右下角的View Detail...
按钮。
A new window will show up, click on Download all
button on the bottom left and all of yours Provisioning Profile will show up.
将出现一个新窗口,单击左下角的Download all
按钮,您的所有配置文件都会显示出来。
After that just Left click on those ones you don't have to use anymore and click to move to trash.
之后,只需左键单击那些您不再需要使用的,然后单击移至垃圾箱。
after you delete enough profiles, you'll be able to build your project again!
删除足够的配置文件后,您将能够再次构建您的项目!
回答by Pedro
I had this and the other answers here didn't fix the problem. I solved it by opening Window > Devices, finding my device, right-clicking it to "Show Provisioning Profiles", and then deleting a bunch of the profiles there.
我有这个,这里的其他答案没有解决问题。我通过打开窗口 > 设备,找到我的设备,右键单击它以“显示配置文件”,然后删除那里的一堆配置文件来解决它。
Then it worked!
然后它起作用了!
回答by leanne
I have a paid developer account and found this happening in Xcode 9 after creating a bunch of simple test/example apps. In the past, I would have simply selected a "wildcard" App ID. However, Xcode doesn't seem to have a way to do this anymore.
我有一个付费的开发者帐户,在创建了一堆简单的测试/示例应用程序后,发现这在 Xcode 9 中发生。过去,我会简单地选择一个“通配符”App ID。然而,Xcode 似乎没有办法做到这一点了。
Researching based on the wildcard, I found Technical Q&A QA1713: When should I use a wildcard App ID?. Following these steps seems to have worked for me. (The signing errors are gone, but we'll see what happens in another 7 days or 10 apps, lol.)
基于通配符的研究,我发现了技术问答 QA1713:我什么时候应该使用通配符 App ID?. 遵循这些步骤似乎对我有用。(签名错误消失了,但我们会在另外 7 天或 10 个应用程序中看到会发生什么,哈哈。)
Here are the steps, if you have a paid developer account:
如果您有付费开发者帐户,请执行以下步骤:
- Log into your developer account.
- In the list on the left, click on Certificates, Profiles & IDs.
- In the new list on the left, under Identifiers, click on App IDs.
- Click the '+' symbol in the upper right of the page. (You're now at the 'Registering an App ID' page.)
- In the box under App ID Description, enter something to describe your App ID. (Note that this description has to be purely alphanumeric; spaces seem to be allowed, but nothing else.)
- Under App ID Suffix, select the radio button for Wildcard App ID.
- In the box below that, enter the beginning of what you'd like to use as your app's bundle identifier, followed by a dot-asterisk. (For example, maybe your app bundle identifiers in Xcode are something like
com.myname.appname
. Then, in the box under Wildcard App ID, you'd entercom.myname.*
.) - Under App Services, select any available items you think you might use in an app at some point in the near future. (Only a few of the items are available for selecting at this step.)
- At the bottom of the page, click the Continuebutton.
- At the resulting 'Confirm your App ID.' page, scan your selections to ensure they're okay; then, at the bottom of the page, click the Registerbutton.
- At the resulting 'Registration complete.' page, you can again review the registered options. Then, just scroll to the bottom, and click the Donebutton.
- 登录您的开发者帐户。
- 在左侧的列表中,单击Certificates, Profiles & IDs。
- 在左侧的新列表中,在Identifiers下,单击App IDs。
- 单击页面右上角的“+”符号。(您现在位于“注册 App ID”页面。)
- 在App ID Description下的框中,输入一些内容来描述您的 App ID。(请注意,此描述必须是纯字母数字;似乎允许使用空格,但不能包含其他任何内容。)
- 在App ID Suffix 下,选择Wildcard App ID的单选按钮。
- 在下面的框中,输入您想用作应用程序包标识符的开头,后跟一个点星号。(例如,您在 Xcode 中的应用程序包标识符可能类似于
com.myname.appname
。然后,在Wildcard App ID下的框中,输入com.myname.*
。) - 在应用服务下,选择您认为在不久的将来某个时候可能会在应用中使用的任何可用项目。(在此步骤中只有少数项目可供选择。)
- 在页面底部,单击继续按钮。
- 在结果“确认您的应用程序 ID”中。页面,扫描您的选择以确保它们没问题;然后,在页面底部,单击注册按钮。
- 在结果“注册完成”。页面,您可以再次查看已注册的选项。然后,只需滚动到底部,然后单击“完成”按钮。
The new wildcard App ID will now appear in your list of App IDs.
新的通配符 App ID 现在将出现在您的 App ID 列表中。
Next, go into Xcode, and create your app, entering an Organization Identifier that matches the wildcard App IDyou registered without the dot-asterisk. (For example, if you enter com.myname
, Xcode completes what becomes the bundle identifier with a dot and the app name.)
接下来,进入 Xcode,并创建您的应用程序,输入一个与您注册的通配符应用程序 ID 匹配的组织标识符,但不带点星号。(例如,如果您输入com.myname
,Xcode 会使用一个点和应用程序名称来完成成为包标识符的内容。)
When the project opens at the signing page, Xcode will "Automagically manage signing" correctly ;)
当项目在签名页面打开时,Xcode 将正确“自动管理签名”;)
Note:If you have a free developer account, as of the date of this posting, you can't access the 'Certificates, Profiles & IDs' link in your account. ;(
注意:如果您拥有免费的开发者帐户,则截至本文发布之日,您无法访问帐户中的“证书、配置文件和 ID”链接。;(
回答by Rawand Saeed
Xcode>General>Identity
Copy Previous Bundle ID
Bundle Identifier : AppleDeveloperName-PreviousProjectName(or whatever)
Paste it in the new project's Bundle ID. It should be fine now.
Xcode>常规>身份
复制上一个捆绑包 ID
捆绑标识符:AppleDeveloperName-PreviousProjectName(或其他)
将其粘贴到新项目的 Bundle ID 中。现在应该没问题了。