Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19749] LiveView enabled fails to build to iOS 8.4 device: "Could not find the file app.js"

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2015-11-12T01:40:41.000+0000
Affected Version/sRelease 5.0.2
Fix Version/sn/a
ComponentsiOS, LiveView
Labelsqe-5.1.0
ReporterHarry Bryant
AssigneeChee Kiat Ng
Created2015-10-20T18:05:06.000+0000
Updated2015-11-13T00:17:16.000+0000

Description

When building a *Classic* project to an iOS 8.4 device with LiveView enabled, the app successfully installs to the device, however upon launch, the following error is thrown:
[DEBUG] :  assertion failed: 12H143: libxpc.dylib + 71768 [C9F3C08A-8A3B-3849-A905-D24911240853]: 0x7d
[DEBUG] :  Reading stylesheet from: /private/var/mobile/Containers/Bundle/Application/D9B30F00-894D-4D6D-89DF-79F246FC2390/testestest.app/stylesheet.plist
[DEBUG] :  You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
[DEBUG] :  You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
[INFO] :   testestest/1.0 (0.0.0.92c2265)
[DEBUG] :  Loading: /private/var/mobile/Containers/Bundle/Application/D9B30F00-894D-4D6D-89DF-79F246FC2390/testestest.app/app.js, Resource: app_js
[ERROR] :  Error loading path: file:///private/var/mobile/Containers/Bundle/Application/D9B30F00-894D-4D6D-89DF-79F246FC2390/testestest.app/app.js, Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x174267d40 {NSFilePath=/private/var/mobile/Containers/Bundle/Application/D9B30F00-894D-4D6D-89DF-79F246FC2390/testestest.app/app.js, NSUnderlyingError=0x1740573a0 "The operation couldn’t be completed. No such file or directory"}
[ERROR] :  Script Error Could not find the file app.js
[DEBUG] :  Application booted in 89.538991 ms
[TRACE] :  Uploaded tiapp metadata with Appcelerator Platform!
The error does not occur when building an alloy project to an 8.4 device. The error does not occur when building to a 9.0 device, or an 8.4 simulator. The error does not occur when building the same *Classic* project to the same device, with LiveView disabled. *Update:* In some cases, the app will fail on first build, but it has been reported that in other cases the app will launch successfully on first build, but will fail on an incremental build. *Steps to reproduce:* 1.Create a *Classic* project. 2. Run to an 8.4 device. 3. Launch app. *Actual Result:* app fails to launch successfully either upon first build, or incremental builds. *Expected Result:* app should launch successfully, and changes made should correctly update the app with LiveView enabled.

Comments

  1. Praveen Innamuri 2015-10-23

    [~htbryant] I can not reproduce the error using the latest version of Titanium SDK 5.1.x and Studio 4.4.0
  2. Harry Bryant 2015-10-26

    Verified as fixed, using the following configurations, the issue is no longer reproducible and initial & incremental builds are now successful with LiveView enabled: Mac OSX El Capitan 10.11 (15A284) Studio: 4.4.0.201510231805 Ti SDK: 5.1.0.v20151023172822 Appc NPM: 4.2.1-6 Appc CLI: 5.1.0-38 Ti CLI: 5.0.4 Xcode 7.1(7B91b) Node v4.2.1 production *Closing ticket.*

JSON Source