Skip to content

Commit 0ffde43

Browse files
authored
update: embedAndSign doesn't need Framework Search Path anymore
After KT-63821.
1 parent 39660af commit 0ffde43

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

topics/multiplatform-integrate-in-existing-app.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ The Kotlin Multiplatform plugin provides a special wizard for creating such modu
6868
In your Android project, create a Kotlin Multiplatform shared module for your cross-platform code. Later you'll connect
6969
it to your existing Android application and your future iOS application.
7070

71-
1. In Android Studio, click **File** | **New** | **New Module**.
72-
2. In the list of templates, select **Kotlin Multiplatform Shared Module**, enter the module name `shared`, and select
73-
the **Regular framework** in the list of iOS framework distribution options.
71+
1. In Android Studio settings, turn on the **Enable experimental Multiplatform IDE features** option in the **Advanced Settings** section.
72+
2. Select the **File** | **New** | **New Module** menu item.
73+
3. In the list of templates, select **Kotlin Multiplatform Shared Module**, enter the module name `shared`, and select
74+
**Regular framework** in the list of iOS framework distribution options.
7475
This is required for connecting the shared module to the iOS application.
7576

7677
![Kotlin Multiplatform shared module](multiplatform-mobile-module-wizard.png){width=700}
7778

78-
3. Click **Finish**.
79+
4. Click **Finish**.
7980

8081
The wizard will create the Kotlin Multiplatform shared module, update the configuration files, and create files with
8182
classes that demonstrate the benefits of Kotlin Multiplatform.
@@ -316,20 +317,7 @@ Connect your framework to the iOS project manually:
316317
317318
![Move the Run Script phase](xcode-run-script-phase-3.png){width=700}
318319
319-
5. On the **Build Settings** tab, switch to **All** build settings and specify the **Framework Search Path** under
320-
**Search Paths**:
321-
322-
```text
323-
$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
324-
```
325-
326-
![Framework search path](xcode-add-framework-search-path.png){width=700}
327-
328-
> This path is valid when your app is run on a simulated device.
329-
>
330-
{type="note"}
331-
332-
6. On the **Build Settings** tab, disable the **User Script Sandboxing** under **Build Options**:
320+
5. On the **Build Settings** tab, disable the **User Script Sandboxing** under **Build Options**:
333321
334322
![User Script Sandboxing](disable-sandboxing-in-xcode-project-settings.png){width=700}
335323
@@ -341,7 +329,7 @@ Connect your framework to the iOS project manually:
341329
>
342330
> {type="tip"}
343331
344-
7. Build the project in Xcode. If everything is set up correctly, the project will successfully build.
332+
6. Build the project in Xcode. If everything is set up correctly, the project will successfully build.
345333
346334
> If you have a custom build configuration different from the default `Debug` or `Release`, on the **Build Settings**
347335
> tab, add the `KOTLIN_FRAMEWORK_BUILD_TYPE` setting under **User-Defined** and set it to `Debug` or `Release`.

0 commit comments

Comments
 (0)