Hi everyone, I included the `GoogleSignIn` depende...
# multiplatform
r
Hi everyone, I included the
GoogleSignIn
dependency via cocoapods. Now when I try to build the
iosApp
I get the following error:
Copy code
ld: framework 'AppAuth' not found
Any idea what needs to be done to fix this? Thanks!
f
Hi, avoid cocoapods if possible, this tool is dying soon.
Try spmforkmp :)
b
I had this issue for such a long time but finally got it working. I followed this structure that I saw on cashapp/redwood that automatically does pod install every build https://github.com/cashapp/redwood/blob/0.1.0/samples/emoji-search/ios-shared/EmojiSearchKt.podspec Then my cocoapods
builds.gradle.kts
block looks like this
Copy code
cocoapods {
      // !!Do not forget deployment target or this will break!!
      ios.deploymentTarget = "15.3"
      framework {
        baseName = "Login"
      }
      homepage = "yourhomepage.com"
      summary = "Google Sign In on iOS"
      version = "1.0"
      source = "<https://cdn.cocoapods.org>"
      name = "Login"
      // This is added so that on every sync the podspec doesn't get overwritten
      // If we need to update the podspec then remove this line and then add back in the
      // prepare_command which automatically generates the dummy framework
      noPodspec()
      pod("GoogleSignIn", version = "8.0.0")
    }
Cocoapods integration was my nightmare but once it’s working there’s been no issues
gratitude thank you 1