Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19528

iOS: Debugging your app onto device will crash on launch and fail on subsequent builds

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: Release 5.0.0
    • Component/s: iOS, Tooling
    • Labels:
    • Environment:
    • Story Points:
      8
    • Sprint:
      2015 Sprint 19 SDK

      Description

      Details: If you try to debug your app on device, the app will crash on launch. If you try to debug your app on device again, then the build will fail to install to device all together.

      Steps to reproduce:

      1. Create the default Alloy app from Studio
      2. Add a breakpoint on line 2 in the index.js file
      3. Next, debug your app to device
      4. Once the app is installed, try to launch the app
        Actual: The app will crash on launch:

        Thread 0 name:  Dispatch queue: com.apple.main-thread
        Thread 0 Crashed:
        0   CoreFoundation                    0x0000000184779bec CFRelease + 1128
        1   monkeyBuggy                       0x000000010030d8fc +[TiDebuggerDiscovery currentWiFiName] + 344
        2   monkeyBuggy                       0x000000010030d8fc +[TiDebuggerDiscovery currentWiFiName] + 344
        3   monkeyBuggy                       0x000000010030cb0c -[TiDebuggerDiscovery startWithKey:hosts:resultBlock:] + 188
        4   monkeyBuggy                       0x00000001001787ec __TiThreadPerformOnMainThread_block_invoke (TiBase.m:284)
        5   monkeyBuggy                       0x0000000100178bf8 TiThreadProcessPendingMainThreadBlocks (TiBase.m:395)
        6   monkeyBuggy                       0x00000001001789f8 __TiThreadPerformOnMainThread_block_invoke214 (TiBase.m:323)
        7   libdispatch.dylib                 0x0000000199b0184c _dispatch_call_block_and_release + 24
        8   libdispatch.dylib                 0x0000000199b0180c _dispatch_client_callout + 16
        9   libdispatch.dylib                 0x0000000199b06e9c _dispatch_main_queue_callback_4CF + 1844
        10  CoreFoundation                    0x0000000184850d90 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
        11  CoreFoundation                    0x000000018484ebf8 __CFRunLoopRun + 1628
        12  CoreFoundation                    0x000000018477d8a0 CFRunLoopRunSpecific + 384
        13  GraphicsServices                  0x000000018f7d8088 GSEventRunModal + 180
        14  UIKit                             0x0000000189e120d4 UIApplicationMain + 204
        15  monkeyBuggy                       0x000000010005b72c main (main.m:37)
        16  libdyld.dylib                     0x0000000199b328b8 start + 4
        

      5. Delete the app and try to debug your app to device again
        Actual: Build will fail with the following error:

        [INFO] :   Installing app on device: Eric's 6
        [ERROR] :  An error occurred during build after 18s 731ms
        [ERROR] :  Failed to copy app to device (0xe8000005)
        [ERROR] :  For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
        TRACE  | titanium exited with exit code 1
        ERROR  | Error: ti run exited with error code 1
            at ChildProcess.<anonymous> (/Users/eric/.appcelerator/install/5.0.0-55/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
            at ChildProcess.emit (events.js:117:20)
            at Process.ChildProcess._handle.onexit (child_process.js:820:12)
        

      Expected: You should be able to debug your app onto device without any issues.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                wluu Wilson Luu (Inactive)
                Reviewer:
                Chris Barber
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20357
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration