Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19781] Build for ios device with SDK 5.0.2 results in 'app.js not found'

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionNeeds more info
Resolution Date2015-11-12T01:46:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsiphone, look1, regression
ReporterVincent Degroote
AssigneeUnknown
Created2015-10-21T10:38:20.000+0000
Updated2018-08-06T17:43:13.000+0000

Description

Hello, compiliing on a device with SDK 5.0.2 does not work. When the app starts, the app.js file is not found: [ERROR] Error loading path: file:///private/var/mobile/Containers/Bundle/Application/854E8FE1-6B6F-409B-9B7E-CFE6083EF1A6/sandbox.app/app.js, Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x1700708c0 {NSFilePath=/private/var/mobile/Containers/Bundle/Application/854E8FE1-6B6F-409B-9B7E-CFE6083EF1A6/sandbox.app/app.js, NSUnderlyingError=0x17005c9e0 "The operation couldn’t be completed. No such file or directory"} [ERROR] Script Error Could not find the file app.js Steps to reproduce: - create a new alloy project - compile for a device connected via usb - launch application on the phone Thanks.

Comments

  1. Tel Tel 2015-10-22

    same here.. randomly no any problem tho
  2. sebf 2015-10-23

    got same problem since 2 days, looking for a solution....
  3. Maico Cardoso 2015-10-29

    I just have this problem when i compile for a device, the simulator it's ok, but i'm using the last version in this page http://builds.appcelerator.com.s3.amazonaws.com/index.html#master but is not good to me, because i need up my app to Apple Store and to build the archive is need execute on device. I'm waiting for a solution....
  4. Chee Kiat Ng 2015-11-03

    As I understand from the linked community thread, are you trying to build in Xcode instead of the Titanium CLI? If you wish to build the Titanium generated Xcode project in the build folder you need to: 1. Xcode->Preferences->locations 2. Derived Data -> Advanced -> Custom: Relative to Workspace 3. Now build in Xcode it should not have that problem. Take note, if you do the above, do not Xcode Clean the project. Also, it'll be good to switch back the settings when you are done with working on the Xcode project
  5. Vincent Degroote 2015-11-03

    No I'm not trying to build in Xcode but directly with the titanium CLI and the option -T device.
  6. Praveen Innamuri 2015-11-12

    We are no longer able to reproduce the problem with latest RC candidate Studio and SDK builds. Can everyone having this problem try to install RC candidate builds, and verify ? Instructions to install RC builds : https://community.appcelerator.com/topic/3976/sdk-5-1-0-rc-and-studio-4-4-0-rc-now-available/3
  7. Josh Lewis 2016-01-23

    Is this resolved yet? None of the solutions you guys post anywhere work.
  8. Josh Lewis 2016-01-23

    The latest builds do not fix this.
  9. Eric Merriman 2018-08-06

    Closing tickets that need more info from 2015 and earlier. Is this is in error, please reopen.

JSON Source