e-sites / Natrium

A pre-build (Swift) script to alter your Xcode project at pre-build-time per environment, build configuration and target.
https://www.e-sites.nl
MIT License
145 stars 15 forks source link

Support Swift Package Manager #29

Closed pokryfka closed 3 years ago

pokryfka commented 3 years ago

Please support SPM installation.

https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages

basvankuijck commented 3 years ago

v8.0.0 is now compatible with SwiftPM => https://github.com/e-sites/Natrium/blob/main/docs/INSTALL_SWIFTPM.md

pokryfka commented 3 years ago

@basvankuijck are you sure the path should be "${BUILD_DIR%Build/*}/SourcePackages/checkouts/Natrium/Natrium/natrium" ? does not work for me

basvankuijck commented 3 years ago

Hmms, I use the same path as firebase's Crashlytics: https://github.com/firebase/firebase-ios-sdk/blob/master/SwiftPackageManager.md And it seems to work for me, for a new / empty project.

If you 'right click' on "Natrium" under "Swift Package Dependencies" en then select "Show in Finder" What does it look like?

Something like this:

Screenshot 2021-01-21 at 08 12 35

(!) Folder names are case-sensitive, so you have to use https://github.com/e-sites/Natrium.git as the package git, and not https://github.com/e-sites/natrium.git

pokryfka commented 3 years ago

redone the steps and I works now 🤔 thank you for that, one more Pod left ...