GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
1.17k stars 155 forks source link

Xcode 16 support: can't link a dylib with itself #609

Open abdulowork opened 2 months ago

abdulowork commented 2 months ago

Hi. Xcode 16 adds a new check to validate that the linking dynamic library doesn't attempt to link against a library with its own install name. This happens in this library in a couple of build scripts where the K/N framework links against the CocoaPods built framework with the same install name. The issue should be reproducible with e.g.:

DEVELOPER_DIR=/Applications/Xcode16.0-Beta6.app ./gradlew :firebase-auth:linkPodDebugFrameworkIosArm64

Is there a particular reason why K/N frameworks in this library have the same name as the frameworks they link against? If these frameworks are only used as a linkage test, would it make sense to rename these (renaming will implicitly change the install name):

cocoapods {
    framework {
        baseName = "CheckFirebaseAuthLinkage"
    }
    pod("FirebaseAuth")
}
the-best-is-best commented 1 month ago

not support kotlin version 20.0.21-RC is supported and this package not update kotlin version