找不到此可执行文件的有效配置文件错误 Xcode 9
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46730444/
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
A valid provisioning profile for this executable was not found error Xcode 9
提问by vishal dharankar
I have an iPhone on which until last evening was able to run an app without issue , my iphone is added to the developer portal and signing is set to auto in Xcode 9, and it was running fine. Since last morning I have started receiving error
我有一部 iPhone,直到昨晚才能够正常运行应用程序,我的 iphone 已添加到开发人员门户,并且在 Xcode 9 中将签名设置为自动,并且运行良好。从昨天早上我开始收到错误
A valid provisioning profile for this executable was not found
找不到此可执行文件的有效配置文件
I can see the device is on developer portal , also I am able to install the app on other phone from Xcode 9 just fine. So clearly this is not developer portal related issue.
我可以看到设备在开发人员门户上,我也可以通过 Xcode 9 在其他手机上安装该应用程序就好了。很明显,这不是与开发人员门户相关的问题。
I have restarted / fully restarted iPhone a few times and also quite Xcode 9 as well, but doesn't seems to work.
我已经重新启动/完全重新启动 iPhone 几次,而且 Xcode 9 也是如此,但似乎不起作用。
How can this be solved ?
如何解决?
回答by vishal dharankar
Never mind this was solved as follows,
没关系,这是解决如下,
Removed the derived data folder and removed the device from Xcode , restarted Xcode, and connected iPhone again , this time it reindexed the device and all worked just fine.
删除派生数据文件夹并从 Xcode 中删除设备,重新启动 Xcode,并再次连接 iPhone,这次它重新索引了设备并且一切正常。
回答by Tuan Huynh
XCode 9.
代码 9.
If you are sure:
如果您确定:
- The provisioning profile was created correctly.
- Added UDID (your iPhone / iPad) to devices category.
- 配置文件已正确创建。
- 将 UDID(您的 iPhone / iPad)添加到设备类别。
If manual import Provision Profile, but cannot build to your phone, then try to Check"Automatically manage signing" in your project > General > Signing
如果手动导入 Provision Profile,但无法构建到您的手机,则尝试在您的项目 > 常规 > 签名中检查“自动管理签名”
It work for me.
它对我有用。
回答by CK-Rom Luna
Fixed this issue by going to developer.apple.com/account > Certificates, IDs & Profiles > Provisioning Profile > Development, create or download an existing valid provisioning profile and double-click it. It should add the provisioning profile to the device you're using.
通过转到 developer.apple.com/account > 证书、ID 和配置文件 > 配置配置文件 > 开发,创建或下载现有的有效配置配置文件并双击它来修复此问题。它应该将配置文件添加到您正在使用的设备中。
回答by zzdever
Maybe have a try of this: 1. Open the Keychain Application 2. Choose "Session" in the left panel 3. Try related keywords(your apple id, your team name, etc.) in the upper right search input, you can find all your certifications, some of them may expired, just delete them, and restart Xcode/ reconnect your device.
也许试试这个: 1. 打开钥匙串应用程序 2. 在左侧面板中选择“会话” 3. 在右上角的搜索输入中尝试相关的关键字(您的 Apple id,您的团队名称等),您可以找到您所有的认证,其中一些可能已过期,只需删除它们,然后重新启动 Xcode/重新连接您的设备。
回答by Kashif Mujeeb
try to create the ipa by archiving it, and then installed it via itunes
尝试通过归档创建 ipa,然后通过 iTunes 安装它