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

Remove library type for ObjCAA #94

Closed sbenitezb closed 4 years ago

sbenitezb commented 4 years ago

Xcode will automatically select the proper library type if not specified. When linking with SwiftAA, both AA+ and ObjCAA will be statically linked regardless. But when using SwiftAA in a SwiftUI app, while in development all SwiftUI previews will fail because Xcode is unable to link ObjCAA properly.

This solves issue #88 at least temporarily until a proper way to build all dependencies as dynamic libraries is found.

onekiloparsec commented 4 years ago

Ok. I merged the PR, to solves at least remporarily #88. Will do a release 2.2.5 asap.