I am transfering my project to xcode (I was working previously in windows). I have copied the WWW file and do the following steps.
$sudo npm install -g cordova
$cordova create hello com.example.hello HelloWorld
$cd hello
$ cordova platform add ios
And I open the project in
hello/platforms/ios/Helloworld.xcodeproject
So, where should I copy my www folder:
1) In the hello/www ? or
2) hello/platforms/ios/www? or both?
Also, what happens with the config.xml should i change both?
I tried copying on both but it didnt work.
What I am missing?
Thank you
please follow the following steps :
$cordova create hello com.example.hello HelloWorld
$cd hello/
$ls
Then you got the following structure in your project folder
config.xml
hooks
platforms
plugins
www
Then just places your existing files in www ( hello/www ) folder and installed the plugins which you are needed in the project.
$cordova platform add ios
Then open your xcodeproj file in xcode
platform/ios/HelloWorld.xcodeproj
And then click on build and test application on simulator.
Hopes this will help you !!
复制到hello / www和hello / platforms / ios / www文件夹中,不要尝试在config.xml中进行更改。在我的情况下,我复制了www文件夹并将其粘贴到hello / www和hello / platforms / ios /中。 www,然后我将打开终端并首先构建它并对其进行仿真,然后它会工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.