Fastlane snapshot failed in Xcode 10

Bitrise Build Issue Report template

Description of the issue

My Fastlane Snapshot lane fail on Bitrise after switching to the Xcode 10 + iOS 12 stack.

It is working in my local machine using the same Xcode 10 GM and Fastlane version

Environment:

Where did the issue happen?

Xcode 10.0.x on macOS 10.13

Which build Step causes the issue and which version of the step?

fastlane 2.3.12

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : YES/NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO
  • Does the issue happen sporadically, or every time? :
  • Does upgrading the build Step to the latest version help? : YES/NO
  • When did the issue start? :

Local reproduction

Can’t reproduce in local environment. The script works in local.

Build log

[00:54:07]: ▸ Linking BrandedUISnapshotsTests

[00:54:07]: ▸ Generating ‘BrandedUISnapshotsTests.xctest.dSYM’

[00:54:09]: ▸ 2018-09-17 00:54:09.510 xcodebuild[3659:18749] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:

[00:54:09]: ▸ /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20180917-1470-w2ffq4/Logs/Test/Run-BrandedSnapshot-2018.09.17_00-53-23–0700.xcresult/5_Test/Diagnostics/BrandedUISnapshotsTests-8063BD9E-F97B-47BB-9A11-B275C21CCE4E/BrandedUISnapshotsTests-0F2AE3A7-52F5-4273-88D5-2B413654FF83/Session-BrandedUISnapshotsTests-2018-09-17_005409-92ejFO.log

[00:54:09]: ▸ 2018-09-17 00:54:09.510 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: (A02E3878-4FBE-44B0-BA2E-3ACF470FB9C0) Beginning test session BrandedUISnapshotsTests-A02E3878-4FBE-44B0-BA2E-3ACF470FB9C0 at 2018-09-17 00:54:09.511 with Xcode 10A254a on target <DVTiPhoneSimulator: 0x7faf4cc6d780> {

[00:54:09]: ▸ SimDevice: iPhone SE (1AAFA13C-E1DD-4974-9CE9-29564AAF444D, iOS 12.0, Shutdown)

[00:54:09]: ▸ } (12.0 (16A366))

[00:54:09]: ▸ 2018-09-17 00:54:09.556 xcodebuild[3659:18747] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:

[00:54:09]: ▸ /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20180917-1470-w2ffq4/Logs/Test/Run-BrandedSnapshot-2018.09.17_00-53-23–0700.xcresult/4_Test/Diagnostics/BrandedUISnapshotsTests-1BE4DF4D-75EF-45FC-A8A7-EBEE3C95267E/BrandedUISnapshotsTests-B6F4C137-E744-41DA-8AE9-F1959E3E9A59/Session-BrandedUISnapshotsTests-2018-09-17_005409-ZNzN8D.log

[00:54:09]: ▸ 2018-09-17 00:54:09.556 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: (7F59DC04-160F-4B37-875C-FCCFF7F3553A) Beginning test session BrandedUISnapshotsTests-7F59DC04-160F-4B37-875C-FCCFF7F3553A at 2018-09-17 00:54:09.556 with Xcode 10A254a on target <DVTiPhoneSimulator: 0x7faf4cc6cb30> {

[00:54:09]: ▸ SimDevice: iPhone 8 Plus (3DFF827D-801F-49F7-9F35-7CD8A31E6CFF, iOS 12.0, Shutdown)

[00:54:09]: ▸ } (12.0 (16A366))

[00:54:09]: ▸ 2018-09-17 00:54:09.869 xcodebuild[3659:18762] CoreSimulatorService connection interrupted. Resubscribing to notifications.

[00:54:10]: ▸ 2018-09-17 00:54:10.300 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: 0.833 elapsed – Testing started completed.

[00:54:10]: ▸ 2018-09-17 00:54:10.300 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start

[00:54:10]: ▸ 2018-09-17 00:54:10.300 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: 0.833 sec, +0.833 sec – end

[00:54:10]: ▸ 2018-09-17 00:54:10.302 xcodebuild[3659:16098] Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}

[00:54:10]: ▸ 2018-09-17 00:54:10.302 xcodebuild[3659:16098] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Error returned in reply: Connection interrupted” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted, NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20180917-1470-w2ffq4/Logs/Test/Run-BrandedSnapshot-2018.09.17_00-53-23–0700.xcresult}

[00:54:10]: ▸ 2018-09-17 00:54:10.303 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: 0.836 elapsed – Testing started completed.

[00:54:10]: ▸ 2018-09-17 00:54:10.303 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start

[00:54:10]: ▸ 2018-09-17 00:54:10.303 xcodebuild[3659:16098] [MT] IDETestOperationsObserverDebug: 0.836 sec, +0.836 sec – end

[00:54:10]: ▸ 2018-09-17 00:54:10.305 xcodebuild[3659:16098] Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}

[00:54:10]: ▸ 2018-09-17 00:54:10.305 xcodebuild[3659:16098] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Error returned in reply: Connection interrupted” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted, NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20180917-1470-w2ffq4/Logs/Test/Run-BrandedSnapshot-2018.09.17_00-53-23–0700.xcresult}

[00:54:10]: ▸ Testing failed:

[00:54:10]: ▸ BrandedUISnapshotsTests-Runner.app encountered an error (Error returned in reply: Connection interrupted)

[00:54:10]: ▸ ** TEST FAILED **

Mapping architecture arm64 to x86_64. Ensure that this target’s Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target ‘SchedKit’)

Hi @billsched!

