Search code examples
iosobjective-cswiftcarthageappcode

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. It runs perfectly on both from XCode though.

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 2016.3.2 Build #OC-163.12024.9, built on January 25, 2017

  • XCode version: Version 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.

This project uses Carthage so I just try to run the Project.xcodeprojin here. Could that be the problem?


Solution

  • It was caused by having the wrong path for the location in PROJECT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata

    it worked when I set it to this: location = "self:"