Closed lukemmtt closed 2 years ago
Hello; and thank you so much for your feedback. That’s a great point, we need to point out that possibility in the README. I guess it’ll happen whenever someone is using an Xcode workspace, not just with CocoaPods?
I’ve slightly rephrased the README to be more generic:
- Add the
Package.resolved
file generated by Xcode to your main target. Drag and drop the file from the folder to your Xcode project (don’t copy the file, leaveCopy items if needed
unchecked).
- For single Xcode projects, the file is in
[appName].xcodeproj/project.xcworkspace/xcshareddata/swiftpm/
- For Xcode workspaces (for instance with CocoaPods), the file is in
[appName].xcworkspace/xcshareddata/swiftpm/
Glad to help! :) thanks for a great tool, @vtourraine !
The README currently advises users to use the Package.resolved file in their .xcodeproj file, but In my project (which uses SPM + CocoaPods), the Package.resolved file in my .xcodeproj file was far out of date (over a year), compared with the Package.resolved file found in my .xcworkspace file.
I'm not certain that this is necessarily the case with all such projects or not, but I think it's worth noting as a possibility in the README. It took me a few hours to figure this out.