这是一个现有的应用程序,编译和分发多次。自从更新到Xcode 5,我有这个错误弹出。

我在代码签名中选择了我的开发人员配置文件用于调试。 删除派生数据几次。 戒烟几次 下载并尝试重新添加我的开发者证书。 重置我的电脑!检查更新 尝试使用黑魔法! 方案>生成配置被设置为调试

奇怪的情况是,我正在编译到iOS 6.1,这样我就可以在我的iPhone 3GS上运行——基础是SDK iOS 7?这是一个问题吗?我只需要在更换到iOS 7之前先测试一下。


当前回答

将临时配置配置文件更改为dev

其他回答

如果使用分发配置文件对设备进行调试,则会发生此错误。

进入构建设置>配置配置文件,并将调试设置为“None”。

在我的案例中,Xcode无法自动为调试构建配置设置正确的iOS开发者配置文件。 我手动设置为iPhone Developer: My Name (XXXXXX):

目标版本设置→代码签名→代码签名标识→调试。

在我的例子中,目标和项目的构建设置中的开发团队(Xcode 12.2)是不同的。在使用相同的团队后,它成功了。

我也遇到过同样的问题,并解决了它,基本上是为了理解发生了什么,看看这里的答案,然后添加到它:

选择您的模式并按“编辑模式” 在运行选项卡上,确保将构建配置设置为调试

当你的设备通过电缆连接到你的计算机,并且你构建+运行你的应用程序时,你的设备将尝试调试。调试只允许用于开发概要文件。

If you build + run with a Development Profile + Development Signing Code, everything will be OK If you build + run with an AppStore Distribution profile + Distribution Signing Code, the app will not even reach your device. This build is only for uploading to AppStore If you build + run with an AdHoc Distribution profile + Distribution Signing Code, you'll get the "failed to get the task for process..." error, but the app will get installed in your device. Unplug the device and run the app from your device. It's running in distribution environment. Enjoy :)