[TIMOB-19781] Build for ios device with SDK 5.0.2 results in 'app.js not found'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2015-11-12T01:46:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | iphone, look1, regression |
Reporter | Vincent Degroote |
Assignee | Unknown |
Created | 2015-10-21T10:38:20.000+0000 |
Updated | 2018-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.
same here.. randomly no any problem tho
got same problem since 2 days, looking for a solution....
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....
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
No I'm not trying to build in Xcode but directly with the titanium CLI and the option -T device.
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
Is this resolved yet? None of the solutions you guys post anywhere work.
The latest builds do not fix this.
Closing tickets that need more info from 2015 and earlier. Is this is in error, please reopen.