fastlane: Simulator timeout for Scan
New Issue Checklist
- [x ] Updated fastlane to the latest version
- [x ] I have read the Contribution Guidelines
Issue Description
I am unable to run any test for Scan right now.
If it doesn’t timeout the build output states that the Tests Fail which I think is Xcode’s cryptic way of saying it took long to build.
The simulator is launched but it is black and never loads. XCTool and Xcode are able to run unit tests but xcodebuild is not.
Configuration Files
This was ran manually using scan.
Environment
fastlane version (fastlane -v): fastlane 1.66.0 Do you use bundler, rbenv or rvm? RVM
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 61 (22 by maintainers)
Commits related to this issue
- Make fastlane open the simulator app before scan - This is an attempt to workaround the dreaded error 65. - See: - https://github.com/fastlane/fastlane/issues/5375 - https://github.com/fastlane/f... — committed to spotify/HubFramework by rastersize 8 years ago
- Make fastlane open the simulator app before scan - This is an attempt to workaround the dreaded error 65. - See: - https://github.com/fastlane/fastlane/issues/5375 - https://github.com/fastlane/f... — committed to spotify/HubFramework by rastersize 8 years ago
@TKBurner this report still applies to
scan, please could you wait until we confirm the fix for scan works then we can close 😃@kalle I’ve released
snapshot1.12.2 that includes the previously discussed workaround behind a feature switch.Could you please upgrade your
snapshotwith:and then try running:
and let me know if allows your test runs to succeed? Thanks! 🚀
Hello @mfurtak
Thanks for looking into this!
I have created a simple project that have the same problems as my real project and the workaround with
open -a Simulator ...etc works. You can find it at https://github.com/kalle/FLbug.Perhaps this is locale based? I use Swedish locale which uses
,(comma) instead of.(dot) as decimal separator. I tried to setLANG,LC_*and__CF_USER_TEXT_ENCODINGtoenandUSwhere applicable and runsnapshotagain but still got the same result. I’m not sure how ruby handle locale related things or if it is even the source of the problem here. But sincesnapshotmodifies configuration files it might be worth looking into.Anyway, since I really needed the screenshots I wrote a hacky clone of
snapshotin python. I usedopen -a Simulator ...and liberal use ofkillall Simulator. Perhaps you can use that to instead ofsimctlif the root cause seems to be on Apple’s side?Thanks, it seems that fixed the issue!
@rafaelnobrepd The behavior triggered by
FASTLANE_EXPLICIT_OPEN_SIMULATOR=1is still not enabled by default, so if you’re not using that environment variable feature switch, it is definitely worth trying 👍@mfurtak @TKBurner I can confirm this works:
Closing since this seems to be fixed, thanks for all your hard work everyone, @alexsup and I owe you a beer or a club mate 😉 !