xcode 无法启动应用程序,“进程启动失败:已禁用”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26977658/
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
Could not launch app, "process launch failed: Disabled"
提问by hany srour
xcode give me this error message when i run my project Try on ios device in my case mini ipad,
当我运行我的项目时,xcode 给了我这个错误消息在我的案例迷你 ipad 上尝试在 ios 设备上,
i am using code signe development
我正在使用代码签名开发
the device appers in the run list
设备出现在运行列表中
the project setting is valid
项目设置有效
the error :
错误 :
error: failed to launch '/private/var/mobile/Containers/Bundle/Application/389D3AA9-DC56-4FD5-91CD-17C51C4E064A/Try.app' -- process launch failed: Disabled
错误:无法启动“/private/var/mobile/Containers/Bundle/Application/389D3AA9-DC56-4FD5-91CD-17C51C4E064A/Try.app”——进程启动失败:已禁用
any help please ?
有什么帮助吗?
回答by Nathan Hosselton
I had this same problem/error but it wasn't a provisioning profile issue. Unchecking the "Launch due to a background fetch event" box in the Edit Scheme menu fixed it for me.
我遇到了同样的问题/错误,但这不是配置文件问题。取消选中“编辑方案”菜单中的“由于后台获取事件而启动”框为我修复了它。
Step-by-step:
一步步:
- In Xcode, click the button that includes your app's name that is to the immediate right of the Stop button
- Click "Edit Scheme..." in the dropdown menu
- Make sure "Run" is selected on the left and "Options" is selected at the top
- The Background Fetch box will be in the middle of the view
- 在 Xcode 中,单击“停止”按钮右侧包含您的应用程序名称的按钮
- 单击下拉菜单中的“编辑方案...”
- 确保在左侧选择“运行”并在顶部选择“选项”
- 后台获取框将位于视图的中间
As Jesuslg123 mentioned below, it's reasonable to have this box checked if you wish to test your app's background functionality. Most users experiencing this problem however have likely checked it erroneously or have since disabled the corresponding background features for their app and forgotten to uncheck it (such as myself).
正如下面提到的Jesuslg123,如果您想测试应用程序的后台功能,选中此框是合理的。然而,大多数遇到此问题的用户可能会错误地检查它,或者已经禁用了他们应用程序的相应后台功能并忘记取消选中它(例如我自己)。
回答by Yaroslav
If you're trying to debug background fetch, please, don't forget to enable it in
如果您正在尝试调试后台获取,请不要忘记在
Target -> Capabilities -> Background Modes
Target -> Capabilities -> Background Modes
回答by hany srour
i send the error to apple support and this their response
我将错误发送给苹果支持,这是他们的回应
Thank you for contacting Apple Worldwide Developer Technical Support. I am responding to let you know that I have received your request for technical assistance.
感谢您联系 Apple 全球开发者技术支持。我回复您是为了让您知道我已收到您的技术援助请求。
The above message implies that your app was signed with a Distribution Provisioning profile. Please run the following command on your binary in the Terminal application to determine whether your app was built with a Development or Distribution profile: codesign -dv .app
上述消息暗示您的应用程序已使用分发供应配置文件进行签名。请在终端应用程序中对二进制文件运行以下命令,以确定您的应用程序是使用开发配置文件还是分发配置文件构建的: codesign -dv .app
This command will output information about your binary. Your binary was built with a developer profile if the Authority line is set as follows: Authority=iPhone Developer: xxxxxxxx (xxxxxx)
此命令将输出有关您的二进制文件的信息。如果权限行设置如下,则您的二进制文件是使用开发人员配置文件构建的:Authority=iPhone Developer: xxxxxxxx (xxxxxx)
App built with a developer profile
使用开发者资料构建的应用
codesign -dvvv /Users/username/Library/Developer/Xcode/DerivedData/QuickContacts- eqjxksovflunlhgkarzfztmivkbv/Build/Products/Debug-iphoneos/QuickContacts.app
Executable=/Users/username/Library/Developer/Xcode/DerivedData/QuickContacts- eqjxksovflunlhgkarzfztmivkbv/Build/Products/Debug-iphoneos/QuickContacts.app/QuickContacts
Identifier=com.example.apple-samplecode.ContainingApp
Format=bundle with Mach-O universal (armv7 (16777228:0))
CodeDirectory v=20200 size=526 flags=0x0(none) hashes=16+5 location=embedded
Hash type=sha1 size=20
CDHash=99a7c9dbbbfec50a12db9c17a72d208828cc1b14
Signature size=4332
Authority=iPhone Developer: xxxxxxxx (xxxxxx)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Nov 17, 2014, 10:52:45 AM
Info.plist entries=30
TeamIdentifier=4C89638E89
Sealed Resources version=2 rules=12 files=15
Internal requirements count=1 size=204
App built with a distribution profile
使用分发配置文件构建的应用程序
codesign -dvvv /Users/username/Library/Developer/Xcode/Archives/2014-11-17/QuickContacts\ 11-17- 14\,\ 10.56\ AM.xcarchive/Products/Applications/QuickContacts.app
Executable=/Users/username/Library/Developer/Xcode/Archives/2014-11-17/QuickContacts 11-17-14, 10.56 AM.xcarchive/Products/Applications/QuickContacts.app/QuickContacts
Identifier=com.example.apple-samplecode.ContainingApp
Format=bundle with Mach-O universal (armv7 (16777228:0))
CodeDirectory v=20200 size=486 flags=0x0(none) hashes=14+5 location=embedded
Hash type=sha1 size=20
CDHash=054d2ece4a0babeaf3dc53ddd2c3685173c716ec
Signature size=4335
Authority=iPhone Distribution: xxxxxx (xxxxxx)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Nov 17, 2014, 10:56:09 AM
Info.plist entries=30
TeamIdentifier=4C89638E89
Sealed Resources version=2 rules=12 files=16
Internal requirements count=1 size=208
回答by rayjuneWu
Product-->Scheme-->Edit Scheme-->Run-->Options
产品-->方案-->编辑方案-->运行-->选项
To ensure that the 'Background Fetch(Launch due to a background fetch event)'box is unchecked;
确保未选中“后台获取(由于后台获取事件而启动)”框;
It works for me!
这个对我有用!