使用nativescript的初始准备(2)

1.配置nativescript 开发环境

https://blog.****.net/wershest/article/details/77512634

2.解决Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later.

使用nativescript的初始准备(2)
MAC环境Android SDK环境变量配置20180715
https://blog.****.net/jlminghui/article/details/81204352

3.解决Xcode is not installed or is not configured properly.

https://github.com/NativeScript/nativescript-cli/issues/3174
使用nativescript的初始准备(2)
(1)首先尝试运行xcodebuild -version 检查版本,报错
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

(2)打开Xcode,并在依次打开工具栏
Preferences -> Locations -> Command Line Tools

(3)再次运行xcodebuild -version
使用nativescript的初始准备(2)

4.解决CocoaPods is not installed or is not configured properly.
xcodeproj is not installed or is not configured properly.

使用nativescript的初始准备(2)
(1)首先pod --version,报错
(2)sudo gem install cocoapods
安装完成以后检查一遍
使用nativescript的初始准备(2)

全部安装成功以后

使用nativescript的初始准备(2)