foundationkit / FoundationKit

Everything that really should be in Foundation, but isn't. Future-proof with ARC
Other
80 stars 9 forks source link

Categories in tests #24

Closed MSch closed 13 years ago

MSch commented 13 years ago

Seems that linking against a static library doesn't load the Categories?

Can someone try the tests in master vs. the tests in framework-target?

Maybe there's another explanation.

steipete commented 13 years ago

Yes, unless you use -all_load categories w/o classes are not loaded in static libs. There are workarounds though.

steipete commented 13 years ago

I have nothing against -all_load, but putting and empty class in categories would fix it too

From Nimbus (who copied it from three20)

/**

steipete commented 13 years ago

But I guess you won't like it, as it's again macro magic ;)

myell0w commented 13 years ago

you need to add all_load linker flag

sent from phone

Am 10.07.2011 um 11:12 schrieb MSchreply@reply.github.com:

Seems that linking against a static library doesn't load the Categories?

Can someone try the tests in master vs. the tests in framework-target?

Maybe there's another explanation.

Reply to this email directly or view it on GitHub: https://github.com/foundationkit/FoundationKit/issues/24

MSch commented 13 years ago

I'm all for the macro magic. Way better than forcing our users to change build settings.