I'll make this as short as possible.
I'm trying to build a static library for both iOS and OS X. It would seem that the SDK (iOS/Mac OS X) to be used with the static library should be the same as the target which links against this library.
Is there any way to create a common static library that wouldn't depend on either of the SDKs particularly? Or should I just build SDK specific libraries?
One of the problems using the wrong kind of static library is that the linker throws an error related to not finding [super init]
for class that inherits NSObject
.
In addition, it seems that the X_Prefix.pch has different content when building desktop and iOS libraries. How should I handle this and possibly other differences between these two platforms?