ios 仅在 iPhone 5 上找不到此可执行文件的有效配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15790067/
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 only on iPhone 5
提问by Sebastian
I try to debug my app with XCode on my device, it works with every Phone except iPhone 5 then I get the message:
我尝试在我的设备上使用 XCode 调试我的应用程序,它适用于除 iPhone 5 之外的所有手机,然后我收到消息:
"A valid provisioning profile for this executable was not found"
“未找到此可执行文件的有效配置文件”
When I try to renew the certificate with the organizer, Xcode crashes.
当我尝试与组织者续订证书时,Xcode 崩溃。
回答by Isac
I had the same exact problem and solved it following the guidelines from... Apple :)
我遇到了同样的问题,并按照... Apple 的指导解决了它:)
To ensure the Xcode project Bundle Identifier is compatible with the App ID associated with your Provisioning Profiles, perform the following steps.
要确保 Xcode 项目 Bundle Identifier 与与您的 Provisioning Profiles 关联的 App ID 兼容,请执行以下步骤。
- Choose the Xcode "View" menu > Navigators > Project.
- Select your root project folder in the upper left corner.
- (The Project Editor will appear in the center pane.)
- Click on your target in the "TARGETS" section
- Click the "Build Settings" tab.
- Scroll down to the "Code Signing Identity" section.
- If you are building to your development device, click the Value column under "Debug" that is to the right of "Any iOS SDK".
- In the provisioning profile selection pop-up, check that the current selection reads "For Application Identifiers: " with the intended App ID.
- If you are building a distribution binary, click the value column under "Release" that is to the right of "Any iOS SDK".
- In the provisioning profile selection pop-up, check that the current selection reads "For Application Identifiers: " with the intended App ID.
- 选择 Xcode“查看”菜单 > 导航器 > 项目。
- 在左上角选择您的根项目文件夹。
- (项目编辑器将出现在中央窗格中。)
- 在“目标”部分单击您的目标
- 单击“构建设置”选项卡。
- 向下滚动到“代码签名身份”部分。
- 如果您正在构建到您的开发设备,请单击“任何 iOS SDK”右侧的“调试”下的“值”列。
- 在供应配置文件选择弹出窗口中,检查当前选择是否显示为“对于应用程序标识符:”以及预期的应用程序 ID。
- 如果您正在构建发行版二进制文件,请单击“Any iOS SDK”右侧的“Release”下的值列。
- 在供应配置文件选择弹出窗口中,检查当前选择是否显示为“对于应用程序标识符:”以及预期的应用程序 ID。
回答by Hari Babu
I have same issue because my device UDID start with "FFFFFFFF". This UDID is wrong.
我有同样的问题,因为我的设备 UDID 以“FFFFFFFF”开头。这个 UDID 是错误的。
Now i taken UDID from Xcode.
现在我从 Xcode 中获取了 UDID。
Connect your device to mac
Xcode --> Window --> Devices --> Click on your device --> Identifier(UDID)
将您的设备连接到 Mac
Xcode --> 窗口 --> 设备 --> 单击您的设备 --> 标识符(UDID)
Added this UDID in my apple developer account and re-generated the provisioning profiles.
在我的苹果开发者帐户中添加了这个 UDID 并重新生成了配置文件。
Now it is working fine
现在它工作正常
回答by syedfa
I experienced the same problem, and discovered that my solution was to check the date on the device. If the date on the device was in the future, and AFTER the date when your provisioning profile expires, then this error message would appear. After changing the date back to the current date, or a date that is before your provisioning profile expires, then your app should successfully load on your device.
我遇到了同样的问题,并发现我的解决方案是检查设备上的日期。如果设备上的日期是将来的日期,并且在您的配置文件过期日期之后,则会出现此错误消息。将日期改回当前日期或您的配置文件过期之前的日期后,您的应用程序应该会成功加载到您的设备上。
Definitely consider the other solutions first before this one. This was a unique situation for me, as I was testing an app that required changing the device date, and couldn't understand why one moment the app was loading, and why the other moment it wasn't.
在此之前,请务必先考虑其他解决方案。这对我来说是一种独特的情况,因为我正在测试一个需要更改设备日期的应用程序,但无法理解为什么有一刻应用程序正在加载,而为什么另一刻却没有。
All the best.
祝一切顺利。
回答by Vishal Chaudhry
Following worked for me:
以下为我工作:
- Click on project name from the project navigator window.
- From the Target section, select the project's target name.
- Click on "Build Settings".
- Go to "Code Signing" section and for the "Provisioning Profile" setting choose "iOS Team Provisioning Profile: Wildcard AppID" or you can select app specific provisioning profile name.
- 从项目导航器窗口中单击项目名称。
- 从目标部分,选择项目的目标名称。
- 单击“构建设置”。
- 转到“代码签名”部分,对于“配置文件”设置,选择“iOS 团队配置文件:通配符 AppID”,或者您可以选择应用程序特定的配置文件名称。
Note: I had changed this to distribution provisioning profile for the app when building for distribution but did not change it back when resuming work on the project.
注意:我在构建分发时将其更改为应用程序的分发配置文件,但在恢复项目工作时没有将其更改回来。
回答by etayluz
In addition to all these great answers, also make sure that you build scheme's Run section is set to "Debug" and NOT to "Release".
除了所有这些很棒的答案之外,还要确保将构建方案的运行部分设置为“调试”而不是“发布”。
回答by Anthony.
For me the problem was simply that it was a new year and Apple required me to re-register my iPhone. This whole code signing business with iOS development is whole lot harder than it needs to be. Android's approach is so much easier.
对我来说,问题只是新的一年,Apple 要求我重新注册我的 iPhone。iOS 开发的整个代码签名业务比它需要的要困难得多。Android 的方法要简单得多。
回答by j2emanue
for me it was because my provisioning file capabilities did not match xcodes. There was a warning on the general tab of your target under the identity section right under the team designation. It has an option to fix the issue which issued a new provisoning profile.
对我来说,这是因为我的配置文件功能与 xcodes 不匹配。在团队名称正下方的身份部分下的目标的常规选项卡上有一条警告。它可以选择修复发布新配置文件的问题。