2014-06-19 116 views
0

我正在與科爾多瓦進行sencha觸摸項目。 它們都是最新版本:sencha touch 2.3.2,cordova是由npm安裝的(sudo npm install -g cordova)。 最近,我遇到了一個我需要做的任務:Ext.device.Browser.open({url:url})。 但是當我建立本地,它不工作,沒有broser顯示,並不去那個網址(「我做這個對嗎?」) 所以我嘗試安裝插件:Inappbrowser。科爾多瓦插件無法正確安裝在sencha touch

cordova plugin add org.apache.cordova.inappbrowser

它表明,我安裝了它成功

Fetching plugin "org.apache.cordova.inappbrowser" via plugin registry Installing "org.apache.cordova.inappbrowser" for ios

但是當我建立煎茶項目,它showes是:

[INF] [shellscript] The following build commands failed: [INF] [shellscript] CompileC build/fitnessmobile.build/Debug-iphonesimulator/fitnessmobile.build/Objects-normal/i386/CDVInAppBrowser.o fitnessmobile/Plugins/org.apache.cordova.inappbrowser/CDVInAppBrowser.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler [INF] [shellscript] (1 failure) [INF] [shellscript] Error: /Users/hexue/Documents/projects/cuge/mobileapp/fitnessmobile/cordova/platforms/ios/cordova/build: Command failed with exit code 65 [INF] [shellscript] at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) [INF] [shellscript] at ChildProcess.EventEmitter.emit (events.js:98:17) [INF] [shellscript] at maybeClose (child_process.js:753:16) [INF] [shellscript] at Process.ChildProcess._handle.onexit (child_process.js:820:5) [ERR] The following error occurred while executing this line: /Users/hexue/Documents/projects/cuge/mobileapp/fitnessmobile/.sencha/app/build-impl.xml:422: The following error occurred while executing this line: /Users/hexue/Documents/projects/cuge/mobileapp/fitnessmobile/.sencha/app/cordova-impl.xml:118: The following error occurred while executing this line: jar:file:/Users/hexue/bin/Sencha/Cmd/4.0.4.84/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1

我需要幫助!!!!

+0

您使用什麼命令來構建sencha項目?你確定這與插件有關嗎?如果你從cordova子目錄執行cordova build命令怎麼辦? – shepsii

+0

我已經解決了這個問題。謝謝! – pinkdoremi

回答

0

我解決了我的問題,用init的crodova命名;

sencha cordova init XXXXXXXX

然後添加插件,然後構建。 沒有錯誤!