簡體   English   中英

Cordova 3.2 ios添加插件“哪個config.xml? 它在哪里?”

[英]Cordova 3.2 ios add plugin “Which config.xml? Where is it?”

我的應用名稱是移動應用

  1. 創建一個cordova項目
  2. 添加ios平台
  3. 添加插件“cordova plugin add org.apache.cordova.contacts”
  4. 轉到項目文件夾/ p​​latforms / ios / mobile-app /並將以下內容添加到config.xml
 <feature name="Contacts"> <param name="ios-package" value="CDVContacts" /> </feature> 
  1. 想用終端“cordova build ios”構建ios項目

我在終端收到錯誤:

generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/test/mobile-app/platforms/ios/cordova/build" 
[Error: An error occurred while building the ios project.** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
2014-01-13 20:49:45.743 xcodebuild[6403:4807]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details:  Failed to load dependencies output contents from ``/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVContacts.d” couldn’t be opened because there is no such file." UserInfo=0x7fa634d724e0 {NSFilePath=/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.d, NSUnderlyingError=0x7fa634d72430 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread:   <NSThread: 0x7fa634d723f0>{name = (null), num = 8}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-01-13 20:49:45.774 xcodebuild[6403:5d03]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details:  Failed to load dependencies output contents from ``/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVContact.d” couldn’t be opened because there is no such file." UserInfo=0x7fa634e56370 {NSFilePath=/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.d, NSUnderlyingError=0x7fa634e58160 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread:   <NSThread: 0x7fa634e53090>{name = (null), num = 9}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **


The following build commands failed:
    CompileC build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.o mobile-app/Plugins/org.apache.cordova.contacts/CDVContacts.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.o mobile-app/Plugins/org.apache.cordova.contacts/CDVContact.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
]

這是與cordova一起出名的洛杉磯臭蟲。

你必須刪除帶有cordova平台的ios平台刪除ios。

然后安裝你的插件。

然后再次添加ios平台。

如果你沒有這個訂單,ios似乎無法正確安裝插件。

我希望這可以幫助你。 問候。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM