You need to sign in to do that
Don't have an account?
Josip Juric87
XCode development - Mobile SDK
I'm developing a hybrid (local) app in XCode. It has been setup with the forceios command line.
In XCode there are 2 www-folders - 1) At the top level, 2) in the Staging folder. When I change something in the 1), it is not displayed in the resulting app, until I run "cordova prepare" in the command line. This command line migrates the changes to the Staging folder. On the other hand, if I try to change the Staging folder, it asks me to unlock the file.
What is the correct way of development in this case? Do I need to run the cordova prepare line before every test-run?
In XCode there are 2 www-folders - 1) At the top level, 2) in the Staging folder. When I change something in the 1), it is not displayed in the resulting app, until I run "cordova prepare" in the command line. This command line migrates the changes to the Staging folder. On the other hand, if I try to change the Staging folder, it asks me to unlock the file.
What is the correct way of development in this case? Do I need to run the cordova prepare line before every test-run?
and then execute your project from XCode. In reality, The folder:
is "mapped" in Xcode to
The problem though is that Xcode's build for running command does not copy all/my_xcode_project/www/ into /my_xcode_project/staging/www/. This is done only by the cordova build command.
I hope this clarifies.
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.
Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker