Generated xcodeproj for swift package doesn't compile because of Bundle.module
Originator: | enzo | ||
Number: | rdar://FB8089986 | Date Originated: | 21/07/2020 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | 12.0 beta 2 (12A6163b) |
Classification: | Reproducible: |
Please describe the issue: After creating a swift package that includes resources, I needed to generate an xcodeproj file to open the project in Xcode and add custom build phases or use Xcode's code coverage for my CI. But after running the command "swift package generate-xcodeproj" and opening my project it doesn't compile because it can't find the "Bundle.module" that is compiled with the Swift Package Manager. I don't see any mentions about opening a swift package that includes resources with Xcode in the documentation so I'm not sure if this is a bug.. is it expected to open a swift package that includes resources with a xcodeproj? Please list the steps you took to reproduce the issue: 1. Create a new swift package 2. Add resources to that package and use them using Bundle.module 3. Open terminal and go to the module folder 4. Run the command `swift package generate-xcodeproj` 5. Open the project using the `xcodeproj` file 6. Compile the package What did you expect to happen? I expect Xcode to compile correctly and generate the `Bundle.module` that is created by Swift Package Manager. What actually happened? Xcode fails to compile because with the error: Type 'Bundle' has no member 'module' and I'm not able to use `Bundle.module` anywhere with my xcodeproj file.
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!