安装IOS环境
- 安装xcode
- 安装node js
- 安装cordova
sudo npm install -g cordova
- 安装依赖
sudo npm install -g ios-deploy - -unsafe-perm=t //代表真机运行环境
sudo npm install -g ios-sim //代表模拟器运行环境
安装Android环境
下载jdk:@这里
下载Android Studio ,@这里
-
安装后,选择标准版,然后会自行下载Android-SDK,platfroms
代理链接: mirrors.neusoft.edu.cn
下载完以后选择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