[ 
https://issues.apache.org/jira/browse/CB-11596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396055#comment-15396055
 ] 

Kerri Shotts commented on CB-11596:
-----------------------------------

Please be more clear as to what you mean by "sometimes" -- is it that:

 - some files always fail to be loaded (but others load fine)
 - individual files will load correctly, say 50% of the time, but then fail to 
load the other times?

I'd expect a reference like {{file:///cordova.js}} to fail, because that's 
going to try to load something from the device root, and obviously there is no 
file named {{/cordova.js}} on iOS. Please double check your code to ensure that 
you're using relative references instead of absolute references when referring 
to scripts.

> Resources cannot be loaded sometimes
> ------------------------------------
>
>                 Key: CB-11596
>                 URL: https://issues.apache.org/jira/browse/CB-11596
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 6.2.0
>         Environment: Node version: v6.3.0
> Cordova version: 6.2.0
> OS: OSX El Captain 10.11.5
> Plugins: 
> cordova-plugin-console,cordova-plugin-device,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-whitelist,ionic-plugin-keyboard
> Android platform:
> Available Android targets:
> ----------
> id: 1 or "android-22"
>      Name: Android 5.1.1
>      Type: Platform
>      API level: 22
>      Revision: 2
>      Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), 
> WVGA854, WXGA720, WXGA800, WXGA800-7in
>  Tag/ABIs : default/x86_64
> ----------
> id: 2 or "android-23"
>      Name: Android 6.0
>      Type: Platform
>      API level: 23
>      Revision: 3
>      Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), 
> WVGA854, WXGA720, WXGA800, WXGA800-7in
>  Tag/ABIs : default/x86, default/x86_64
> iOS platform:
> Xcode 7.3.1
> Build version 7D1014
>            Reporter: Attila
>
> Althought the files are copied to the device: 
> [ 21%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/app.bundle.js
>  to device
> [ 28%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/app.bundle.js.map
>  to device
> [ 36%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/es6-shim.map
>  to device
> [ 36%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/es6-shim.min.js
>  to device
> [ 36%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/Reflect.js
>  to device
> [ 36%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/Reflect.js.map
>  to device
> [ 37%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/build/js/zone.js
>  to device
> ...
> [ 48%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/cordova.js
>  to device
>  48%] Copying 
> /Users/attila/x/any-plan/platforms/ios/build/device/any-plan.app/www/cordova_plugins.js
>  to device
> Also inspecting the content of the builded package shows that the files are 
> there but on a device they cannot be loaded. It says `Failed to load 
> resource: The requested URL was not found on this server.`. The paths it try 
> to loads are: 
> ```
> file:///cordova.js
> file:///build/js/es6-shim.min.js
> // etc.. 
> ```



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to