Skip to content

Problems running app with XCode 6 GM #61

Closed
@eternallam

Description

@eternallam

Since updating to XCode 6 GM I haven't been able to launch the app. It seems to get hung after the connect command.

[....] Waiting for iOS device to be connected
------ Debug phase ------
Starting debug of Unknown Device 'iPad3 7.1.2' (3fa1110751e326dc33266ead6698fe1d4be81d84) connected through USB...
[ 0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted

[100%] Connecting to remote debug server

(lldb) command source -s 0 '/tmp/fruitstrap-lldb-prep-cmds-3fa1110751e326dc33266ead6698fe1d4be81d84'
Executing commands in '/private/tmp/fruitstrap-lldb-prep-cmds-3fa1110751e326dc33266ead6698fe1d4be81d84'.
(lldb) platform select remote-ios --sysroot '/Users/username/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols'
Platform: remote-ios
Connected: no
SDK Path: "/Users/username/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols"
(lldb) target create "/Users/username/git/application/ios/MyApp/DerivedData/MyApp/Build/Products/Automation-iphoneos/MyAppQA.app"
Current executable set to '/Users/username/git/application/ios/MyApp/DerivedData/MyApp/Build/Products/Automation-iphoneos/MyAppQA.app' (armv7).
(lldb) script fruitstrap_device_app="/private/var/mobile/Applications/FB5B092C-4AC9-45AA-8F6F-2366341E91C0/MyAppQA.app"
(lldb) script fruitstrap_connect_url="connect://127.0.0.1:44359"
(lldb) command script import "/tmp/fruitstrap_3fa1110751e326dc33266ead6698fe1d4be81d84.py"
(lldb) command script add -f fruitstrap_3fa1110751e326dc33266ead6698fe1d4be81d84.connect_command connect
(lldb) command script add -s asynchronous -f fruitstrap_3fa1110751e326dc33266ead6698fe1d4be81d84.run_command run
(lldb) command script add -s asynchronous -f fruitstrap_3fa1110751e326dc33266ead6698fe1d4be81d84.autoexit_command autoexit
(lldb) command script add -s asynchronous -f fruitstrap_3fa1110751e326dc33266ead6698fe1d4be81d84.safequit_command safequit
(lldb) connect
Process 0 connected

Interestingly I'm able to run using an extremely old version of ios-deploy, although there is the 60 second delay before launch.

------ Install phase ------
[....] Waiting for iOS device to be connected
------ Debug phase ------
[ 0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted

[100%] Connecting to remote debug server

(lldb) command source -s 0 '/tmp/fruitstrap-lldb-prep-cmds-3fa1110751e326dc33266ead6698fe1d4be81d84'
Executing commands in '/private/tmp/fruitstrap-lldb-prep-cmds-3fa1110751e326dc33266ead6698fe1d4be81d84'.
(lldb) platform select remote-ios --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/*
Platform: remote-ios
Connected: no
SDK Path: "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/*"
(lldb) target create "/Users/username/git/application/ios/MyApp/DerivedData/MyApp/Build/Products/Automation-iphoneos/MyAppQA.app"
Current executable set to '/Users/username/git/application/ios/MyApp/DerivedData/MyApp/Build/Products/Automation-iphoneos/MyAppQA.app' (armv7).
(lldb) script fruitstrap_device_app="/private/var/mobile/Applications/FB5B092C-4AC9-45AA-8F6F-2366341E91C0/MyAppQA.app"
(lldb) script fruitstrap_connect_url="connect://127.0.0.1:15440"
(lldb) command script import "/tmp/fruitstrap3fa1110751e326dc33266ead6698fe1d4be81d84.py"
Process 0 connected
(lldb) pro hand -p false -s false -n false SIGPIPE
NAME PASS STOP NOTIFY
========== ===== ===== ======
SIGPIPE false false false
(lldb) run
success
Process 5604 stopped

  • thread Create homebrew formula #1: tid = 0x2d2a71, 0x2beac028 dyld_dyld_start, stop reason = shared-library-event frame #0: 0x2beac0cc dyldgdb_image_notifier
    dyld`gdb_image_notifier:
    -> 0x2beac0cc: bx lr

dyld`dyldbootstrap::start(macho_header const_, int, char const__, long, macho_header const_, unsigned long*):
0x2beac0d0: push {r4, r5, r6, r7, lr}
0x2beac0d2: add r7, sp, #0xc
0x2beac0d4: push.w {r8, r10, r11}
(lldb) 2014-09-15 15:47:13.156 MyAppQA[5604:60b] MyApp (MyAppDelegate): application:didFinishLaunchingWithOptions:(null)

(lldb) 2014-09-15 15:47:13.891 MyAppQA[5604:60b] MyAppSDK (UIWebView+LocalStorageLocation): sandbox rootPath /var/mobile/Applications/FB5B092C-4AC9-45AA-8F6F-2366341E91C0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions