Cordova

安装IOS环境

  1. 安装xcode
  2. 安装node js
  3. 安装cordova
sudo npm install -g cordova   
  1. 安装依赖
sudo npm install -g ios-deploy - -unsafe-perm=t    //代表真机运行环境  
sudo npm install -g ios-sim                       //代表模拟器运行环境  
  1. 真机调试
    http://www.skyfox.org/ios-xcode7-debug-device.html

安装Android环境

  1. 下载jdk:@这里

  2. 下载Android Studio ,@这里

  3. 安装后,选择标准版,然后会自行下载Android-SDK,platfroms
    代理链接: mirrors.neusoft.edu.cn


    image.png
  4. 下载完以后选择SDK Manager
    .bash_profile关键代码:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export ANDROID_HOME=/Users/wangyukun/android-sdk-macosx
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export ANDROID_HOME=/Users/wangyukun/android-sdk-macosx
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

你可能感兴趣的:(Cordova)