I've local Swift Packages added to a workspace. They reside in the project subfolders and connected to different git repositories as git submodules. Everything had been working perfectly (the project was able to build, packages were able to resolve, and I could edit the packages within the same workspace).
After I updated Xcode to 13.0, the project started failing to build with multiple errors Missing package product
for each local package dependency. Removing derived data, resetting packages, cleaning build folder and restarting Xcode didn't help.
CodePudding user response:
Removing package references from workspace and re-adding them (by simple drag-n-drop from Finder) resolved the problem.
I even didn't need to reconfigure corresponding schemes, or re-adding dependencies in targets.
CodePudding user response:
This is what worked for me:
- Click on the project file then go to Project (not a target) -> Package Dependences tab.
- Double-click on any Package and copy the location URL to clipboard.
- Remove that Package using the - button.
- Add it back, pasting the URL.
- Clean Build Folder, then Build.
Alternatively, removing an unused package in the Target -> Build Phases -> Link Binary With Libraries, also removed the errors for me.