简体   繁体   English

尝试在设备上运行我的应用时,找不到此可执行文件的有效配置文件

[英]A valid provisioning profile for this executable was not found when trying to run my app on device

I am banging my head against this for over a day now, I had uploaded an app to the apple store some days ago, it was rejected. 我正在敲打我的头一天超过一天,我几天前将应用程序上传到苹果商店,它被拒绝了。 I made the changes and now want to test the app on my phone again, each time I do I get a weird message telling me that there is no valid provisioning profile. 我做了更改,现在想再次在我的手机上测试应用程序,每次我收到一条奇怪的消息,告诉我没有有效的配置文件。 I am a newbie to iOS. 我是iOS的新手。

I checked various questions googled around and everything is set up as explained. 我检查了各种问题,并按照解释设置了所有内容。 Why this weird error. 为什么这个奇怪的错误。

Clicking on window> organiser I see both my valid profile and my iPhone with a green signal. 单击窗口>管理器我看到我的有效配置文件和带有绿色信号的iPhone。 I wonder where the problem is! 我想知道问题出在哪里! Any help? 有帮助吗?

For testing App in to your device you need to do following steps: 要将App安装到您的设备中,您需要执行以下步骤:

在此输入图像描述

在此输入图像描述

  • After adding Device UDID you need to create Creating a Developer provisional profile and select all device. 添加设备UDID后,您需要创建创建开发人员临时配置文件并选择所有设备。

  • Download this created Developer provisional profile and install as we did normally 下载此创建的开发人员临时配置文件并按照我们通常的方式安装

  • In Xcode setting correct Bundel Identifire that is you setting in to developer provisional profile (com.xyz.devTesting) 在Xcode设置中,您正在设置开发人员临时配置文件(com.xyz.devTesting)正确Bundel标识符

  • setting code sign from target-->build phase-->code sign choose developer provisional that must appear in to list. target-->build phase-->code设置代码符号target-->build phase-->code符号选择必须出现在列表中的开发人员临时target-->build phase-->code

now all set and connect you device with xcode and run you project that must run in to you device. 现在所有设置并使用xcode连接您的设备并运行您必须运行到您的设备的项目。

+1 to banging my head against the wall for a day or two... +1将我的头撞在墙上一两天......

Also check this setting: 同时检查此设置:

Build Settings -> Code Signing -> Provisioning Profile 构建设置 - >代码签名 - >供应配置文件

What worked for me was setting it to "Automatic" after following the steps here: A valid provisioning profile for this executable was not found... (again) 按照此处的步骤,对我有用的是将其设置为“自动”: 找不到此可执行文件的有效配置文件...(再次)

Checkout your build settings. 检查您的构建设置。 There's an option Code Signing Identity . 有一个选项Code Signing Identity You should fill it with iPhone Developer certificate and Development provision profile 您应该使用iPhone Developer证书和开发提供配置文件填写它

I suddenly started getting this msg when trying to run my app on the iPhone (using XCode 7.2). 当我试图在iPhone上运行我的应用程序时(我使用XCode 7.2),我突然开始收到这个消息。 There had been no issue previously. 以前没有问题。 After several unsuccessful hours of trying various solutions on the forums, I started doing diffs against my source control repository. 在论坛上尝试各种解决方案几个小时后,我开始对我的源代码控制存储库做差异。

In my case, it turned out that some how the product bundle identifier had been replaced by ${PRODUCT_BUNDLE_IDENTIFIER} in the project's .plist file. 在我的例子中,事实证明产品包标识符已被项目的.plist文件中的$ {PRODUCT_BUNDLE_IDENTIFIER}替换。 I changed this back to the actual bundle identifier string, and the problem went away. 我将其更改回实际的包标识符字符串,问题就消失了。

I started getting this problem after changing the Team and Bundle ID of my app. 我在更改应用程序的Team和Bundle ID后开始遇到此问题。 After reading all the similar issues on SO for this and finding no solution that worked for me, I finally stumbled on what was wrong: 在阅读了所有关于SO的类似问题并找不到对我有用的解决方案之后,我终于发现了错误:

The App Target Signing was set up correctly, but the Tests Target wasn't. 应用程序目标签名已正确设置,但测试目标未正确设置。

After changing the Team and Bundle ID I hadn't tried running the tests. 更改Team和Bundle ID后,我没有尝试运行测试。 Once I corrected that (Xcode showed an error in the Target > General > Signing screen) both the app and Test Targets ran on my phone. 一旦我纠正了(Xcode在Target> General> Signing屏幕中显示错误),应用程序和测试目标都在我的手机上运行。

I've run into this cycle before, with resetting/reissuing certificates and profiles. 我之前遇到过这个循环,重置/重新颁发证书和配置文件。 Note that some info is cached. 请注意,某些信息已缓存。

If you get the endless loop about valid provisioning profiles, make sure you do a CLEAN build after changes. 如果您获得有关有效配置文件的无限循环,请确保在更改后执行CLEAN构建

https://developer.apple.com/library/ios/technotes/tn2319/_index.html#//apple_ref/doc/uid/DTS40013778-CH1-INSTALLPROFILE https://developer.apple.com/library/ios/technotes/tn2319/_index.html#//apple_ref/doc/uid/DTS40013778-CH1-INSTALLPROFILE

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更改了应用名称,现在无法在设备上运行(找不到此可执行文件的有效配置文件。) - Changed app name, now can't run it on device (A valid provisioning profile for this executable was not found.) iPhone设备:找不到此可执行文件的有效配置文件 - iPhone device: A valid provisioning profile for this executable was not found 找不到有效的配置文件为此可执行文件 - Valid provisioning profile not found for this executable 找不到此可执行文件的有效配置文件:对于App Store分发配置文件 - A valid provisioning profile for this executable was not found: For App Store Distribution Profile 找不到有效的设备配置文件 - Valid provisioning profile not found for device Xcode 7:应用程序安装失败:找不到此可执行文件的有效配置文件 - Xcode 7: App installation failed: A valid provisioning profile for this executable was not found 应用程序安装失败:找不到此可执行文件的有效配置文件 - App Installation failed: A valid provisioning profile for this executable was not found 找不到此可执行文件的有效配置文件:仅用于分发 - A valid provisioning profile for this executable was not found: only with distribution 错误:“找不到此可执行文件的有效配置文件” - Error: “A valid provisioning profile for this executable was not found” 找不到此可执行文件的有效配置文件-Xcode 9? - A valid provisioning profile for this executable was not found - Xcode 9?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM