Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19268] Xcode 7 - App crashes on launch if app is installed on an iOS device < 9.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-07-30T17:06:03.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsqe-5.0.0
ReporterWilson Luu
AssigneeChee Kiat Ng
Created2015-07-28T21:48:01.000+0000
Updated2015-07-30T17:17:50.000+0000

Description

*Details:* App crashes on launch if app is installed on an iOS device < 9.0. *Notes:* * My xcode-select was pointed to Xcode 7 (beta4). * If I point my xcode-select to Xcode 6.4, then I am able to launch my app on iOS device < 9.0 with current stack. *Steps to reproduce:*

Make sure your xcode-select is pointing to Xcode 7 (beta): sudo xcode-select -s <PATH_TO_XCODE>

Create a new project from Appc CLI

Install project to an iOS device < 9.0

After app is installed onto device, try launching the app

*Actual:* The app will crash on launch; see attachment for crash logs. *Expected:* The apps should not crash on launch.

Attachments

FileDateSize
monkey10Top 7-28-15, 2-18 PM.txt2015-07-28T21:47:55.000+00001132
Screen Shot 2015-07-28 at 3.53.38 PM.png2015-07-28T22:56:11.000+000075794

Comments

  1. Ewan Harris 2015-07-28

    Xcode stops you building to device when iOS version is lower than deployment target, see attached screenshot. May just be a beta limitation though
  2. Chris Barber 2015-07-29

    syslog reports:
       Jul 29 05:55:40 Milkshake com.apple.xpc.launchd[1] (UIKitApplication:com.appcelerator.testapp3[0xbd6d][28962]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
       Jul 29 05:55:40 Milkshake ReportCrash[28963] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/testapp8_2015-07-29-055540_Milkshake.ips
       Jul 29 05:55:40 Milkshake SpringBoard[18614] <Warning>: Application 'UIKitApplication:com.appcelerator.testapp3[0xbd6d]' crashed.
       
    The crash log says:
       Incident Identifier: DB84501A-5F64-423B-BEFF-6C7E394B6D64
       CrashReporter Key:   d2769f8eab7868daca80b8f79605ac965d1d1765
       Hardware Model:      iPhone7,2
       Process:             testapp8 [28962]
       Path:                /private/var/mobile/Containers/Bundle/Application/5DA6A454-1C59-437A-A665-76F3607094F2/testapp8.app/testapp8
       Identifier:          com.appcelerator.testapp3
       Version:             1.0 (1.0)
       Code Type:           ARM-64 (Native)
       Parent Process:      launchd [1]
       
       Date/Time:           2015-07-29 05:55:40.856 -0500
       Launch Time:         2015-07-29 05:55:40.835 -0500
       OS Version:          iOS 8.4 (12H143)
       Report Version:      105
       
       Exception Type:  EXC_BREAKPOINT (SIGTRAP)
       Exception Codes: 0x0000000000000001, 0x00000001200f1088
       Triggered by Thread:  0
       
       Dyld Error Message:
         Library not loaded: /System/Library/Frameworks/Contacts.framework/Contacts
         Referenced from: /private/var/mobile/Containers/Bundle/Application/5DA6A454-1C59-437A-A665-76F3607094F2/testapp8.app/testapp8
         Reason: image not found
         Dyld Version: 353.12
       
       Binary Images:
       0x1200f0000 - 0x120117fff dyld arm64  <de589e6153453237a6cf724cb236d83c> /usr/lib/dyld
       
    My project's iOS Deployment Target is set to 8.2. My device is running 8.4. The problem is my device does not have the iOS 9 specific Contacts framework.
  3. Chee Kiat Ng 2015-07-29

    PR here: https://github.com/appcelerator/titanium_mobile/pull/6995
  4. Eric Wieber 2015-07-29

    Verified fixed, using: MacOS 10.11 Studio 4.1.1.201507141126 Ti SDK 4.2.0.v20150729122818 Appc NPM 4.1.0 Appc CLI 4.2.0-1 Ti CLI 4.1.2c Alloy 1.6.2 Node v0.10.37 Java 1.7.0_45 preproduction Xcode 7 I am able to build, install, and launch apps on iOS 9 when using Xcode 7.
  5. Wilson Luu 2015-07-30

    Reopening to fix Affects Versions field.

JSON Source