Skip to content

Commit ced0640

Browse files
authored
feat: new compatibility issue (#4285)
1 parent 61aeaf6 commit ced0640

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/topics/multiplatform/multiplatform-compatibility-guide.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,3 +852,33 @@ and prepare this functionality for the upcoming Kotlin 2.0 release. From now on:
852852
853853
Starting with Kotlin 1.9.20, you need to explicitly make a cast to and from the corresponding C and Objective-C forward
854854
declarations. Also, it's now only possible to import forward declarations by using special packages.
855+
856+
## Incorrect version of iOS framework after Kotlin upgrade
857+
858+
**What's the issue?**
859+
860+
Changes in Kotlin code might not be reflected in the iOS app in Xcode when direct integration
861+
is used. The direct integration is set up with the `embedAndSignAppleFrameworkForXcode` task, which connects the iOS
862+
framework from your multiplatform project to the iOS app in Xcode.
863+
864+
This can happen when you upgrade the Kotlin version from 1.9.2x to 2.0.0 in your multiplatform project (or downgrade it
865+
from 2.0.0 to 1.9.2x), then make changes in Kotlin files and try building the app, Xcode may incorrectly use the previous
866+
version of the iOS framework. So, the changes won't be visible in the iOS app in Xcode.
867+
868+
**What's the workaround?**
869+
870+
1. In Xcode, clean build directories using **Product** | **Clean Build Folder**.
871+
2. In the terminal, run the following command:
872+
873+
```none
874+
./gradlew clean
875+
```
876+
877+
3. Build the app again to ensure that the new version of the iOS framework is used.
878+
879+
**When will the issue be fixed?**
880+
881+
We're planning to fix this issue in Kotlin 2.0.10. You can check if any preview versions of
882+
Kotlin 2.0.10 are already available in the [Participate in the Kotlin Early Access Preview](eap.md) section.
883+
884+
For more information, see the [corresponding issue in YouTrack](https://youtrack.jetbrains.com/issue/KT-68257).

0 commit comments

Comments
 (0)