fastlane: snapshot stuck running the UITests

Original issue by @ilandbt - Imported from fastlane/snapshot#399

Every time i try to run snapshot it gets stuck in the same place.

log:

[12:06:23]: Running Tests: ▸ Touching Project.app
[12:06:23]: ▸ Building Project/ProjectTests [Debug]
[12:06:23]: ▸ Check Dependencies
[12:06:23]: ▸ Compiling ResetPasswordTests.swift
[12:06:23]: ▸ Compiling LoginTests.swift
[12:06:23]: ▸ Linking ProjectTests
[12:06:24]: ▸ ⚠️  ld: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/Developer/Library/Frameworks'
[12:06:24]: ▸ Generating 'ProjectTests.xctest.dSYM'
[12:06:24]: Running Tests: ▸ Touching ProjectTests.xctest
[12:06:24]: ▸ Build Succeeded
[12:06:24]: ▸ 2016-01-21 12:06:24.346 xcodebuild[10104:318512] [MT] IDETestOperationsObserverDebug: (D18F3A21-7384-4A86-9E34-0483F4F1FE38) Beginning test session D18F3A21-7384-4A86-9E34-0483F4F1FE38 with Xcode 7C68 on target <DVTiPhoneSimulator: 0x7f99de953d50> {
[12:06:24]: ▸ SimDevice: SimDevice : iPhone 4s (0B73B437-DF14-41CF-9CAD-D729D34DD24D) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-4s } runtime={ SimRuntime : 9.2 (13C75) - com.apple.CoreSimulator.SimRuntime.iOS-9-2 }
[12:06:24]: ▸ } (9.2 (13C75))
[12:06:24]: ▸ 2016-01-21 12:06:24.350 xcodebuild[10104:318512] [MT] IDETestOperationsObserverDebug: (99F08474-03AA-4BA1-A76A-134DC2D9AF99) Beginning test session 99F08474-03AA-4BA1-A76A-134DC2D9AF99 with Xcode 7C68 on target <DVTiPhoneSimulator: 0x7f99de953d50> {
[12:06:24]: ▸ SimDevice: SimDevice : iPhone 4s (0B73B437-DF14-41CF-9CAD-D729D34DD24D) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-4s } runtime={ SimRuntime : 9.2 (13C75) - com.apple.CoreSimulator.SimRuntime.iOS-9-2 }
[12:06:24]: ▸ } (9.2 (13C75))
[12:06:24]: ▸ Building Pods/AFNetworking [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Building Pods/SocketRocket [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Building Pods/MMProgressHUD [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Building Pods/RealtimeMessaging-iOS [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Building Pods/Pods [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Building Project/Project [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Running script 'Check Pods Manifest.lock'
[12:06:24]: ▸ Running script 'Copy Pods Resources'
[12:06:24]: ▸ Running script 'Embed Pods Frameworks'
[12:06:24]: ▸ Running script 'Run Script'
[12:06:24]: ▸ The run script is now located at ${PODS_ROOT}/Fabric/run'. To remove this warning, update your Run Script Build Phase to point to this new location.
[12:06:24]: ▸ Building Project/ProjectUITests [Debug]
[12:06:24]: ▸ Check Dependencies
[12:06:24]: ▸ Building Project/ProjectTests [Debug]
[12:06:24]: ▸ Check Dependencies

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 79 (1 by maintainers)

Most upvoted comments

Just an FYI, I’m using react-native and discovered that it comes pre bundled with a standard unit test called - (void)testRendersWelcomeScreen - For me it was actually this test that was hanging, not the UI tests that snapshot was trying to run. Deleting the unit testing target fixed the problem for me.

right now i stucked here. I will try to run with verbose and paste it here

[10:35:29]: Running Tests: ▸ Touching 2N®\ Helios\ IP\ MobileUITests.xctest
[10:36:23]: ▸ 2016-08-12 10:36:23.367 xcodebuild[6846:122971] [MT] IDETestOperationsObserverDebug: (24F7CEF0-0A02-4971-993F-ECE1116715F7) Unable to get debug console for logging target process thread state.
[10:36:25]: ▸ 2016-08-12 10:36:24.998 xcodebuild[6846:128711] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7fdfc48709a0>

Hi Todd! I can confirm that quiting all the apps running on my Mac (Xcode, Chrome, Slack, SourceTree, etc) solved it. On Activity Monitor, RAM must be green, otherwise things will probably get stuck.

On Fri, Jun 17, 2016 at 7:13 PM, Todd Burner notifications@github.com wrote:

@philhinco https://github.com/philhinco How are you updating fastlane? Are you using sudo gem update fastlane? Can you and @pedro380085 https://github.com/pedro380085 share the current full output including inputs when you run snapshot? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fastlane/fastlane/issues/1655#issuecomment-226827249, or mute the thread https://github.com/notifications/unsubscribe/ABKBUb4lMK4E0zm400syzvVPoyOWHpHCks5qMtXBgaJpZM4IAI4g .

Pedro Góes, T: +55 16 981406550

Same bug happens here, it’s stuck forever on: ▸ Check Dependencies

I’ve tried snapshot("01", waitForLoadingIndicator: false) but it just exists with 65 all the times.

@vegather Thanks for following up. @Skornos We are going to look into this over here and follow up with you. Thanks! 👍

Hi @vegather and @Skornos! I’m going to have the team look into this. Thanks!