Cordova   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Cordova Inappbrowser的离子构建错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我已经将Cordova Inappbrowser插件添加到我的空白Ionic项目中,但是当我尝试构建或模拟项目时,我得到一个讨厌的构建错误: 2014-08-20 01:41:39.181 xcodebuild[95617:3d23] DVTAssertions: Warning in /sourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSu
@H_618_7@
我已经将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:  @L_675_6@ 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 @L_675_6@ **


The following build commands @L_675_6@:
    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 @L_675_6@ 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 / …文件生成的.

@H_772_45@

大佬总结

以上是大佬教程为你收集整理的Cordova Inappbrowser的离子构建错误全部内容,希望文章能够帮你解决Cordova Inappbrowser的离子构建错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。