Xcode 构建警告 - 目标完整性 - 仅 ProjectnameTests 目标的配置配置文件过期
到目前为止我创建的所有应用程序都是这样做的。它对应用程序或能够运行它没有任何作用,但总是有 1 个警告很烦人。
我正在使用 Xcode 4.2 OSX 10.7.3
这是实际警告:
-目标完整性 配置文件即将过期
这是它的图像,这样我就不必尝试解释。 (编辑它并将“项目”放在我的实际项目名称中,以保护隐私)
感谢您的帮助!
All my apps that i've created so far do this. It does nothing to the app or being able to run it but it's just annoying always having that 1 warning.
I'm Using
Xcode 4.2
OSX 10.7.3
This is the actual warning:
-Target Integrity
Provisioning profile is expiring
Here's an image of it just so I don't have to try and explain. (Edited it and put 'Project' where my actual project name was for privacy)
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
对于 Xcode 6,您需要:
现在警告应该消失,否则您将需要重复上述步骤以获取另一个警告
For Xcode 6 you need to:
Now the warning should disappear or you will need to repeat above steps for another warning
中删除了所有配置文件,
我从cd ~/Library/MobileDevice/Provisioning\ Profiles/
然后它就消失了。
您可以使用此 shell 脚本 获取配置文件的名称
I deleted all the provisioning profile from
cd ~/Library/MobileDevice/Provisioning\ Profiles/
and it's gone.
You can use this shell script the get the names of the provisioning profiles
这是一个警告,表明您的配置文件即将过期,您应该续订它。
您可以在 Apple 开发者中心网站上执行此操作。如果您的开发者资料计划也即将到期,您也应该续订。
It is a warning that your provisioning profile is about to expire and you should renew it.
You can do this at Apple's developer center website. If your developer profile program is also about to expire, you should renew it too.
删除旧配置文件后,我还必须重新启动 Xcode,以使警告消失。
I had to also restart Xcode after deleting the old profiles to get the warnings to go away.
我有类似的问题,Xcode 说一个配置文件即将过期。
然后我去developer.apple.com删除过期的配置文件,它就修复了。
希望能帮到你。
I have the similar problem, Xcode say one provisioning profile is expiring.
Then I go to the developer.apple.com to delete the expiring provisioning profile, it fixed.
Hope can help you.
我遇到此问题是因为我使用的配置文件是使用已吊销/过期的证书进行签名的。首先,转到会员中心并删除过期和无效的配置文件。再生你需要的那些。要清理 Xcode,请转到“首选项”->“帐户,选择您的帐户。
点击查看详情。
右键单击任何个人资料 ->在取景器中显示。全部删除。然后返回 XCode,关闭详细信息并重新打开(刷新)并重新下载您需要的内容(每个配置文件都会有一个下载按钮)。
警告消失了。 Xcode 可能会抱怨代码签名问题,但单击“解决”会自动清除此问题。
然后一切正常了。
I had this problem because a provisioning profile I used was signed with a certificate that was revoked/expired. First, go to the member center and delete expired and invalid provisioning profiles. Regenerate the ones you need. To clean up Xcode, go to Preferences-> Accounts, select your account.
Click view details.
Right click any profile -> Show in finder. Delete all of them. Then go back to XCode, close details and reopen (to refresh) and re-download the ones you need (there'll be a download button for each profile).
Warning gone. Xcode might complain about code signing issues, but clicking "Resolve" automatically clears this up.
Then everything worked.
我有同样的问题。
最终解决的是 Xcode 警告一些过期的配置文件,而不是专门链接到当前项目的配置文件。
为了解决这个问题,我转到“管理器/设备”选项卡,在“库”下选择“配置配置文件”,
列表中有两个配置文件已过期 - 我不需要它们,所以我只需右键单击并删除它们。
然后警告就消失了。
I had the same issue.
Worked out in the end it was Xcode warning about some expired profiles generally - not ones specifically linked to the current project.
To fix I went to Organizer/ Devices Tab and under Library select Provisioning Profiles
I had two profiles in the list that had expired - I didn't need them so I just right clicked and deleted them.
Warning then went away.
现在,在使用 Teams 时,这与 Xcode 5 有点不同...
我收到了相同的警告,提示旧配置文件已过期,但该配置文件已不存在 - 但它仍然存在于 Xcode 中连接团队的本地帐户设置中(
偏好设置 -> 帐户 -> <有问题的团队帐户>)。所以我只是刷新了这些配置文件,是的,警告消失了。
不幸的是,这个团队帐户中的其他应用程序有更多过期的配置文件,我刚刚将其同步到我的本地帐户设置中(并且我不能删除它们,因为它是客户的帐户..) - 现在 Xcode 抱怨它们都已过期。我猜你有时应该对自己所得到的感到满意,但情况可能会变得更糟......
This is a bit different with Xcode 5 now when working with Teams ...
I go the same warning of an expiring old profile which didn't exist anymore - but it still did exist in the local Account setting for the connected team in Xcode (
Xcode -> Preferences -> Accounts -> <team account in question> -> View Details
). So I just did a refresh on these profiles, and yes, the warning was gone.Unfortunately there are many more expired profiles for other apps in this team account which I just synched into my local Account setting (and I can't just remove them, as it's a client's account ..) - and now Xcode complains about all of them being expired. Guess you should be happy with what you got sometimes, it can get worse ...
今天我的旧项目也收到了同样的警告。
我尝试了这个,警告消失了。
在“构建设置”-> “代码签名身份”,选择“自动配置文件选择器”。
I got the same warning on my old project today.
I tried this, and the warning went away.
At 'Build Settings' -> 'Code Signing Identity', Choose 'Automatic Profile selector'.