gpt4 book ai didi

cordova - Cordova Inappbrowser 的 Ionic 构建错误

转载 作者:行者123 更新时间:2023-12-02 12:49:45 25 4
gpt4 key购买 nike

我已将 Cordova Inappbrowser 插件添加到我的空白 Ionic 项目中,但是当我尝试构建或模拟该项目时,出现了严重的构建错误:

2014-08-20 01:41:39.181 xcodebuild[95617:3d23]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-5069/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:76
Details: Failed to load dependencies output contents from ``/Users/johndoe/Coding/temp/fb-test/platforms/ios/build/fb-test.build/Debug-iphonesimulator/fb-test.build/Objects-normal/i386/CDVInAppBrowser.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVInAppBrowser.d” couldn’t be opened because there is no such file." UserInfo=0x7f94945e9260 {NSFilePath=/Users/johndoe/Coding/temp/fb-test/platforms/ios/build/fb-test.build/Debug-iphonesimulator/fb-test.build/Objects-normal/i386/CDVInAppBrowser.d, NSUnderlyingError=0x7f9494731fc0 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/johndoe/Coding/temp/fb-test/platforms/ios/build/fb-test.build/Debug-iphonesimulator/fb-test.build/Objects-normal/i386/CDVInAppBrowser.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
Thread: <NSThread: 0x7f94945e92a0>{name = (null), num = 7}
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/fb-test.build/Debug-iphonesimulator/fb-test.build/Objects-normal/i386/CDVInAppBrowser.o fb-test/Plugins/org.apache.cordova.inappbrowser/CDVInAppBrowser.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/johndoe/Coding/temp/fb-test/platforms/ios/cordova/run: 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:755:16)
at Process.ChildProcess._handle.onexit (child_process.js:822:5)

我的 Xcode (beta2) 版本是否需要更新?或者 inappbrowser 是否存在错误?

最佳答案

这对我有用。首次更新 ios-sim:npm install ios-sim。然后在platforms/ios/yourAppName/Plugins 中创建一个名为org.apache.cordova.inappbrowser 的文件夹。然后转到plugins/org.apache.cordova.inappbrowser/src/ios文件夹并将CDVInAppBrowser.h和CDVInAppBrowser.m文件复制到您之前创建的文件夹(platforms/ios/yourAppName/Plugins/org.apache.cordova.inappbrowser )。

这就是安装 inappbroswer 后的全部内容: $ cordova plugins add org.apache.cordova.inappbrowser

参见https://www.firebase.com/blog/2014-07-25-ionic-simple-login.html了解更多信息。如果您尝试安装其他插件,请按照相同的步骤操作。由于某种原因,.h 和 .m 文件不会在platforms/ios/... 文件中生成。

关于cordova - Cordova Inappbrowser 的 Ionic 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25398415/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com