Skip to content
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

[SR-13099] [SwiftPM] Xcode project targets from generate-xcodeproj do not include resources #4528

Closed
purpleblues opened this issue Jun 27, 2020 · 5 comments
Labels

Comments

@purpleblues
Copy link

Previous ID SR-13099
Radar rdar://64804615
Original Reporter @purpleblues
Type Bug

Attachment: Download

Environment

Xcode Version 12.0 beta (12A6159)

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 2133e47b3d62a1c99d1be876fcf5cdfb

Issue Description:

Xcode project targets made by swift package generate-xcodeproj do not include any resources associated with the targets

Expected Behavior: Generated Xcode project target has build phases that handle resources from the package target (e.g. Copy Bundle Resources for plain text files or image files, Compile Sources for Metal shaders)

Current Behavior: None of the package target resources are handled during the build processes of generated Xcode project target.

@typesanitizer
Copy link

Could you provide some more information? You mention that the targets do not include any associated resources. Is the expectation that the targets should include some placeholder resources which can either be swapped out for your own resources or deleted if you don't need to have resources?

@typesanitizer
Copy link

@swift-ci create

@purpleblues
Copy link
Author

I expected project made from `swift package generate-xcodeproj` properly handles resources of the package target.

For example, add "Copy Bundle Resources" build phases for plain text files or image files and add Metal shader files in "Compile Sources" build phase.

But the generated project has none of those.

If that is not the expected behavior, I think there should be some kind of documentation about that.

@typesanitizer
Copy link

Thanks for clarifying.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
@sjavora
Copy link
Contributor

sjavora commented Jan 30, 2024

@tomerd this can be closed since generate-xcodeproj has been removed.

@tomerd tomerd closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants