Skip to content

Commit 8c21c40

Browse files
committed
Set the bundle ID for each iOS framework
This commit sets the bundle ID for each iOS framework to `com.example.fruitties.ios` by adding the following: - binaryOptions["bundleId"] = iosBundleId Resolves the warning: "Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag."
1 parent ccdbde4 commit 8c21c40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Fruitties/shared/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,26 @@ kotlin {
5151
// project can be found here:
5252
// https://developer.android.com/kotlin/multiplatform/migrate
5353
val xcfName = "shared"
54+
val iosBundleId = "com.example.fruitties.ios"
5455

5556
iosX64 {
5657
binaries.framework {
5758
baseName = xcfName
59+
binaryOptions["bundleId"] = iosBundleId
5860
}
5961
}
6062

6163
iosArm64 {
6264
binaries.framework {
6365
baseName = xcfName
66+
binaryOptions["bundleId"] = iosBundleId
6467
}
6568
}
6669

6770
iosSimulatorArm64 {
6871
binaries.framework {
6972
baseName = xcfName
73+
binaryOptions["bundleId"] = iosBundleId
7074
}
7175
}
7276

0 commit comments

Comments
 (0)