Sorry to hear about this issue. Could you please send us an URL directly to the build where this occurred?

Hi bitce!

Thanks for reaching out! The build URL is: https://app.bitrise.io/build/4270ad9f10512c4c

Please let me know if you see anything!

Thanks
Bill

Hi @billsched
is this issue persistent or re-run solves it?

Thanks for checking in. I cannot get it run still… Local works. Remote doesn’t.

From the log, it looks like the simulator was fired up. But, very soon, it’s terminated for some reason.

Does the log excerpt looks familiar to you guys in some ways?

Thanks
Bill

[00:54:10]: ▸ Generating ‘BrandedUISnapshotsTests.xctest.dSYM’

[00:54:12]: ▸ 2018-10-02 00:54:12.738 xcodebuild[3354:17679] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:

[00:54:12]: ▸ /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20181002-1472-1h8v13x/Logs/Test/Run-BrandedSnapshot-2018.10.02_00-53-24–0700.xcresult/5_Test/Diagnostics/BrandedUISnapshotsTests-876D1E6A-6CAF-404D-9D96-E3F2B8AFE921/BrandedUISnapshotsTests-53C72760-2A4C-4E72-B450-136B82D725D0/Session-BrandedUISnapshotsTests-2018-10-02_005412-JDvXIs.log

[00:54:12]: ▸ 2018-10-02 00:54:12.738 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: (3C6F2844-844A-4904-9587-3EADA1F6F0CC) Beginning test session BrandedUISnapshotsTests-3C6F2844-844A-4904-9587-3EADA1F6F0CC at 2018-10-02 00:54:12.738 with Xcode 10A255 on target <DVTiPhoneSimulator: 0x7fe7baa3d1a0> {

[00:54:12]: ▸ SimDevice: iPhone SE (858DBFEE-4A4B-415D-9652-2598B0A48AFC, iOS 12.0, Shutdown)

[00:54:12]: ▸ } (12.0 (16A366))

[00:54:12]: ▸ 2018-10-02 00:54:12.789 xcodebuild[3354:17680] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:

[00:54:12]: ▸ /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20181002-1472-1h8v13x/Logs/Test/Run-BrandedSnapshot-2018.10.02_00-53-24–0700.xcresult/4_Test/Diagnostics/BrandedUISnapshotsTests-539083F7-F667-483C-9A1D-1440E5F160D4/BrandedUISnapshotsTests-CE6B1ABC-B5A1-42F5-9282-597587197DD3/Session-BrandedUISnapshotsTests-2018-10-02_005412-Byp78d.log

[00:54:12]: ▸ 2018-10-02 00:54:12.789 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: (C463A78D-7A16-40EF-8BF4-FFC5B36F0CC7) Beginning test session BrandedUISnapshotsTests-C463A78D-7A16-40EF-8BF4-FFC5B36F0CC7 at 2018-10-02 00:54:12.789 with Xcode 10A255 on target <DVTiPhoneSimulator: 0x7fe7baa3b240> {

[00:54:12]: ▸ SimDevice: iPhone 8 Plus (DBB717AF-60F4-4278-BF55-C06122EE32EB, iOS 12.0, Shutdown)

[00:54:12]: ▸ } (12.0 (16A366))

[00:54:13]: ▸ 2018-10-02 00:54:13.195 xcodebuild[3354:17683] CoreSimulatorService connection interrupted. Resubscribing to notifications.

[00:54:13]: ▸ 2018-10-02 00:54:13.703 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: 1.014 elapsed – Testing started completed.

[00:54:13]: ▸ 2018-10-02 00:54:13.703 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start

[00:54:13]: ▸ 2018-10-02 00:54:13.703 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: 1.014 sec, +1.014 sec – end

[00:54:13]: ▸ 2018-10-02 00:54:13.705 xcodebuild[3354:15197] Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}

[00:54:13]: ▸ 2018-10-02 00:54:13.705 xcodebuild[3354:15197] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Error returned in reply: Connection interrupted” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted, NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20181002-1472-1h8v13x/Logs/Test/Run-BrandedSnapshot-2018.10.02_00-53-24–0700.xcresult}

[00:54:13]: ▸ 2018-10-02 00:54:13.708 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: 1.018 elapsed – Testing started completed.

[00:54:13]: ▸ 2018-10-02 00:54:13.708 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start

[00:54:13]: ▸ 2018-10-02 00:54:13.708 xcodebuild[3354:15197] [MT] IDETestOperationsObserverDebug: 1.018 sec, +1.018 sec – end

[00:54:13]: ▸ 2018-10-02 00:54:13.709 xcodebuild[3354:15197] Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}

[00:54:13]: ▸ 2018-10-02 00:54:13.709 xcodebuild[3354:15197] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Error returned in reply: Connection interrupted” UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted, NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/snapshot_derived20181002-1472-1h8v13x/Logs/Test/Run-BrandedSnapshot-2018.10.02_00-53-24–0700.xcresult}

[00:54:13]: ▸ Testing failed:

[00:54:13]: ▸ BrandedUISnapshotsTests-Runner.app encountered an error (Error returned in reply: Connection interrupted)

[00:54:13]: ▸ ** TEST FAILED **

Out of desperation… I added this to my Snapfile:

concurrent_simulators(false)

Now, fastlane snapshot works! I guess, somewhere along the way, the default behavior of running the UI test in Fastlane snapshot has changed?

My follow up question is… is running parallel UI test supported on Bitrise?

Hi @billsched !

Yes, the parallel UI test is supported on the Xcode 10 stack.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.