Really confused now about -ObjC and -force_load flags
Really confused now about -ObjC and -force_load flags
- Subject: Really confused now about -ObjC and -force_load flags
- From: David Hoerl <email@hidden>
- Date: Thu, 28 Mar 2013 18:52:47 -0400
I had a private exchange with Jens regarding my last post on whether
force_load is still needed or not.
It seems now that if you use an ObjectiveC library that has
category-only files (think NSString+...), that you need one or the other
of -ObjC or -force_load.
After reading
http://developer.apple.com/library/mac/#qa/qa1490/_index.html, it
appears that -ObjC tells the linker to immediately load every object
file in every library it links against (which would also seem much like
"-all_load").
"-force_load" on the other hand only does the "load all objects" on the
single library specified after the flag.
Thus, it appears to me that -force_load is the preferred solution. Did I
miss something? If this is so, why doesn't QA1490 say that?
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden