mirzemehdi / KMPAuth

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

Can not build from Android Studio - "not found" error #48

Closed Monabr closed 2 months ago

Monabr commented 2 months ago

Hi.

I can build project from XCode, but from Android Studio I receive errors:

ld: warning: search path '.../build/ios/Debug-iphonesimulator/AppAuth' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/FirebaseCore' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/FirebaseCoreInternal' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/GTMAppAuth' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/GTMSessionFetcher' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/GoogleSignIn' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/GoogleUtilities' not found
ld: warning: search path '.../build/ios/Debug-iphonesimulator/PromisesObjC' not found
ld: framework 'AppAuth' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could you please help me to fix it?

Monabr commented 2 months ago

In the launch configuration when using Cocopods you need to select the xcworkspace file as the project, not xcodepro