Post

Replies

Boosts

Views

Activity

Reply to SPM: Create XCFramework and reusing it - simple example "error: no such module" when importing
Hmmm, after looking the file/directory tree of an XCFramework I found on Internet, I tried to duplicate it with the generated files (I saw is missing MySDK.swiftmodule from the XCFramework) So copying MySDK.swiftmodule to the XCFramework fixes my issue. mkdir ./MyFramework.xcframework/macos-x86_64/MySDK.framework/Versions/A/Modules cp ./DerivedData/Build/Products/Debug/MySDK.swiftmodule ./MyFramework.xcframework/macos-x86_64/MySDK.framework/Versions/A/Modules/ ln -s ./MyFramework.xcframework/macos-x86_64/MySDK.framework/Versions/A/Modules ./MyFramework.xcframework/macos-x86_64/MySDK.framework/Modules Is it a xcodebuild bug or a missing step in my XCFramework generation?
Jan ’24