Xcode 构建警告 - 目标完整性 - 仅适用于 ProjectnameTests 目标的配置文件到期

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9287087/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:14:20  来源:igfitidea点击:

Xcode build warning - Target Integrity - Provisioning profile is expiring only for the ProjectnameTests Target

xcodebuildwarnings

提问by rob1302

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.

到目前为止,我创建的所有应用程序都是这样做的。它对应用程序没有任何影响或能够运行它,但总是有 1 个警告很烦人。

I'm Using Xcode 4.2 OSX 10.7.3

我使用的是 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)

这是它的图像,所以我不必尝试解释。(编辑它并将“项目”放在我的实际项目名称的位置以保护隐私)

enter image description here

在此处输入图片说明

Thanks for any help!

谢谢你的帮助!

回答by Simon East

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.

最终发现它是 Xcode 关于一些过期配置文件的警告,而不是专门链接到当前项目的配置文件。

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.

警告然后消失了。

回答by TheEye

This is a bit different with Xcode 5 now when working with Teams ...

现在使用 Teams 时,这与 Xcode 5 有点不同......

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.

我对不再存在的过期旧配置文件发出相同警告 - 但它仍然存在于 Xcode ( Xcode -> Preferences -> Accounts -> <team account in question> -> View Details) 中连接团队的本地帐户设置中。所以我只是刷新了这些配置文件,是的,警告消失了

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 ...

不幸的是,这个团队帐户中还有更多其他应用程序的过期配置文件,我只是将它们同步到我的本地帐户设置中(我不能只是删除它们,因为它是客户的帐户......) - 现在Xcode 抱怨所有这些正在过期。猜猜你应该对你有时得到的东西感到高兴,它可能会变得更糟......

回答by Makoto Setoh

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'.

在“构建设置”->“代码签名标识”中,选择“自动配置文件选择器”。

回答by Bart?omiej Semańczyk

For Xcode 6you need to:

对于Xcode 6,您需要:

  1. go to the Preferences (Cmd + ,)
  2. Accounts
  3. choose your account
  4. choose your team
  5. Click view details
  6. Choose provisioning profile from warning
  7. right click (show in Finder)
  8. remove from Finder
  1. 转到首选项 ( Cmd + ,)
  2. 帐户
  3. 选择您的帐户
  4. 选择你的团队
  5. 点击查看详情
  6. 从警告中选择配置文件
  7. 右键单击(在 Finder 中显示)
  8. 从 Finder 中删除

Now the warning should disappear or you will need to repeat above steps for another warning

现在警告应该消失,否则您需要重复上述步骤以获得另一个警告

回答by Inder Kumar Rathore

I deleted all the provisioning profile from

我删除了所有的配置文件

cd ~/Library/MobileDevice/Provisioning\ Profiles/

cd ~/Library/MobileDevice/Provisioning\ Profiles/

and it's gone.

它不见了。

You can use this shell scriptthe get the names of the provisioning profiles

您可以使用此shell 脚本获取配置文件的名称

回答by Nikola Kirev

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.

这是一个警告,表明您的配置文件即将过期,您应该对其进行更新。您可以在 Apple 的开发人员中心网站上执行此操作。如果您的开发者资料计划也即将到期,您也应该续订。

回答by Joel

I had to also restart Xcode after deleting the old profiles to get the warnings to go away.

删除旧配置文件后,我还必须重新启动 Xcode 以消除警告。

回答by leolmq

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 说一个配置文件即将过期。然后我去 developer.apple.com 删除过期的配置文件,它修复了。希望能帮到你。

回答by nickdnk

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.

我遇到这个问题是因为我使用的配置文件是用已撤销/过期的证书签名的。首先,去会员中心删除过期和无效的配置文件。重新生成您需要的那些。要清理 Xcode,请转到 Preferences-> Accounts,选择您的帐户。

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).

右键单击任何配置文件 -> 在查找器中显示。删除所有这些。然后返回 XCode,关闭详细信息并重新打开(刷新)并重新下载您需要的内容(每个配置文件都有一个下载按钮)。

Warning gone. Xcode might complain about code signing issues, but clicking "Resolve" automatically clears this up.

警告消失了。Xcode 可能会抱怨代码签名问题,但单击“解决”会自动清除此问题。

Then everything worked.

然后一切正常。