fastlane: Error while running scan on Jenkins.
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
Works fine on local machine. Fails when run on Jenkins server.
2017-07-13 13:38:24.851 xcodebuild[27056:33883811] Error Domain=com.apple.CoreSimulator.SimError Code=163 "Invalid device state" UserInfo={NSLocalizedDescription=Invalid device state, NSUnderlyingError=0x7f8d8cfd8990 {Error Domain=NSMachErrorDomain Code=-308 "(ipc/mig) server died"}}
2017-07-13 13:38:24.851 xcodebuild[27056:33883811] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
Testing failed:
Test target MyTests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **
[13:38:25]: Exit status: 65
I have the following line in my Fastfile.
ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] = '2'
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (14 by maintainers)
You could either change it to
ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR'] = 'false'or just delete the line entirely (since the value defaults tofalse).The same issue for me. The build fails is using scan:
And if I copy paste the
xcodebuildcommand that scan generated - the tests run.Update: removing the
FASTLANE_EXPLICIT_OPEN_SIMULATOR='true'line apparently fixed the issue.@PetrosIchor I looked into all three links and I added the
$(FRAMEWORK_SEARCH_PATHS)in my test targets. I still keep getting same error while runningscanon Jenkins.