vtourraine / AcknowList

Acknowledgements screen displaying a list of licenses, for example from CocoaPods and Swift Package Manager dependencies.
MIT License
784 stars 59 forks source link

Appropriate Package.resolved file may differ for SPM-only vs SPM+cocoapods projects #104

Closed lukemmtt closed 2 years ago

lukemmtt commented 2 years ago

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.

vtourraine commented 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?

vtourraine commented 2 years ago

I’ve slightly rephrased the README to be more generic:

  1. 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, leave Copy 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/
lukemmtt commented 2 years ago

Glad to help! :) thanks for a great tool, @vtourraine !