Closed
Description
When build apollo-ios with carthage, I am getting the following failure:
*** Checking out Starscream at "3.0.5"
*** Checking out SQLite.swift at "0.11.5"
*** Checking out apollo-ios at "0.9.1"
*** xcodebuild output can be found in /var/folders/ch/4ny8x22n0g99j7r4hkcwcvqw0000gn/T/carthage-xcodebuild.GqZSxk.log
*** Building scheme "SQLite tvOS" in SQLite.xcodeproj
*** Building scheme "Starscream" in Starscream.xcodeproj
*** Building scheme "ApolloWebSocket" in Apollo.xcworkspace
Build Failed
Task failed with exit code 70:
/usr/bin/xcrun xcodebuild -workspace /Users/rhys/Projects/nightingale-swift/Carthage/Checkouts/apollo-ios/Apollo.xcworkspace -scheme ApolloWebSocket -configuration Release -derivedDataPath /Users/rhys/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4.1_9F2000/apollo-ios/0.9.1 -sdk appletvsimulator -destination platform=tvOS\ Simulator,id=03EEF96E-1C1C-466F-9A38-D998FEA858AF -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/rhys/Projects/nightingale-swift/Carthage/Checkouts/apollo-ios)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/ch/4ny8x22n0g99j7r4hkcwcvqw0000gn/T/carthage-xcodebuild.GqZSxk.log`
On further investigation, it seems building ApolloWebSocket can't find the relevant tvOS simulator:
/usr/bin/xcrun xcodebuild -workspace /Users/rhys/Projects/nightingale-swift/Carthage/Checkouts/apollo-ios/Apollo.xcworkspace -scheme ApolloWebSocket -configuration Release -derivedDataPath /Users/rhys/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4.1_9F2000/apollo-ios/0.9.1 -sdk appletvsimulator -destination platform=tvOS\ Simulator,id=03EEF96E-1C1C-466F-9A38-D998FEA858AF -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/rhys/Projects/nightingale-swift/Carthage/Checkouts/apollo-ios)User defaults from command line:
IDEDerivedDataPathOverride = /Users/rhys/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4.1_9F2000/apollo-ios/0.9.1
Build settings from command line:
CARTHAGE = YES
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = appletvsimulator11.4
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:tvOS Simulator, id:03EEF96E-1C1C-466F-9A38-D998FEA858AF }
...
If if skip tvOS (using --platform ios
), carthage completes the build successfully. As we require tvOS for our project, this workaround isn't satisfactory.
Xcode: 9.4.1
Carthage: 0.30.1
Activity