Xcode 配置文件即将到期
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22496233/
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
Xcode Provisioning Profile Expiring
提问by Michael Reiland
I'm trying to clear a couple non-fatal errors from a couple projects. They are both "Target Integrity" "Provisioning profile is expiring: . . . ".
我正在尝试清除几个项目中的几个非致命错误。它们都是“目标完整性”“供应配置文件即将到期:......”。
Yet, I don't have the Provisioning profile that's expiring as a part of the project in any way. Can anyone tell me why it might be giving me an error like this for a Provisioning profile that is being used only by a different project?
然而,我没有以任何方式作为项目一部分过期的配置文件。谁能告诉我为什么对于仅由不同项目使用的配置文件,它可能会给我这样的错误?
回答by devzero
Had the same problem. This is how to fix it:
有同样的问题。这是修复它的方法:
Open Xcode > Preferences > Accounts
打开 Xcode > Preferences > Accounts
Click 'View Details' on the relevant account, and you'll see all associated provisioning profiles will open in a list. Sort the list by expiration date to find expired profiles, and for each one right click and choose 'show in finder'. Then you can simply delete it.
单击相关帐户上的“查看详细信息”,您将看到所有关联的配置文件都将在列表中打开。按到期日期对列表进行排序以查找过期的配置文件,然后右键单击并选择“在查找器中显示”。然后你可以简单地删除它。
When you delete an expired profile in the finder it immediately disappears from Xcode and from the warnings panel.
当您在查找器中删除过期的配置文件时,它会立即从 Xcode 和警告面板中消失。
回答by Mikkel Sels?e
You can find your provisioning profiles in
您可以在
~/Library/MobileDevice/Provisioning Profiles/
There you can see all your provisioning profiles, but it's difficult to know which one is which because they are named with a UUID.
在那里您可以看到所有的配置文件,但很难知道哪个是哪个,因为它们是用 UUID 命名的。
However, you can install this QuickLook plugin to see details about each profile and delete the ones that are expired: https://github.com/chockenberry/Provisioning
但是,您可以安装此 QuickLook 插件以查看有关每个配置文件的详细信息并删除过期的配置文件:https: //github.com/chockenberry/Provisioning
The warning disappears instantly from Xcode after you delete the profile.
删除配置文件后,警告立即从 Xcode 中消失。
EDIT: An easier method to clean up old profiles may be to download iPhone Configuration Utility from here: http://support.apple.com/downloads/#iphone%20configuration%20utility
编辑:清理旧配置文件的一种更简单的方法可能是从这里下载 iPhone 配置实用程序:http: //support.apple.com/downloads/#iphone%20configuration%20utility
It gives you a nice overview over you installed profiles and they can be deleted as well.
它为您提供了对已安装配置文件的一个很好的概述,它们也可以被删除。
回答by Asfanur
Xcode -> Preferences -> Accounts -> View Details
Xcode -> Preferences -> Accounts -> View Details
Then select that particular provisioning profile and click refresh button.
然后选择该特定配置文件并单击刷新按钮。
If you are still having warning then go to https://developer.apple.comand select provisioning profile and click edit and then done. After that do the refresh procedure described before in X-Code
如果您仍然收到警告,请转到 https://developer.apple.com并选择配置文件并单击编辑然后完成。之后执行之前在 X-Code 中描述的刷新过程
回答by Maciej Swic
sigh manage -e
to delete all expired profiles
sigh manage -e
删除所有过期的配置文件
sigh repair
will renew all profiles (requires login)
sigh repair
将更新所有配置文件(需要登录)
回答by bicycle
One liner here. No need to download plugins, utilities and all that crap.
这里有一个班轮。无需下载插件、实用程序和所有废话。
ls | grep -l 'com.companyname.AppName' ~/Library/MobileDevice/Provisioning Profiles/*.mobileprovision | xargs rm
回答by Michael Reiland
In the end, I simply went into my Developer's account and renewed the expiring provisioning profile, even though I don't need/use it any more. Error is gone.
最后,我只是进入了我的开发人员帐户并更新了即将到期的配置文件,即使我不再需要/使用它。错误消失了。