Frameworks which include an embedded Swift package which contains resources, is missing the resource bundle when the framework is archived.
This leads to a crash whenever an attempt is made to access the resources by the app using the framework.
Expected behaviour: When the framework is archived, the bundle with the Swift package resources is present in the .framework or .xcframework.
Apps which integrate the framework can use the resources without crashing.
Current behaviour: When the framework is archived, the bundle with the Swift package resources is missing in the .framework or .xcframework.
Apps which use the framework crash when the code tries to access any of the missing resources.
- Using xcodebuild to archive framework:
- 'Resources' folder is inside package under:
- Added in package.swift with:
See also the package manager resources proposal: https://forums.swift.org/t/accepted-with-modifications-se-0271-package-manager-resources/31021