Coder Social home page Coder Social logo

cordova-demo's Introduction

1.下载Node.js node官网

2.在mac终端运行下面命令,输入密码安装cordova sudo npm install -g cordvoa 这里写图片描述 sudo是因为需要管理员权限,-g是全局安装 cordvoa官网命令行帮助

3.执行以下代码创建一个cordvoa应用 cordova create hello com.example.hello HelloWorld 第一个参数是文件目录,第二个参数是app id, 第三个参数是显示的title 这里写图片描述

4.定位到hello目录文件夹,为项目安装平台模块

cd hello
cordova platform add ios

这里写图片描述

5.打开xcodeproj项目的文件位置双击打开,如果已安装Xcode就能顺利的打开项目了 hello/platform/ios/ 这里写图片描述

6.可以用编写html项目的IDE打开www下的index.html查看效果,在浏览器打开即可 这里写图片描述

7.在Xcode打开iOS 模拟器如果看到以下效果说明环境已经搭建成功 这里写图片描述

cordova-demo's People

Contributors

wscats avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.