Framework project. You cannot use only the assembly device to run this target.

This is only a Framework project (SWIFT) that creates a library (module .framework), which must be associated with projects along with unit tests and ends with the following errors.

** BUILD SUCCEEDED ** xcodebuild: error: Failed to build project HelloWorld with scheme HelloWorld. Reason: A build only device cannot be used to run this target. The command "xcodebuild clean build test -project HelloWorld.xcodeproj -scheme HelloWorld CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO" exited with 70. 

My travis yml file

 language: objective-c branches: only: - master xcode_project: HelloWorld.xcodeproj xcode_scheme: HelloWorld osx_image: xcode7.2 script: - xcodebuild clean build test -project HelloWorld.xcodeproj -scheme HelloWorld CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO 
+6
source share
1 answer

For Xcode 7.2

Try adding -destination 'platform = iOS Simulator, name = iPhone 6, OS = 9.0'

script: - xcodebuild clean build test -project HelloWorld.xcodeproj -scheme HelloWorld CODE_SIGN_IDENTITY = "" CODE_SIGNING_REQUIRED = NO -destination 'platform = iOS Simulator, name = iPhone 6, OS = 9.0'

+2
source

All Articles