"Package resolution errors must be fixed before building" #6
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @sherryycxie, in Xcode click |
Beta Was this translation helpful? Give feedback.
-
@sherryycxie Thank you for posting your question! As @vishnuravi noted, sometimes Xcode has a few problems cleaning out issues or invalidating the dependency check. If you run into problems that you can't easily sport the error for, we do generally advise:
If you modify your Swift Package and add a target, make sure that all targets are separated by a comma (the list of targets, dependencies, and products in a Swift Package Manifest are just arrays where you have to separate elements by commas). If you add a new target to your Swift Package, link it to your application as detailed in Organizing your code with local packages. Can you share your Swift Package Manifest file with us in a comment? GitHub allows you to share code snippets including syntax highlighting in comments and issues: Creating Code Blocks - Syntax highlighting. Also be sure that you have at least one Swift file in each of your target folders. |
Beta Was this translation helpful? Give feedback.
@sherryycxie Thank you for posting your question!
As @vishnuravi noted, sometimes Xcode has a few problems cleaning out issues or invalidating the dependency check. If you run into problems that you can't easily sport the error for, we do generally advise:
If you modify your Swift Package and add a target, make sure that all targets are separated by …