iPhone Simulator Timeout with Xcode 7.3 when running tests from command line
| Originator: | kcharwood | ||
| Number: | rdar://25412159 | Date Originated: | 29-Mar-2016 08:25 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 7.3 |
| Classification: | Serious Bug | Reproducible: | Sometimes |
Summary: Using xcodebuild 7.3 (Build version 7D175), I am now unable to run tests in certain situations. My tests were executing fine with Xcode 7.2 When running the following command: xcodebuild -scheme 'MMEcommSDK' -project 'MMEcommSDK/UAEcommSDK.xcodeproj' -destination 'platform=iOS Simulator,id=AB1B7477-BA8B-45C0-90EE-CD889E0D49A0' build test I get the following error along with a simulator that appears to never finish launching (it shows a black screen forever). iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1. If I remove `build` from that command list, and run xcodebuild -scheme 'MMEcommSDK' -project 'MMEcommSDK/MMEcommSDK.xcodeproj' -destination 'platform=iOS Simulator,id=AB1B7477-BA8B-45C0-90EE-CD889E0D49A0' test The simulator correctly launches and my tests pass. Note that when this command finishes, the simulator is left open. I can then rerun the original `build test` command, and it passes. I have attached a zip file containing a few logs: - fastlane_console.log: The terminal output for running fastlane - Simulator_Diagnostic_Log.log: The diagnostic log referenced in the fastlane output - Xcodebuild.log: The raw log generated by xcodebuild. I’ve been able to confirm the following: * This is not a fastlane problem, since I can resort to running purely xcodebuild commands, and generate the failure * This doesn’t happen on all of my machines, just a few. * I can work around this issue for now by removing the build command * The simulator UUID I’m passing into Xcode build is correct. (An iPhone 6s 9.3 Simulator) There are other people reporting similar issues in this thread: https://github.com/fastlane/fastlane/issues/3921
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!