Google-signin: 'limits' file not found

Created on 9 Nov 2017  路  21Comments  路  Source: react-native-google-signin/google-signin

While making ios build I am facing the following error.
'limits' file not found in Math.h file.

I am using react-native version 0.50.3.

Looking for a reply.
I found a PR on this repo which is claiming to solve this issue. Please check if that can help or not.
https://github.com/devfd/react-native-google-signin/pull/304/files

馃挜 Build Issue

Most helpful comment

@DavitVosk glad to hear that :)

So to sum up:

change the pod from Google/SignIn to GoogleSignIn
Follow #304. Update RNGoogleSignin.xcodeproj header search paths to:

$(inherited)
$(SRCROOT)/../../react-native/React (recursive)
${SRCROOT}/../../../ios/RNGoogleSignin (non-recursive)
${SRCROOT}/../../../ios/GoogleSdk (non-recursive)

Check and if necessary follow: CocoaPods/CocoaPods#5762

Do a clean build 鈱モ嚙鈱楰 | Option-Shift-Command-K.

@DavitVosk Did I miss anything?

All 21 comments

The same problem here. Could you solve the problem?

I am not sure, but for me personally changing pod from 'Google/SignIn' to 'GoogleSignIn' fixed the issue.

@Gongreg that change doesn't help me. Had you done everything as mentioned here: https://github.com/devfd/react-native-google-signin/blob/master/ios-guide.md , or there is any tick which is not mentioned?

@DavitVosk I guess then I also applied
https://github.com/devfd/react-native-google-signin/pull/304

But I thought that after reinstalling the pods I lost the changes.

So both using GoogleSignIn and using the above solution did help me.

@Gongreg Thanks for trying to help man. Had you changed Header Search Paths to "${SRCROOT}/../../../ios/Pods/GoogleSignIn/GoogleSignIn"?

Dear package owners. This issue has been opened about 3 months ago. But no any updates OR no any justification/clarification/changes has been provided by you. I kindly ask you to have a look at the issue since it takes much more time to identify the problem source and solve it. Thanks in advance

@DavitVosk No, I've kept them as in the PR. I can check for you later on in the evening, since I setup this last night.

Thanks @Gongreg

@DavitVosk just to be sure, do 鈱モ嚙鈱楰 | Option-Shift-Command-K (Clean the build) and then start it again, since xcode likes to cache things.

Hey @DavitVosk,
So I checked it up. Now the RNGoogleSignin.xcodeproj in my libraries has the header search paths as follows:

$(inherited)
$(SRCROOT)/../../react-native/React (recursive)
${SRCROOT}/../../../ios/RNGoogleSignin (non-recursive)
${SRCROOT}/../../../ios/GoogleSdk (non-recursive)

I hope this will help you. If it does be sure to notify :)

Hey @Gongreg. Thanks for your updates. Now the error of limits is gone, BUT another one is here :)
"ld: framework not found GoogleAuthUtilities
clang: error: linker command failed with exit code 1 (use -v to see invocation)"

I checked the frameworks in xCode and it looks that GoogleAuthUtilities framework is normally there.

@DavitVosk, clean the build and try again. Take a look in
https://stackoverflow.com/questions/29865899/ld-framework-not-found-pods
Maybe it will help. I am not from native background myself so I can't do proper debugging for you :/

@Gongreg thank you so much. I am trying this now.

@Gongreg Finally solved. Also we need to follow this steps as well: https://github.com/CocoaPods/CocoaPods/issues/5762. Hope our this efforts will help to save time to another devs ;)

@DavitVosk glad to hear that :)

So to sum up:

change the pod from Google/SignIn to GoogleSignIn
Follow #304. Update RNGoogleSignin.xcodeproj header search paths to:

$(inherited)
$(SRCROOT)/../../react-native/React (recursive)
${SRCROOT}/../../../ios/RNGoogleSignin (non-recursive)
${SRCROOT}/../../../ios/GoogleSdk (non-recursive)

Check and if necessary follow: CocoaPods/CocoaPods#5762

Do a clean build 鈱モ嚙鈱楰 | Option-Shift-Command-K.

@DavitVosk Did I miss anything?

@Gongreg Nope bud, to the point :)

@DavitVosk I'm having this issue --
"ld: framework not found GoogleAuthUtilities
clang: error: linker command failed with exit code 1 (use -v to see invocation)"

how did you resolve it?

Im new to iOS development so correct me if I'm wrong but we should be
using #import for import reference as the header search path looks in ios/RNGoogleSignin where the file lives so no need for RNGoogleSignin/

I'm glad this issue was solved. We currently got an example rolling which should help debug any issue with building with this lib. Example.

Please feel free to open a new issue if any problems persist.
Sorry @DavitVosk, this lib was abandoned and we are working hard to get things on its track.

I've had this problem constantly.
Probably spent about 20% of my time on React Native just trying to get it to build..

Tried all of the above, no luck.

@voidstarfire Have you configured and built the example project linked above?

Was this page helpful?
0 / 5 - 0 ratings