"Find Implicit Dependencies" does not work with a Swift package and an Xcode project under the same Xcode workspace
Originator: | a.cecilia.luque | ||
Number: | rdar://7192051 | Date Originated: | Sep 3, 2019 |
Status: | Open | Resolved: | No |
Product: | Xcode 11 beta 6 | Product Version: | 11M392r |
Classification: | Reproducible: | Yes |
When linking a binary framework as a dependency of a Swift package, if the binary framework is the product of an Xcode project, placing the Swift package and the Xcode project under the same Xcode workspace should be enough to build the Swift package successfully. Instead, "Find Implicit Dependencies" is not working, and building the Swift package fails with the error "No such module 'XcodeProjectDependency'". I created an example repository here: https://github.com/acecilia/FindImplicitDependenciesBug For more context see: https://forums.swift.org/t/binary-frameworks-with-swiftpm/26225/8 Steps: 1- Create a Swift package with a target that links a binary framework: `linkerSettings: [.linkedFramework("XcodeProjectDependency")]` 2- Create an Xcode project with a target named `XcodeProjectDependency` 3- Put them both under the same Xcode workspace. Expectation: Due to the "Find Implicit Dependencies" setting being on, building the swift package should succeed, as Xcode should detect that it depends on the `XcodeProjectDependency` target. Reality: Building the Swift package fails with the error "No such module 'XcodeProjectDependency'".
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
This is an issue from the new Feedback assistant. The reference number is FB7192051