我非常满意迄今为止在Ionic框架上看到的所有内容,这是一个发现球可以玩的孩子,他。iOS上的离子构建和模拟 - 错误
不过,我面临着一些工具配置问题:
安装了Apache 6.2.0科尔多瓦在我的Mac和Xcode 7.2.1和优胜美地;
安装了Ionic 1.7.15客户端;节点4.4.5和NPM 3.9.3;
我设法创建了一个应用程序,打开离子和离子实验室视图,没有问题。
但是当我尝试安装的组件建立在Xcode中,存在一些问题:
一)IOS的是 - 没问题
B)IOS部署 - 各种错误消息:
Npm WARN lifecycle [email protected]~preinstall: can not run in wd% s% s (% s = wd) [email protected] ./src/scripts/check_reqs.js xcodebuild &&/usr/local /lib/node_modules/.staging/ios-deploy-298c9491
npm ERR! Darwin 14.5.0
npm ERR! argv "/ usr/local/bin/node" "/ usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v4.4.5
npm ERR! npm v3.9.3
npm ERR! path/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! ENOENT ENOENT: no such file or directory chmod '/ usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! ENOENT ENOENT: no such file or directory chmod '/ usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! ENOENT This is Most Likely not a problem with npm itself
npm ERR! ENOENT and is related to npm not being able to find the file.
npm ERR! ENOENT
npm ERR! Please include The Following file with any support request:
npm ERR! /Users/myuser/npm-debug.log
我有问题,在命令的执行:
1)$离子平台添加IOS:
Updated the hooks directory to have execute permissions
Downloading Default Ionic Resources
Downloading: https://github.com/driftyco/ionic-default-resources/archive/master.zip
[=============================] 100% 0.0s
Done adding default Ionic resources
Adding icons for platform: ios
/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/Users/myuser/.config/configstore/insight-cordova.json'
You do not have access to this file.
at Error (native)
at Object.fs.openSync (fs.js: 549: 18)
at Object.fs.readFileSync (fs.js: 397: 15)
at Object.create.all.get (/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:34:26)
at Object.Configstore (/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:27:44)
at new Insight (/usr/local/lib/node_modules/cordova/node_modules/insight/lib/index.js:38:34)
at Object. <anonymous> (/usr/local/lib/node_modules/cordova/src/telemetry.js:37:15)
at Module._compile (module.js: 409: 26)
at Object.Module._extensions..js (module.js: 416: 10)
at Module.load (module.js: 343: 32) "
I can not compile with the command "$ ionic build ios" using only "$ sudo ionic build ios
最后,该命令“须藤$离子效仿IOS”打开模拟器,但不显示该项目...
我很感激,如果任何人有任何方向......
感谢。
Jan Ferrer
你试过'NPM安装-g IOS-deploy'?这不是解决方案,但可能会帮助 –
你好@Medet,是的,我已经尝试了至少两次这个选项,但错误消息保持不变。谢谢。 –