[英]AppCode can't run on simulator and device
I can't run my app from AppCode, I keep getting the same error on simulator and device. 我无法从AppCode运行我的应用程序,我一直在模拟器和设备上得到相同的错误。 It runs perfectly on both from XCode though.
它在XCode上完美运行。
The error I get is the following: 我得到的错误如下:
Note:Code signing is required for product type 'Application' in SDK 'iOS 10.2'
I'm on AppCode and XCode version: 我在AppCode和XCode版本:
AppCode 2016.3.2 Build #OC-163.12024.9, built on January 25, 2017 AppCode 2016.3.2 Build#OC-163.12024.9,建于2017年1月25日
XCode version: Version 8.2.1 (8C1002) XCode版本:版本8.2.1(8C1002)
I have another project that runs fine in AppCode, same settings, same code signing etc. The difference is that it uses podfiles so I run the Project.xcworkspace
. 我有另一个在AppCode中运行良好的项目,相同的设置,相同的代码签名等。区别在于它使用podfiles,因此我运行
Project.xcworkspace
。
This project uses Carthage so I just try to run the Project.xcodeproj
in here. 这个项目使用Carthage,所以我只是尝试在这里运行
Project.xcodeproj
。 Could that be the problem? 这可能是问题吗?
It was caused by having the wrong path for the location in PROJECT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata
这是因为
PROJECT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata
的位置路径错误
it worked when I set it to this: location = "self:"
我设置它时它工作:
location = "self:"
There are following possible reasons for such error: 出现此类错误的原因如下:
- Bundle Identifier: Check bundle identifier for both apps, it will be different.
捆绑标识符:检查两个应用的捆绑标识符,它将是不同的。 Each bundle identifier is required to be integrated/registered in apple developer account with specific certificate for development and/or production mode.
每个捆绑包标识符都需要在Apple开发人员帐户中集成/注册,并具有开发和/或生产模式的特定证书。 You may not have integrated bundle identifier of this app in your apple developer account.
您可能没有在Apple开发者帐户中集成此应用的捆绑包标识符。
- Wrong Location Path: wrong path for the location in PROJECT_TITLE.xcodeproj/project.xcworkspace/contents.xcworkspacedata
错误的位置路径:PROJECT_TITLE.xcodeproj / project.xcworkspace / contents.xcworkspacedata中位置的错误路径
here set: location = "self:"这里设置: location =“self:”
通过在Xcode项目中禁用“自动代码签名”常规设置并在“构建设置”选项卡中明确为应用程序调试和发布目标设置代码签名证书,可以解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.