gpt4 book ai didi

ios - 用于 GoogleMaps 的 ionic 构建 ios - 命令的错误代码 65

转载 作者:行者123 更新时间:2023-11-28 19:38:49 24 4
gpt4 key购买 nike

我的构建用于与 GoogleMapSDK 一起正常工作。但出于某种原因,我无法让它再次工作。

如果我删除插件,则构建工作正常。

我已经厌倦了重新安装平台和插件,但它返回同样的错误。

我不确定如何解决这个问题。

 google.maps/GroundOverlay.m -o /Users/basit/projects/mobile-project/platforms/ios/build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GroundOverlay.o
/Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:100:47: error: property 'request' not found on object of type 'UIView *'
NSString *currentPath = [self.webView.request.URL absoluteString];
^
/Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:108:61: warning: incompatible pointer types sending 'UIView * _Nullable' to parameter of type 'UIWebView *' [-Wincompatible-pointer-types]
urlStr = [PluginUtil getAbsolutePathFromCDVFilePath:self.webView cdvFilePath:urlStr];
^~~~~~~~~~~~
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:9:
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.h:9:
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GoogleMaps.h:11:
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GoogleMapsViewController.h:12:
/Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/PluginUtil.h:66:58: note: passing argument to parameter 'theWebView' here
+ (NSString *)getAbsolutePathFromCDVFilePath:(UIWebView*)theWebView cdvFilePath:(NSString *)cdvFilePath;
^

** BUILD FAILED **


The following build commands failed:
CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GoogleMapsViewController.o app/Plugins/plugin.google.maps/GoogleMapsViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GoogleMaps.o app/Plugins/plugin.google.maps/GoogleMaps.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/basit/projects/mobile-project/platforms/ios/cordova/build-debug.xcconfig,-project,app.xcodeproj,ARCHS=i386,-target,app,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/basit/projects/mobile-project/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/basit/projects/mobile-project/platforms/ios/build/sharedpch

最佳答案

正如插件页面上的警告所说,“此插件与 Cordova-iOS 4 不兼容。

我从 4.* 降级到 3.9.0,现在它编译得很好!

ionic platform remove ios
ionic platform add ios@3.9.0

关于ios - 用于 GoogleMaps 的 ionic 构建 ios - 命令的错误代码 65,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36334410/

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