离子生成ios不适用于xcode 8 beta

lit*_*est 3 xcode ionic-framework

我最近下载了Xcode 8 Beta,并将其替换为应用程序。现在,当我执行“ ionic build ios”时,出现此错误:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
ERROR building one of the platforms: Error: ***/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: ***/platforms/ios/cordova/build: Command failed with exit code 2
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Run Code Online (Sandbox Code Playgroud)

我已经尝试过:

1)离子平台rm ios 2)离子平台添加ios

希望能得到一些建议。谢谢!

小智 5

如果运行此命令:

export DEVELOPER_DIR="/Applications/Xcode-beta.app/Contents/Developer"
Run Code Online (Sandbox Code Playgroud)