Closed onseok closed 1 week ago
I had a problem similar to yours some time ago.
This is not a problem due to Compose Multiplatform. This is probably due to the version of Xcode you are using.
FirebaseAnalytics uses an old API that is not supported anymore in the new Xcode versions.
Try downgrading Xcode version to something like 14.0 and retry to build your project.
Read more here: https://kotlinlang.slack.com/archives/C9JM6Q2UX/p1686842942651169
Hello! Thanks for submitting the issue. My reproducer works fine. (Similar project versions to yours, Xcode version is Version 14.3.1 (14E300c)) Could you please create a minimal reproducer and tell what is your Xcode version? It will be helpful for understanding the problem.
Also, try to check with a lower version of Xcode. This also possibly could be a cause of this behavior.
Thank you for your response.
My Xcode version was also 14.3.1 (14E300c)
, and the reproducer project from @mazunin-v-jb worked well for me too.
Upon further inspection, I realized that the issue arose after adding the run script to Xcode's Build Phases, as suggested in this tutorial: connect-the-framework-to-your-ios-project
Here's the script I added:
# Type a script or drag a script file from your workspace to insert its path.
cd "$SRCROOT/.."
./gradlew :shared:embedAndSignAppleFrameworkForXcode
After removing this run script, everything started working fine again.
Thank you for providing information. Unfortunately, for now we are currently not providing a convenient way to connect Compose to existing Xcode projects. We want to add a tutorial and samples for those cases later. Please stay tuned.
For now, I can only recommend you to ask questions in the compose-ios Slack channel.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug After adding
pod("FirebaseAnalytics", "~> 10.13")
to theshared build.gradle.kts
cocoapods block, the iOS app fails to run. The iOS application can no longer recognize the shared module. Just like this.Interestingly, when the
pod("FirebaseAnalytics") { version = "~> 10.13" }
block is commented out and run iosApp is executed, the application runs without any issues. The exact cause of this behavior remains unclear.Affected platforms
Versions
Screenshots
And this is
gradle.properties