-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SKIE adds swift-module-cache with isStatic XCFramework option #73
Comments
Hi @meavydev, could you share the project or a reproducer? |
I have cut down the project and the library in the attached .zip. |
Thanks for the reproducer. Unfortunately I don't see an Xcode project that I could see the warnings in. Could you show the full warnings that Xcode is showing? |
I can't generate an Xcode project to demonstrate as we generate a private SPM which is hosted on Github, so it's not going to be easy to reproduce in Xcode unless you can do this. |
OK here is the section from the build output where the warnings appear: warning: /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/IlsLibrary-22FZ41XVM8TOK.pcm: No such file or directory /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/IlsLibrary-22FZ41XVM8TOK.pcm: No such file or directory while processing /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/IlsLibrary-22FZ41XVM8TOK.pcm Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information. /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/ObjectiveC-NOWQ50CYMZB0.pcm: No such file or directory while processing /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/ObjectiveC-NOWQ50CYMZB0.pcm /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/Foundation-213A4VPDZWIP8.pcm: No such file or directory while processing /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/Foundation-213A4VPDZWIP8.pcm /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/_SwiftConcurrencyShims-VUGHILSV67V7.pcm: No such file or directory while processing /Users/shawn/android/libraries/ils/build/skie/binaries/releaseFramework/RELEASE/iosArm64/cache/swift-module-cache/36S9UIVCV1XJ3/_SwiftConcurrencyShims-VUGHILSV67V7.pcm WriteAuxiliaryFile /Users/shawn/Library/Developer/Xcode/DerivedData/ils-akywhclrfityrwbvnailqcfzkpkk/Build/Intermediates.noindex/navenioSDK.build/Debug-iphoneos/navenioSDK.build/Objects-normal/arm64/navenioSDK.SwiftConstValuesFileList (in target 'navenioSDK' from project 'navenioSDK') ExtractAppIntentsMetadata (in target 'navenioSDK' from project 'navenioSDK') note: Metadata extraction skipped. No AppIntents.framework dependency found. (in target 'navenioSDK' from project 'navenioSDK') Metadata extraction skipped. No AppIntents.framework dependency found. AppIntentsSSUTraining (in target 'navenioSDK' from project 'navenioSDK') 2024-06-03 12:26:28.994 appintentsnltrainingprocessor[59607:2852506] Parsing options for appintentsnltrainingprocessor GenerateTAPI /Users/shawn/Library/Developer/Xcode/DerivedData/ils-akywhclrfityrwbvnailqcfzkpkk/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos/navenioSDK.framework/navenioSDK.tbd (in target 'navenioSDK' from project 'navenioSDK') RegisterExecutionPolicyException /Users/shawn/Library/Developer/Xcode/DerivedData/ils-akywhclrfityrwbvnailqcfzkpkk/Build/Products/Debug-iphoneos/navenioSDK.framework (in target 'navenioSDK' from project 'navenioSDK') Touch /Users/shawn/Library/Developer/Xcode/DerivedData/ils-akywhclrfityrwbvnailqcfzkpkk/Build/Products/Debug-iphoneos/navenioSDK.framework (in target 'navenioSDK' from project 'navenioSDK') ` |
Fixed in 0.8.2, but you will need to add the following Gradle configuration: skie {
build {
produceDistributableFramework()
}
} |
Thanks :) That seems to have removed the warnings for our SPM. |
We build our XCFramework KMP library with isStatic set to true, as it is part of a SDK:
This ends up generating warnings in Xcode when the KMP SPM is included:
Setting isStatic to false fixes the warnings, presumably because swift-module-cache is not included in the XCFramework binary file.
We are using SKIE 0.6.2 but it also happens with 0.6.4.
Kotlin Gradle plugin is 1.9.22.
The text was updated successfully, but these errors were encountered: