https://kotlinlang.org logo
j

joshshin

06/17/2021, 10:44 PM
also, has anyone gotten cocoapods to work? Trying to add Firebase to my shared module, and was only able to get it to work if i made the framework static. If the framework is dynamic, I get this error:
Copy code
> Task :shared:linkDebugFrameworkIos FAILED
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:

    kotlin.native.cacheKind=none

Also, consider filing an issue with full Gradle log here: <https://kotl.in/issue>
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FIRDatabase", referenced from:
      objc-class-ref in result.o
  "_OBJC_CLASS_$_FIRApp", referenced from:
      objc-class-ref in result.o
ld: symbol(s) not found for architecture x86_64

FAILURE: Build failed with an exception.
r

russhwolf

06/18/2021, 1:19 AM
The cocoapods plugin can only handle pod dependencies with static frameworks currently.
4 Views