- Home /
Unity Cloud Build iOS error
Keep getting this one error on ios cloud build, been doing this for the past 10 builds.
For reference, im using googleplayservices plugin and set NO_GPGS on iOS. The library shouldn't be used on iOS but seems like it's trying to..
ld: library not found for -lGooglePlayGames clang: error: linker command failed with exit code 1 (use -v to see invocation)
Answer by InsertGame · Oct 26, 2017 at 12:08 AM
Hey @renanssba I finally managed to get some successful builds on Unity Cloud Build.
I went to Assets->Play Services Resolver and unticked all of the iOS settings + "Do not integrate cocopods".
I also reimported all the plugins just incase. Because the Plugins folder gets cluttered by Unity plugins I had to delete them all and reimport (For me if was UnityAds, UnityIAP, CloudOnce - basically a GPGS wrapper).
It sounds like you should do a reimport too since I couldn't find GPGSAppController in my own project (maybe you have an older version of GPGS).
Amazing. I'll try your fix and see if it does the trick for me. Thanks for the help!
Yes, it solved the issue. Just finished a correct build. Thanks a lot!
PS: please submit your fix as an answer, so I can upvote and it's easier for people to find this fix later.
Answer by renanssba · Oct 24, 2017 at 05:23 AM
Hello @InsertGame, I'm having the same issue right now. Will update this answer when I have something more solid.
By searching the web, I found in some sources that you can disable this library (GooglePlayGames) for compilation manually in the generated XCode project. I have a Mac, so I'll try that and see if I can compile. If that works, we can try to think about a way to disable the library compilation in the Cloud Build.
Hey @InsertGame , I just finished building my project in iOS. The problem is that XCode is trying to link GooglePlayGames. What I did to be able to build the project was: deleting the folder Assets/Plugins/iOS and the archives inside (they were GPGSAppController.mm, GPGSAppController.h and their metas). This way, Unity didn't try to compile and link Google Play services.
The strange fact, though, is: even after commiting this change and trying to build via Cloud Build, the same error persists: "ld: library not found for -lGooglePlayGames".
$$anonymous$$aybe threre's a way to "Clean" the Cloud Build workspace and Rebuild the project all over again from scratch?