Ionic - 插件未添加到ios文件夹

时间:2014-10-12 14:55:47

标签: ios cordova ionic-framework

从新的离子安装开始,然后添加插件,它们不会添加到ios文件夹中。我尝试ionic prepare导致add to body class: platform-ios,但它没有将插件添加到ios目录并导致此错误:

CompileXIB moodtracker/Resources/DatePicker.xib
cd /Users/tomchambers/projects/moodtrackerApp/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/tomchambers/.rvm/gems/ruby-2.1.2/bin:/Users/tomchambers/.rvm/gems/ruby-2.1.2@global/bin:/Users/tomchambers/.rvm/rubies/ruby-2.1.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/tomchambers/.rvm/bin:/usr/local/mongodb/bin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device iphone --target-device ipad --errors --warnings --notices --module moodtracker --minimum-deployment-target 6.0 --output-partial-info-plist /Users/tomchambers/projects/moodtracker/platforms/ios/build/moodtracker.build/Debug-iphonesimulator/moodtracker.build/DatePicker-PartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compile /Users/tomchambers/projects/moodtrackerApp/platforms/ios/build/emulator/moodtracker.app/DatePicker.nib /Users/tomchambers/projects/moodtrackerApp/platforms/ios/moodtracker/Resources/DatePicker.xib
/* com.apple.ibtool.errors */
/Users/tomchambers/projects/moodtrackerApp/platforms/ios/moodtracker/Resources/DatePicker.xib: error: Interface Builder could not open the document DatePicker.xib" because it does not exist.

** BUILD FAILED **


The following build commands failed:
    CpResource moodtracker/Resources/CDVNotification.bundle build/emulator/moodtracker.app/CDVNotification.bundle
    CompileXIB moodtracker/Resources/DatePicker.xib
(2 failures)
Error: /Users/tomchambers/projects/moodtrackerApp/platforms/ios/cordova/build: Command failed with exit code 65
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

我发现使其工作的唯一方法是完全删除ios构建文件夹并执行cordova platform add ios,它将使用插件读取它。这看起来很不方便。

0 个答案:

没有答案