从昨天开始,当我试图在我的设备上运行一个应用程序时,我一直得到以下错误:

未找到此可执行文件的有效配置文件。

这是在更新到Xcode 10之后。上周使用Xcode 9进行构建时没有出现问题。我已经检查了其他关于错误的讨论,但没有一个解决方案是有效的。

这个问题并不局限于我一直在做的一个项目,因为它影响了来自不同签约团队的几个人。

到目前为止,我尝试了以下方法:

Cleaning project Cleaning derived data Uninstalling Xcode, deleting any preferences and files related to it. Installing Xcode on a completely different Mac Testing with different devices Disabling device in developer profile and letting Xcode enable it again. Deleting all certificates in the developer portal and recreating them Unchecking and rechecking "Automatically manage signing" Trashing the provisioning profile and letting Xcode recreate it Creating a manual provisioning profile in the developer profile

该项目不包含测试,因此该目标上的签名设置错误不会出现问题。“日期/时间”设置为“自动”

值得注意的一点是,这里没有列出配置文件,除了我创建的手动配置文件:https://developer.apple.com/account/ios/profile/

我希望xcode生成一个显示,因为他们做的所有其他客户端。

下面是我目前正在使用的签名设置

我还没有尝试过将Xcode降级到旧版本,看看是否有效。除此之外,我不知道下一步该尝试什么。


当前回答

这需要很长时间,我们做了上面所有的解决方案,但它们根本不起作用,所以我们的团队决定删除Pod文件,重新运行Pod安装。最后我们的OTA上传了安装在用户设备上的ipa。 最好的解决方案

清洁项目菜单>产品>清洁构建文件夹和/Users/{你的用户名}/Library/Developer/Xcode/DerivedData 转到你的项目目录并删除Podfile。锁,Pods文件夹,pod_***.framework 再次运行pod install

其他回答

在我厌倦了大部分的解决方案后,我发现它让它工作对我来说没有任何问题,它通过去developer.apple.com然后帐户,然后证书,标识符和配置文件解决,我点击设备下的所有链接,然后添加一个新设备。

然后您需要设置设备名称,和uuid,并保存后。 去xcode,清理缓存,构建,一切正常。

注1:确保你的团队是集真。

注2:你可以通过连接你的mac设备来获取uuid,点击iTunes,按安全标签,你会看到uuid。

这个答案也很有帮助。

苹果似乎在Xcode 10.2 beta 2版本中修复了这个错误。

https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_beta_2_release_notes

Signing and Distribution Resolved Issues When you’re building an archive of a macOS app and using a Developer ID signing certificate, Xcode includes a secure timestamp in the archive’s signature. As a result, you can now submit an archived app to Apple’s notary service with xcrun altool without first needing to re-sign it with a timestamp. (44952627) When you’re building an archive of a macOS app, Xcode no longer injects the com.apple.security.get-task-allow entitlement into the app’s signature. As a result, you can now submit an archived app to Apple’s notary service using xcrun altool without first needing to strip this entitlement. (44952574) Fixed an issue that caused the distribution workflow to report inaccurate or missing information about the signing certificate, provisioning profile, and entitlements used when exporting or uploading an app. (45761196) Fixed an issue where thinned .ipa files weren’t being signed when exported from the Organizer. (45761101)

Xcode 10.2 beta 2 Release可以在这里下载: https://developer.apple.com/download/

我使用Xcode 13.3 swift 5,在我的情况下,只有设备/iPhone上的分析抛出这个错误,我做了以下工作:

1-去项目编辑方案

2-然后去配置文件选项卡信息选项卡,然后选择构建配置调试

3-运行剖析命令⌘+i

我有同样的问题(XCode 11),没有什么工作,写在这里。

我的问题是我的手机上有iOS测试版(13.3)。恢复后,一切工作正常。


的想法: 也许设备也缓存了一些关于配置文件的信息,所以手机的出厂重置可能也会修复它?

[编辑]注2020:我曾经手动签署这个项目。在自动签名的项目中,我从来没有遇到过这个问题。(/编辑)

我遇到了同样的问题,花了几个小时寻找答案,删除配置文件,清理项目等等。

你是否已经发行了你的应用?您需要切换回您的开发人员配置文件,但不是在项目设置下的General中,而是在Build设置中。

在签名下,查看您的代码签名标识。

确保你的调试和发布都设置在iOS开发者,而不是iOS发行版;或者你的iOS开发者配置文件,如果没有设置为自动值。

配置配置文件也是如此。它应该是您的开发概要文件,而不是您的发行概要文件。