Closed geraldvoit closed 4 years ago
would be great if this could be merged!
Fixes Xcode 11.4 error:
Swift package product 'SwiftDate' is linked as a static library by '' and 'Today Extension'. This will result in duplication of library code.
Allows to share the library across multiple targets (iOS App, Today Extension, watchOS, … ) in the same project.
According to forums.swift.org this issue not about dynamic linking. Seems like a bug in Xcode 11.4. Adding the user defined build setting DISABLE_DIAMOND_PROBLEM_DIAGNOSTIC allows to use static linked Swift Packages in multiple targets.
Furthermore, embedding dynamic linked Swift Packages in multiple targets (e.g. main ios app and today extension) causes an error during the distribution process to the app store.
Nonetheless, this pull request is still useful regarding different linking options. See https://developer.apple.com/documentation/swift_packages/product .
Fixes Xcode 11.4 error:
Allows to share the library across multiple targets (iOS App, Today Extension, watchOS, … ) in the same project.