Skip to content

Commit 93d6e7c

Browse files
committed
2.4.0-1.11.1-4
1 parent 66c52b4 commit 93d6e7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ On every Xcode build, the plugin hooks into `embedAndSignAppleFrameworkForXcode`
185185

186186
**ObjC Export** (`binaries.framework { baseName = "..." }`):
187187
1. Creates a stable symlink `build/xcode-frameworks/current → {config}/{platform}`.
188-
2. Updates `Package.swift` with `unsafeFlags(["-F", "xcode-frameworks/current"])` pointing to the framework directory. Swift resolves `import {frameworkName}` from there without recompiling the KMP source.
188+
2. Updates `Package.swift` with both `swiftSettings: [.unsafeFlags(["-F", "xcode-frameworks/current"])]` and `linkerSettings: [.unsafeFlags(["-F", "xcode-frameworks/current", "-framework", "{frameworkName}"])]`. The `swiftSettings` flag lets Swift resolve `import {frameworkName}` from the pre-compiled framework; the explicit `linkerSettings` flag avoids intermittent `Undefined symbols for architecture` linker errors caused by Swift auto-linking being fragile in SPM static-library contexts.
189189

190190
**Both modes:**
191191
3. Syncs the KSP-generated `.swift` files into `{exportFolderName}/Sources/{exportFolderName}/`.

0 commit comments

Comments
 (0)