React Native Google登录ios构建错误utility.h未找到
知道为什么我会遇到这种奇怪的错误吗?
?是因为依赖问题吗?还是因为xcode项目中的配置? ????任何标题搜索路径等都丢失了? 这是我的pod文件依赖项.问题出现在Pods / boost-for-react-native / boost / compatibility / cpp_c_headers中 有趣的是,所有文件在该文件夹中都没有文件扩展名 target 'testApp' do rn_path = '../node_modules/react-native' rn_maps_path = '../node_modules/react-native-maps' # See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies pod 'yoga',path: "#{rn_path}/ReactCommon/yoga/yoga.podspec" pod 'React',path: rn_path,subspecs: [ 'DevSupport','Core','CxxBridge','RCTActionSheet','RCTAnimation','RCTGeolocation','RCTImage','RCTLinkingIOS','RCTNetwork','RCTSettings','RCTText','RCTVibration','RCTWebSocket',] # React Native third party dependencies podspecs pod 'DoubleConversion',:podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec" pod 'glog',:podspec => "#{rn_path}/third-party-podspecs/glog.podspec" # If you are using React Native <0.54,you will get the following error: # "The name of the given podspec `GLog` doesn't match the expected one `glog`" # Use the following line instead: #pod 'GLog',:podspec => "#{rn_path}/third-party-podspecs/GLog.podspec" pod 'Folly',:podspec => "#{rn_path}/third-party-podspecs/Folly.podspec" # react-native-maps dependencies pod 'react-native-maps',path: rn_maps_path pod 'react-native-google-maps',path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS pod 'Google-Maps-iOS-Utils' # Remove this line if you don't want to support GoogleMaps on iOS pod 'GoogleSignIn' end post_install do |installer| installer.pods_project.targets.each do |target| if target.name == 'react-native-google-maps' target.build_configurations.each do |config| config.build_settings['CLANG_ENABLE_MODULES'] = 'No' end end if target.name == "React" target.remove_from_project end end end 解决方法
我们遇到了同样的问题,问题是Google登录包中的标题路径.
即使我们使用最新版本的react-native-google-signin 0.12.0,标题路径也没有设置正确. 已经有一个合并的PR解决了这个问题,不确定它是否在已发布的软件包中,或者它是否具有npm缓存. 链接到PR https://github.com/react-native-community/react-native-google-signin/pull/393/commits/100ca145924c3773d0a931ec97db992a83418356 我在xcode中手动进行了这些更改,现在正在使用! https://github.com/react-native-community/react-native-google-signin/pull/393/commits/100ca145924c3773d0a931ec97db992a83418356 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |