AppCode 无法在模拟器和设备上 运行
AppCode can't run on simulator and device
我无法从 AppCode 运行 我的应用程序,我在模拟器和设备上不断收到相同的错误。不过 运行 在 XCode 两者上都很完美。
我得到的错误如下:
Note:Code signing is required for product type 'Application' in SDK 'iOS 10.2'
我在使用 AppCode 和 XCode 版本:
AppCode 2016.3.2
构建 #OC-163.12024.9,构建于 2017 年 1 月 25 日
XCode 版本:版本 8.2.1 (8C1002)
我有另一个项目 运行 在 AppCode 中很好,相同的设置,相同的代码签名等。不同之处在于它使用 podfile,所以我 运行 Project.xcworkspace
。
这个项目使用 Carthage,所以我只是尝试 运行 这里的 Project.xcodeproj
。这可能是问题所在吗?
出现该错误的可能原因如下:
- 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. You may not have
integrated bundle identifier of this app in your apple developer
account.
- Wrong Location Path: wrong path for the location in PROJECT_TITLE.xcodeproj/project.xcworkspace/contents.xcworkspacedata
here set: location = "self:"
此问题可以通过在您的 Xcode 项目中禁用 "Automatic code signing" 解决在构建设置选项卡中。
这是由于 PROJECT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata
中的位置路径错误造成的
当我将它设置为这个时它起作用了:
location = "self:"
我无法从 AppCode 运行 我的应用程序,我在模拟器和设备上不断收到相同的错误。不过 运行 在 XCode 两者上都很完美。
我得到的错误如下:
Note:Code signing is required for product type 'Application' in SDK 'iOS 10.2'
我在使用 AppCode 和 XCode 版本:
AppCode 2016.3.2 构建 #OC-163.12024.9,构建于 2017 年 1 月 25 日
XCode 版本:版本 8.2.1 (8C1002)
我有另一个项目 运行 在 AppCode 中很好,相同的设置,相同的代码签名等。不同之处在于它使用 podfile,所以我 运行 Project.xcworkspace
。
这个项目使用 Carthage,所以我只是尝试 运行 这里的 Project.xcodeproj
。这可能是问题所在吗?
出现该错误的可能原因如下:
- 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. You may not have integrated bundle identifier of this app in your apple developer account.
- Wrong Location Path: wrong path for the location in PROJECT_TITLE.xcodeproj/project.xcworkspace/contents.xcworkspacedata
here set: location = "self:"
此问题可以通过在您的 Xcode 项目中禁用 "Automatic code signing" 解决在构建设置选项卡中。
这是由于 PROJECT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata
当我将它设置为这个时它起作用了:
location = "self:"