You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tutorial assumes that your project is using [direct integration](multiplatform-project-configuration.md#connect-a-kotlin-multiplatform-module-to-an-ios-app)
37
-
approach with the `embedAndSignAppleFrameworkForXcode` task. If you're connecting a Kotlin framework through CocoaPods
38
-
plugin, migrate first.
37
+
approach with the `embedAndSignAppleFrameworkForXcode` task in the project's build phase. If you're connecting a Kotlin framework through CocoaPods
38
+
plugin or through Swift package with `binaryTarget`, migrate first.
39
+
40
+
### Migrate from SPM binaryTarget integration to local direct integration {initial-collapse-state="collapsed"}
41
+
42
+
To migrate from the SPM integration with `binaryTarget`:
43
+
44
+
1. In Xcode, clean build directories using **Product** | **Clean Build Folder** or with the
45
+
<shortcut>Cmd + Shift + K</shortcut> shortcut.
46
+
2. In every `Package.swift` file, remove both dependencies to the package with a Kotlin framework inside and target
47
+
dependencies to the products.
48
+
3. To set up direct integration, follow the steps described in [this tutorial](multiplatform-integrate-in-existing-app.md#connect-the-framework-to-your-ios-project).
39
49
40
50
### Migrate from CocoaPods plugin to direct integration {initial-collapse-state="collapsed"}
41
51
@@ -46,15 +56,17 @@ plugin, migrate first.
46
56
47
57
To migrate from the CocoaPods plugin:
48
58
49
-
1. In the directory with `Podfile`, run the following command:
59
+
1. In Xcode, clean build directories using **Product** | **Clean Build Folder** or with the
60
+
<shortcut>Cmd + Shift + K</shortcut> shortcut.
61
+
2. In the directory with `Podfile`, run the following command:
50
62
51
63
```none
52
64
pod deintegrate
53
65
```
54
66
55
-
2. Remove the `cocoapods {}` block from your `build.gradle(.kts)` files.
56
-
3. Delete the `.podspec` and `Podfile` files.
57
-
4. To set up direct integration, follow the steps described in [this tutorial](multiplatform-integrate-in-existing-app.md#connect-the-framework-to-your-ios-project).
67
+
3. Remove the `cocoapods {}` block from your `build.gradle(.kts)` files.
68
+
4. Delete the `.podspec` and `Podfile` files.
69
+
5. To set up direct integration, follow the steps described in [this tutorial](multiplatform-integrate-in-existing-app.md#connect-the-framework-to-your-ios-project).
0 commit comments