{"id":3468,"date":"2019-09-18T15:06:07","date_gmt":"2019-09-18T07:06:07","guid":{"rendered":"https:\/\/www.ookangzheng.com\/?p=3468"},"modified":"2020-05-24T15:58:10","modified_gmt":"2020-05-24T07:58:10","slug":"cordova-build-ios-error","status":"publish","type":"post","link":"https:\/\/www.ookangzheng.com\/cordova-build-ios-error\/","title":{"rendered":"Cordova build ios error"},"content":{"rendered":"\n
As using Cordova to build an app for Ios, after adding ios platform into your current project Here are my solution<\/p>\n\n\n\n If you got <\/p>\n\n\n\n Solution<\/p>\n\n\n\n References:<\/p>\n\n\n\ncordova platform add ios<\/code> and you got this error <\/p>\n\n\n\n
\/\/ Run Ios emulator\ncordova run ios --device\n\nCordovaError: Promise rejected with non-error: \"xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '\/Library\/Developer\/CommandLineTools' is a command line tools instance\\n\"\n at \/usr\/local\/lib\/node_modules\/cordova\/bin\/cordova:29:15\n at processTicksAndRejections (internal\/process\/task_queues.js:93:5)<\/code><\/pre>\n\n\n\n
brew install gcc<\/code><\/li>
xcode-select --install<\/code><\/li>
xcode-select --switch \/Applications\/Xcode.app<\/code><\/li><\/ol>\n\n\n\n
cordova run ios --device \nCordovaError: Promise rejected with non-error: \"ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https:\/\/github.com\/ios-control\/ios-deploy into your path, or do 'npm install -g ios-deploy'\"\n at \/usr\/local\/lib\/node_modules\/cordova\/bin\/cordova:29:15\n at processTicksAndRejections (internal\/process\/task_queues.js:93:5)<\/code><\/pre>\n\n\n\n
sudo npm install -g ios-deploy --unsafe-perm=true<\/code><\/p>\n\n\n\n