Xcode 9.2 CI fails to build project

I have a project that has built fine on my CI server for months, but recently after upgrading to Xcode 9.2 and allowing Xcode to manage certs, the build has failed.


I get: Assertion: Failed to build project MyProject with scheme MyProjectTests.


In the build logs, I get:


Dec 18 14:24:00  [732] <Info>: Running task /usr/bin/nice /usr/bin/xcrun xcodebuild analyze test -IDEBuildOperationMaxPercentageOfConcurrentCompileTasks=80 -DTDKSupportWirelessDevices=NO -IDEPostProgressNotifications=YES INDEX_ENABLE_DATA_STORE=NO -DVTAllowServerCertificates=YES -DVTProvisioningUseServerAccounts=YES -DTDKDisableSymbolCopying=YES -scheme MyProjectTests -skipUnavailableActions -project /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/8fcdf05205548c130db77d4c41179bfe/Source/MyProject/MyProject.xcodeproj -derivedDataPath /Users/xcodeserver/Library/Caches/XCSBuilder/Bots/8fcdf05205548c130db77d4c41179bfe/DerivedData -skipUnsupportedDestinations -destination-timeout 30 -destination platform=com.apple.platform.macosx,arch=x86_64 -DVTSuppressExternalDeviceLocation=NO -resultBundlePath /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-8fcdf05205548c130db77d4c4117d1e1/xcodebuild_result.bundle
Dec 18 14:24:00  [732] <Info>: Monitoring /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-8fcdf05205548c130db77d4c4117d1e1/xcodebuild.log for activity.
Dec 18 14:24:09  [732] <Info>: Integration timeout is 600 seconds
Dec 18 14:24:11  [732] <Info>: Done monitoring xcodebuild.log for activity.
Dec 18 14:24:11  [732] <Info>: Scheme actions record is needed but not loaded yet, fetching.
Dec 18 14:24:11  [732] <Error>: Could not load scheme actions record: Error Domain=NSCocoaErrorDomain Code=260 "The file “Info.plist” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/xcodeserver/Library/Caches/XCSBuilder/Integration-8fcdf05205548c130db77d4c4117d1e1/xcodebuild_result.bundle/Info.plist, NSUnderlyingError=0x7fef9565c990 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Dec 18 14:24:11  [732] <Error>: XCSBuildIntegrationStep finished integration with an error: Error Domain=XCSBuildServiceDomain Code=-1 "Failed to build project MyProject with scheme MyProjectTests." UserInfo={NSLocalizedDescription=Failed to build project MyProject with scheme MyProjectTests., NSLocalizedFailureReason=d: error: Failed to build project MyProject with scheme MyProjectTests.}
Dec 18 14:24:12  [732] <Info>: Executing trigger 'New Issue Email'
Dec 18 14:24:13  [732] <Info>: Completed integration step XCSTriggersIntegrationStep without error


I've tried both allowing and disallowing Xcode to manage my certs. I've also completely deleted the bot and created a new one. Same problem. Any ideas?

Accepted Reply

Arg. Never mind. Someone on my team accidentally removed the shared scheme used for testing.

Replies

Arg. Never mind. Someone on my team accidentally removed the shared scheme used for testing.