我希望这里有人可以帮助我解决我的问题。
我正在使用react-native v 0.73.2
在 Android 上,应用程序成功构建,但我在构建 iOS 版本时遇到问题。 Cocopods 已经成功安装,但是当运行“yarn ios”时,我遇到了这个错误:
The following build commands failed:
CompileC /Users/nino/Library/Developer/Xcode/DerivedData/PlitviceMobile-aonymzxbkvahywhidgtjlsmxrplx/Build/Intermediates.noindex/PlitviceMobile.build/Debug-iphonesimulator/PlitviceMobile.build/Objects-normal/arm64/AIRGoogleMapOverlayManager.o /Users/nino/code/plitvice/node_modules/react-native-maps/ios/AirGoogleMaps/AIRGoogleMapOverlayManager.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'PlitviceMobile' from project 'PlitviceMobile')
(1 failure)
当从 xcode 运行它时,我遇到了一堆错误。
任何人都知道可能是什么问题以及我该如何解决这个问题?
我已经尝试运行我在网上找到的所有内容,包括:
对于任何偶然发现这个特定问题的人,我希望这会有所帮助。 我已经设法为我的案例解决了这个问题。 我正在从版本升级<0.60 to latest 0.73 version and the application had some registered sources in the Target >编译源。
其中大部分与 AIRGoogleManager 等 React-native-maps 的 google 依赖关系有关。
我已将它们全部删除,只留下 main.m 和 AppDelegate.mm,之后我就可以构建项目了。
在此之前的步骤是:
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# :flipper_configuration => flipper_config,
我希望这对某人有帮助。