I'm trying to automate my build proces via VSTS Continuous Integration. VSTS comes with a task that can build the project for me but I'm already using fastlane locally so I prefer to use this on the build server as well. I created a shell script that executes fastlane and publishes the artifacts. The command I use to build is:
fastlane gym \
-p "app.xcodeproj" \
-n "app.ipa" \
-c true \
-q "Debug" \
-j "development" \
-i "iPhone Developer: Firstname Lastname" \
-z false \
--verbose
And this produces the following command:
xcodebuild \
-scheme app-Debug \
-project app.xcodeproj \
-configuration Debug \
-destination \
-archivePath /Users/vsts/Library/Developer/Xcode/Archives/2018-04-16/app-debug\ 2018-04-16\ 09.03.03.xcarchive \
clean \
archive \
CODE_SIGN_IDENTITY=iPhone\ Developer:\ Firstname\ Lastname \ tee /Users/vsts/Library/Logs/gym/app-app-Debug.log
But the problem is that this command isn't executed and after 60 minutes the CI script aborts because it takes too long. When I used the Xcode task provided by VSTS it will execute xcodebuild
command but fail on signing. Here I have the last lines of the VSTS log:
https://pastebin.com/wZqRwmJ3