mirzemehdi / KMPAuth

Kotlin Multiplatform Authentication Library targetting android and iOS
https://mirzemehdi.com/KMPAuth/
Apache License 2.0
131 stars 9 forks source link

Need help in adding googleSignIn package in ios app #6

Closed gulabsagevadiya closed 4 months ago

gulabsagevadiya commented 4 months ago

There is no discussion forum in this repo so i have created this issue. I am new to kmp and i have only exp with android development so it's little confusing to add packages to ios app. can you help us by creating step by step process to add package in ios with cocoapods

i have already added cocoapods on my mac system but you can start from this to help other like me

mirzemehdi commented 4 months ago

@gulabsagevadiya I personally use Swift Package Manager for adding dependencies in iOS. Here's how to do it in XCode. File -> Add Package Dependencies -> Entering "https://github.com/google/GoogleSignIn-iOS" in url field -> Add Package Button.

image
gulabsagevadiya commented 4 months ago

Appreciate your efforts for junior developer like me. And yes this is way easier then cocoapods

usmonie commented 4 months ago

I added the GoogleSignIn library to the project via SPM, but the build continues to fall with an error:

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors

The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: framework 'GoogleSignIn' not found