diff --git a/code_blocks/getting-started/installation/kmp_8.ruby b/code_blocks/getting-started/installation/kmp_8.ruby new file mode 100644 index 00000000..40020bd9 --- /dev/null +++ b/code_blocks/getting-started/installation/kmp_8.ruby @@ -0,0 +1,16 @@ +target 'iosApp' do + use_frameworks! + platform :ios, '16.0' + pod 'shared', :path => '../shared', :platforms => :ios + + # Add the following post_install script: + post_install do |installer| + installer.pods_project.targets.each do |target| + if target.name == 'shared' + target.build_configurations.each do |config| + config.build_settings.delete('ASSETCATALOG_COMPILER_APPICON_NAME') + end + end + end + end +end \ No newline at end of file diff --git a/docs/getting-started/installation/kotlin-multiplatform.mdx b/docs/getting-started/installation/kotlin-multiplatform.mdx index 48302d2b..2be8271e 100644 --- a/docs/getting-started/installation/kotlin-multiplatform.mdx +++ b/docs/getting-started/installation/kotlin-multiplatform.mdx @@ -92,6 +92,16 @@ import cocoapodsGradle from "!!raw-loader!@site/code_blocks/getting-started/inst { type: 'kotlin', content: cocoapodsGradle, name: 'build.gradle.kts' } ]} /> +Finally, add the following `post_install` script to your iOS app target in your `Podfile`. For instance, if your Kotlin Multiplatform module is named `shared`, it should look something like this: + +import podfilePostInstallContent from "!!raw-loader!@site/code_blocks/getting-started/installation/kmp_8.ruby"; + + + +This avoids the compiler looking for an app icon in your Kotlin Multiplatform module. + ### Set the correct launchMode for Android Depending on your user's payment method, they may be asked by Google Play to verify their purchase in their (banking) app. This means they will have to background your app and go to another app to verify the purchase. If your Activity's `launchMode` is set to anything other than `standard` or `singleTop`, backgrounding your app can cause the purchase to get cancelled. To avoid this, set the `launchMode` of your Activity to `standard` or `singleTop` in your Android app's `AndroidManifest.xml` file: