google-signin: IOS Build Failed (Utility file not found & Unknown type namespace)
I followed the installation guide as described here I use Pod and link everything.
Environment
Pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'fareqy' 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: [
'Core',
'CxxBridge',
'DevSupport',
'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 'Firebase/Core'
pod 'Firebase/Auth'
pod 'GoogleSignIn'
# pod 'FBSDKLoginKit'
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
Package.json
{
"name": "MY_APP",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"ios": "react-native run-ios",
"android": "react-native run-android",
"refresh": "adb shell input keyevent 82",
"android_p": "cd android && ./gradlew assembleRelease && cd ../ && react-native run-android --variant=release",
"test": "jest"
},
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-elements": "^0.19.1",
"react-native-fbsdk": "^0.7.0",
"react-native-firebase": "^4.2.0",
"react-native-google-signin": "^0.12.0",
"react-native-i18n": "^2.0.12",
"react-native-image-picker": "^0.26.10",
"react-native-keyboard-aware-scrollview": "^2.0.0",
"react-native-maps": "^0.21.0",
"react-native-onesignal": "^3.2.4",
"react-native-star-rating": "^1.0.9",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.11"
},
"devDependencies": {
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./src/assets/fonts"
]
}
}
Steps to Reproduce
Build By Xcode
Expected Behavior
I expect Build succeeded
Actual Behavior
Build Failed showing 3 errors 1- Utility file not found 2- Unknown type namespace 3- Expected ; after top level declarator
Any ideas will be appreciated
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 19
@mg4u @AndreiCalazans I confirm that the latest version on the repo fix this issue
and I use the same pod file as @mg4u
Ok @mg4u , I’ll leave this open for now as a question since this is not a bug.
Please follow these exact steps to install this library and use the latest version.
Attention skip the project set up here, this unnecessary
I just tested IOS on the latest version in npm v0.12.0
here is the repo https://github.com/AndreiCalazans/googleAuthTest
@padupuy We are making some revamp to the code for both IOS and android, we are waiting to get that done before releasing a new version. Only android is missing.
Hi @AndreiCalazans Yes, it is working now that I am using 0.12.0, it is working fine. I was following the documentation and it said following:
lol sorry that was a typo it’s
react-native-google-signin