onekiloparsec / SwiftAA

The most comprehensive collection of accurate astronomical algorithms in (C++, Objective-C and) Swift.
http://www.onekiloparsec.dev/
MIT License
171 stars 31 forks source link

Adding via Swift Package Manager #112

Closed wilks7 closed 1 year ago

wilks7 commented 2 years ago

I'm having issues adding the repo via Swift Package Manager.

When I user master branch try to just check off only SwiftAA I get an error on compiling for AAPlus under: Semantic Issue: must be initialized by a constant expression

When I try just SwiftAA using specific version 2.3.2 or 2.2.2 I get the error: Build input file cannot be found

When I try to add via SPM and check off AAPlus and SwiftAA I get the error: Swift package target 'AAPlus' is linked as a static library by 'myAppName' and 'AAPlus' but cannot be built dynamically because there is a package product of the same name

Screen Shot 2022-08-15 at 1 52 21 PM

Screen Shot 2022-08-15 at 2 12 03 PM

Screen Shot 2022-08-15 at 1 55 29 PM

onekiloparsec commented 2 years ago

Thanks for the bug report. The master branch is currently stuck in the last phase of a migration to a much newer AA+ code. I have some trouble making the tag and the release. Unfortunately, I am not using the SPM myself in other projects and don't have much XP on it.

onekiloparsec commented 1 year ago

@wilks7 could have a look now we have merged @vincentneo PR? AFAICT there is no need for a release for you to, at least, try.