Kite Config Ios Extension
Apple settings inside kiteConfig { ios { ... } }.
The root block holds the truth about your app: its name, its version, its ID. This block holds only what Apple needs on top of that: the bundle suffix, the two version fields, and where your Xcode tree lives.
kiteConfig {
appName = "Jetzy"
id("com.example.jetzy") { ios { suffix = ".iosApp" } }
version("1.4.0") { ios { reupload = 3 } }
ios {
rewrite {
targets("iosApp")
}
}
}Every path here already points at the standard Kotlin Multiplatform layout. Set one only when your tree looks different.
Nothing in this block writes a file on its own. Apple sources change only when rewrite { } is configured and you run kiteRewriteXcode yourself.
The resolved bundle id is readable as kiteConfig.iosBundleId: the root id followed by the suffix from id("base") { ios { suffix } }.
The two Apple version fields
Apple splits what Android keeps in one place. Getting them confused is the usual cause of a rejected TestFlight upload.
Both are set in the version topic's ios { } corner, not here.
| Field | Set with | Xcode setting | Who sees it | Rule |
|---|---|---|---|---|
| Marketing version | version("x") { ios { marketingVersion } } | MARKETING_VERSION | App Store customers | may repeat across uploads |
| Build number | version("x") { ios { pin } }, else the formula | CURRENT_PROJECT_VERSION | TestFlight testers | must be new for each upload of the same version |
So a re-upload of 1.4.0 keeps the marketing version and needs a fresh build number. Turn version("x") { ios { reupload } } rather than inventing a version nobody shipped.
What this block does and does not touch
| Value | Written into your Xcode project |
|---|---|
| Bundle id, marketing version, build number | yes, by an explicit kiteRewriteXcode run |
| deploymentTarget | no, it only validates the AppIcon catalog |
| pbxproj, podfile, infoPlist, appDirectory, appIconDirectory | no, they say where to look |
Those three are declared elsewhere: the bundle id in id("base") { ios { suffix } }, and both version fields in the version topic's ios { } corner.
See also
for the gate that authorizes those writes.
for the Android half of the same identity.
for the formula every platform shares.
Properties
The Apple source tree searched when Swift imports are migrated.
Where the Apple app icon is installed.
The lowest iOS version your app supports, such as "14.0". The minimum accepted value is "12.0".
Apple source sync policy. Configure it with kiteConfig { ios { sync { ... } } }.