CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Getting XCode error when trying to build for iOS

Open GV14982 opened this issue 3 years ago • 4 comments

Hi there, I get the following error when I try and build my ionic app with this plugin installed for iOS:

ld: in /Users/gvqz/dev/github/mindfully/react-client/ios/App/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(GIDEMMErrorHandler_3a47e13d8ca81b41e9cdb7ef5468004a.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/gvqz/dev/github/mindfully/react-client/ios/App/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Computer: M1 Mac Pro running MacOS 11.2.2 XCode: 12.4 Cocoapods: 1.10.1

I've tried running xCode in rosetta and excluding arm64, but then I get an error that the x86_64 build target is not available.

Any ideas on where to look next?

GV14982 avatar Mar 14 '21 16:03 GV14982

Looks like the problem in GoogleSignIn pod - related issue and another

DmitrySkripkin avatar Mar 29 '21 16:03 DmitrySkripkin

Good news you can still build it for Physical Device.

DmitrySkripkin avatar Mar 29 '21 16:03 DmitrySkripkin

I have the same issue, anyone got a fix yet?

fr3fou avatar Jun 01 '21 20:06 fr3fou

Also encountering this issue, it's keeping our team from using iPhone simulators altogether.

stefanhk31 avatar Sep 02 '21 14:09 stefanhk31