从 Xcode 5 中删除配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18923095/
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
Delete provisioning profile from Xcode 5
提问by Sergey Grischyov
I've struggling with this for hours. I have 2 same provisioning profiles I've created and the new profile didn't substitute the old one (which expires 6 days earlier than the new one). Through the XCode 5 menu I can't seem to delete the duplicate provisioning profile. Any workaround in this situation?
我已经为此苦苦挣扎了几个小时。我创建了 2 个相同的配置文件,新配置文件没有替代旧配置文件(比新配置文件提前 6 天到期)。通过 XCode 5 菜单,我似乎无法删除重复的配置文件。在这种情况下有什么解决方法吗?
回答by rakmoh
If you delete the profile from the Apple development a/c and hit refresh in XCode (Using xcode>Preferences>Accounts) then these profiles will be gone.
如果您从 Apple 开发 a/c 中删除配置文件并在 XCode 中刷新(使用 xcode>Preferences>Accounts),那么这些配置文件将消失。
You can remove them from the this directory on your machine:
"~/Library/MobileDevice/Provisioning\ Profiles"
你可以从你机器上的这个目录中删除它们:"~/Library/MobileDevice/Provisioning\ Profiles"
回答by loadedion
In the Xcode Preferences, go to Accounts, then go to your apple ID, then click "View Details" Click the provisioning profile which you would like to delete, then press the "delete" key ONCE. Then click the refresh icon for manually update the list(pretty counterintuitive...).
在 Xcode 首选项中,转到帐户,然后转到您的 Apple ID,然后单击“查看详细信息”单击您要删除的配置文件,然后按一次“删除”键。然后单击刷新图标以手动更新列表(非常违反直觉......)。
Using this method I was able to delete all but one copy of the same provisioning profile, after which the delete does nothing.
使用这种方法,我能够删除除同一个配置文件的一个副本之外的所有内容,之后删除什么也不做。
回答by ohthepain
You probably don't need to delete the duplicate profiles. Just go to Xcode / Preferences / Accounts / / View Details and hit the refresh button.
您可能不需要删除重复的配置文件。只需转到 Xcode / Preferences / Accounts // View Details 并点击刷新按钮。
I did this and my duplicate provisioning profiles disappeared. Now when I post builds to TestFlight the distribution lists are all correct.
我这样做了,我重复的配置文件消失了。现在,当我将构建发布到 TestFlight 时,分发列表都是正确的。
回答by Ashish Pisey
In the Xcode Preferences--> Accounts, delete your account, add account again,click on your developer ID, press refresh, select provisioning profile again under build settings.
在 Xcode Preferences--> Accounts 中,删除您的帐户,再次添加帐户,单击您的开发者 ID,按刷新,在构建设置下再次选择配置文件。
THATS IT. ALL YOUR PROBLEMS ARE SOLVED
就是这样。你所有的问题都解决了
回答by Muhammad Zeeshan
I am using "iPhone configuration utility for Mac OS x" provided by apple for managing my all provisioning profiles for Xcode 5.
我正在使用苹果提供的“用于 Mac OS x 的 iPhone 配置实用程序”来管理我的 Xcode 5 的所有配置文件。
From apple's website:
从苹果的网站:
iPhone Configuration Utility lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs.
iPhone 配置实用程序可让您轻松创建、维护、加密和安装配置描述文件,跟踪和安装配置描述文件和授权应用程序,以及捕获包括控制台日志在内的设备信息。
You can delete the provisioning profile:
您可以删除配置文件:
- Open the utility and select the provisioning profile from the list.
- From the top menu select "Edit" than "Delete"
- 打开实用程序并从列表中选择配置文件。
- 从顶部菜单中选择“编辑”而不是“删除”
回答by neuman8
To remove any reference to an unwanted provisioning profile from XCODE 5 here is what I did:
要从 XCODE 5 中删除对不需要的配置文件的任何引用,我是这样做的:
1) Browse into the YOURAPP.xcodeproj directory
1) 浏览到 YOURAPP.xcodeproj 目录
2) With vi I opened up the project.pbxproj file
2)用vi打开project.pbxproj文件
3) Find PROVISIONING_PROFILE="ID_OF_THE_PROV_PROFILE_YOU_WANT_TO_DELETE"
3)找到PROVISIONING_PROFILE="ID_OF_THE_PROV_PROFILE_YOU_WANT_TO_DELETE"
In every instance I saw this in the file I just set it to "" and XCODE never gave me an error again.
在我在文件中看到的每个实例中,我只是将其设置为“”,而 XCODE 再也没有给我错误。
回答by chris838
All of the methods mentioned so far will still fail to delete certain "Managed by Xcode" profiles, which you may find will continually re-appear no matter what you do to delete them.
到目前为止提到的所有方法仍然无法删除某些“由 Xcode 管理”的配置文件,您可能会发现无论您如何删除它们,这些配置文件都会不断重新出现。
The problem seems to be that certain profiles are auto-generated by Xcode/Apple Developer Centre based on the App Ids you have. In my case I see one "Developer" profile per app ID (including the wildcard).
问题似乎是某些配置文件是由 Xcode/Apple 开发人员中心根据您拥有的 App Id 自动生成的。就我而言,我看到每个应用程序 ID(包括通配符)有一个“开发人员”配置文件。
I would imagine that the only way to get rid of these is to remove the App Id itself through the Dev Centre. Often this is not possible since the Dev Centre will complain that the app "...exists in the App Store so it cannot be removed" - even when the app in question is not actually in the store.
我想摆脱这些的唯一方法是通过开发中心删除 App Id 本身。通常这是不可能的,因为开发中心会抱怨该应用程序“......存在于 App Store 中,因此无法删除” - 即使有问题的应用程序实际上不在商店中。
回答by the Reverend
In my case this worked: Right click on a provisioning profile in the accounts tab -> view details panel. Click the option show in finder -> delete them directly in finder.
在我的情况下,这是有效的:右键单击帐户选项卡中的配置文件 -> 查看详细信息面板。单击在finder中显示的选项->直接在finder中删除它们。
回答by 232 Studios
For all the people who are seeing the profiles magically reappear after deleting them and hitting refresh, simply wait a few minutes after deleting and before hitting the refresh button.
对于所有看到配置文件在删除它们并点击刷新后神奇地重新出现的人,只需在删除后等待几分钟,然后再点击刷新按钮。
回答by spinacher
None of the previous suggestions worked for me. What did finally eliminate the unwanted profiles was the following:
以前的建议都不适合我。最终消除了不需要的配置文件的内容如下:
- Remove the developer account from Xcode > Accounts
- Quit Xcode.
- Delete the unwanted provisioning profiles in the developer portal.
- Delete all the files
~/Library/Developer/Xcode/DeveloperPortal*.*
- Empty the trash.
- Restart Xcode and add the developer account back in.
- 从 Xcode > Accounts 中删除开发者帐户
- 退出 Xcode。
- 在开发人员门户中删除不需要的配置文件。
- 删除所有文件
~/Library/Developer/Xcode/DeveloperPortal*.*
- 清空垃圾。
- 重新启动 Xcode 并重新添加开发者帐户。
I was thrashing around so this might not be quite the magic formula but something along those lines. By design, Xcode automatically creates provisioning profiles based on the app identifiers set up in the developer portal with names like "Mac Team Provisioning Profile: ". This is a great feature but it adds to the confusion with this deletion issue.
我正在四处奔波,所以这可能不是什么神奇的公式,而是沿着这些路线的东西。按照设计,Xcode 会根据开发人员门户中设置的应用程序标识符自动创建配置文件,名称类似于“Mac Team Provisioning Profile:”。这是一个很棒的功能,但它增加了这个删除问题的混乱。