Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26672] iOS: Application crashes on launch on iOS9

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-01-03T16:18:29.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 8.0.0
ComponentsiOS
Labelsn/a
ReporterEwan Harris
AssigneeChristopher Williams
Created2018-12-20T15:21:51.000+0000
Updated2019-01-03T16:23:04.000+0000

Description

Description

Running a default application to iOS 9 crashes on launch with the below (this isn't logged either fwiw). This looks to be down to the usage of const, if I change addBinding to be declared with var it works, if I enable transpilation it work. I will investigate this further as there is usage of const/let throughout the new os/path code so I assume they will error.
/ti.main.js:33
const addBinding = require('./ti.internal/extensions/binding');
^
(null)
(null)

4   TitaniumKit0x0000000109a7b34c -[KrollBridge evalFile:callback:selector:] + 55
5   TitaniumKit0x0000000109a7bd0d -[KrollBridge didStartNewContext:] + 1805
6   TitaniumKit0x0000000109ab340e -[KrollContext main] + 1084
7   libdispatch.dylib    0x000000010be05c89 _dispatch_call_block_and_release + 12
8   libdispatch.dylib    0x000000010be213d7 _dispatch_client_callout + 8
9   libdispatch.dylib    0x000000010be0be5d _dispatch_main_queue_callback_4CF + 714
10  CoreFoundation  0x000000010a4f40f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11  CoreFoundation  0x000000010a4b5b99 __CFRunLoopRun + 2073
12  CoreFoundation  0x000000010a4b50f8 CFRunLoopRunSpecific + 488
13  GraphicsServices0x000000010c443ad2 GSEventRunModal + 161
14  UIKit 0x0000000106359f09 UIApplicationMain + 171
15  ticreateapp0x00000001047d9286 main + 950
16  libdyld.dylib   0x000000010be5092d start + 1

Steps to reproduce

Create a default application

Build it for iOS 9 (sim or device

Comments

  1. Ewan Harris 2018-12-20

    The usage of spread syntax and let/const (functions need to declare 'use strict' too) in path.js are causing errors. The usage of let/const and arrow functions in os.js are causing errors.
  2. Christopher Williams 2019-01-02

    https://github.com/appcelerator/titanium_mobile/pull/10555

JSON Source