@@ -68,14 +68,15 @@ The Kotlin Multiplatform plugin provides a special wizard for creating such modu
68
68
In your Android project, create a Kotlin Multiplatform shared module for your cross-platform code. Later you'll connect
69
69
it to your existing Android application and your future iOS application.
70
70
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.
74
75
This is required for connecting the shared module to the iOS application.
75
76
76
77
![ Kotlin Multiplatform shared module] ( multiplatform-mobile-module-wizard.png ) {width=700}
77
78
78
- 3 . Click ** Finish** .
79
+ 4 . Click ** Finish** .
79
80
80
81
The wizard will create the Kotlin Multiplatform shared module, update the configuration files, and create files with
81
82
classes that demonstrate the benefits of Kotlin Multiplatform.
@@ -316,20 +317,7 @@ Connect your framework to the iOS project manually:
316
317
317
318
{width=700}
318
319
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
- {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**:
333
321
334
322
{width=700}
335
323
@@ -341,7 +329,7 @@ Connect your framework to the iOS project manually:
341
329
>
342
330
> {type="tip"}
343
331
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.
345
333
346
334
> If you have a custom build configuration different from the default `Debug` or `Release`, on the **Build Settings**
347
335
> tab, add the `KOTLIN_FRAMEWORK_BUILD_TYPE` setting under **User-Defined** and set it to `Debug` or `Release`.
0 commit comments