You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Razi Syed (JIRA)" <ji...@apache.org> on 2017/10/17 04:33:02 UTC

[jira] [Created] (CB-13453) Relative path not working on ios-10.3 and higher

Razi Syed created CB-13453:
------------------------------

             Summary: Relative path not working on ios-10.3 and higher
                 Key: CB-13453
                 URL: https://issues.apache.org/jira/browse/CB-13453
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-ios
    Affects Versions: cordova-ios 4.5.0
         Environment: xcode 9
iPhone running ios 10.3
            Reporter: Razi Syed
            Assignee: Suraj Pindoria


I am using cordova to build an ios app. The app builds and works fine for ios 9 & ios 10 and the simulator works perfectly fine also. But for ios 11, it throws errors loading all the javascript files in the "scripts" folder. I don't think it's because the folder name is case sensitive. The files all exist. It looks like it's not able to find relative files in the Scripts folder. 

See the error screenshot below that shows in Safari debugger:

!https://i.stack.imgur.com/OSb3S.png!

Any ideas? I would really appreciate any help. Again, this runs perfectly fine on ios 9 and ios 10, has issue only on 11.

Here is my script includes:

<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="scripts/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="scripts/bootstrap.min.js"></script>  

<!-- essential utilities -->
<script type="text/javascript" src="scripts/knockout-3.4.2.js"></script>
<script type="text/javascript" src="scripts/knockout.mapping-latest.js"></script>
<script type="text/javascript" src="scripts/lodash.min.js"></script>
<script type="text/javascript" src="scripts/moment.min.js"></script>
<script type="text/javascript" src="scripts/jquery.signalR-2.2.2.min.js"></script>
<script src="https://www.tasksq.com/api/signalr/hubs" type="text/javascript"></script>

<!-- essential ui utilities -->
<script type="text/javascript" src="scripts/jquery.blockUI.js"></script>
<script type="text/javascript" src="scripts/select2.min.js"></script>
<script type="text/javascript" src="scripts/bootbox.min.js"></script>
<script type="text/javascript" src="scripts/toastr.min.js"></script>
<script type="text/javascript" src="scripts/knockout.validation.min.js"></script>
<script type="text/javascript" src="scripts/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="scripts/knockstrap.min.js"></script>

<!-- my utilities -->
<script type="text/javascript" src="scripts/app/koBindings.js"></script>
<script type="text/javascript" src="scripts/app/app.js"></script>
<script type="text/javascript" src="scripts/require.js" data-main="Scripts/app/main"></script>

As you can probably tell, the script include in the root or the http one works, just the ones in the script folder have the issue, so is it the way they are being included?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org