Xcode 无法启动应用程序。进程启动失败:4294967295
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26287365/
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
Xcode could not launch app. Process launch failed: 4294967295
提问by Ethan G
I'm developing an iOS 8 app in Xcode 6.0.1 and running it on my iPhone 5 (which has iOS 8.0.2 on it). Before I updated to iOS 8.0.1 and Xcode 6.0.1, I never got the error I'm getting. However, now, sometimes when I try to run my app from Xcode onto my iPhone, this error message pops down from the top of the Xcode window:
我正在 Xcode 6.0.1 中开发一个 iOS 8 应用程序并在我的 iPhone 5(它有 iOS 8.0.2)上运行它。在我更新到 iOS 8.0.1 和 Xcode 6.0.1 之前,我从来没有遇到过这样的错误。但是,现在,有时当我尝试从 Xcode 将我的应用程序运行到我的 iPhone 上时,此错误消息会从 Xcode 窗口的顶部弹出:
Could not launch "[app name]". Process launch failed: 4294967295
It appears that this error only occurs when I first run the app from Xcode onto my device (i.e. if I close the error message in Xcode, but I don't close the app on my phone--so the app's still up on my phone--I don't get this error when I click the run button again in Xcode). However, there doesn't seem to be a whole lot of consistency because sometimes the error message doesn't drop down even when I launch the app onto my phone for the first time from Xcode (i.e. without the app already being up on my phone).
看来这个错误只发生在我第一次从 Xcode 运行应用程序到我的设备上时(即,如果我关闭了 Xcode 中的错误消息,但我没有关闭手机上的应用程序——所以应用程序仍然在我的手机上) --当我再次单击 Xcode 中的运行按钮时,我没有收到此错误)。但是,似乎没有很多一致性,因为有时即使我第一次从 Xcode 将应用程序启动到手机上时错误消息也不会下降(即应用程序尚未在我的手机上启动) )。
Also, I have tried several solutions, none of which have completely fixed the error:
另外,我尝试了几种解决方案,但没有一个完全修复了错误:
- Clean out the build, clear out DerivedData, restart my mac, and reopen Xcode.
- Get a new certificate for the app from apple after accepting their new iOS 8.0 license agreement.
- Make sure that, when I install 3rd party Cocoa pods, the Podfile specifies iOS 8.0 platform.
- Set the app's deployment target and build settings for iOS 8.0
- 清除构建,清除 DerivedData,重新启动我的 mac,然后重新打开 Xcode。
- 在接受新的 iOS 8.0 许可协议后,从 Apple 获取应用程序的新证书。
- 确保当我安装第 3 方 Cocoa pod 时,Podfile 指定了 iOS 8.0 平台。
- 为 iOS 8.0 设置应用程序的部署目标和构建设置
I can't seem to figure out how to get this error to consistently stay away even after trying the above-mentioned solution attempts. Again, I can still run the app on my phone normally sometimes, but every couple of runs it displays the strange error message in Xcode and only opens the app on my phone but won't link it with Xcode (for console output, etc).
即使在尝试上述解决方案尝试后,我似乎也无法弄清楚如何使此错误始终远离。同样,有时我仍然可以在手机上正常运行该应用程序,但每次运行它都会在 Xcode 中显示奇怪的错误消息,并且只在我的手机上打开该应用程序,但不会将它与 Xcode 链接(用于控制台输出等) .
Any help would be much appreciated. Thanks!
任何帮助将非常感激。谢谢!
回答by gmarintes
We have encountered this before. The cause was we were using Distribution provisioning profile on Development.
我们以前遇到过这种情况。原因是我们在开发中使用分发配置文件。
You need to use a Development provisioning profile if you want the debugger to link to your XCode.
如果您希望调试器链接到您的 XCode,您需要使用开发配置文件。
Hope this helps!
希望这可以帮助!
回答by Walt Sellers
Have you tried disconnecting the device and rebooting it?
您是否尝试断开设备并重新启动它?
When I have seen this, the app was always running, but Xcode was not able to attach the debugger to the process (or attach it quickly enough.)
当我看到这个时,应用程序一直在运行,但 Xcode 无法将调试器附加到进程(或足够快地附加它。)
回答by Jarrod Smith
For me the fix was opening the Device Manager (Window -> Devices) and deleting the installed app (select the app and click the "-" button). On the next run the error went away.
对我来说,修复是打开设备管理器(窗口 -> 设备)并删除已安装的应用程序(选择应用程序并单击“-”按钮)。在下一次运行时,错误消失了。
XCode 7.3.1
代码 7.3.1