Hello all.

Im sorry if this isn't the right place to post this, I wasn't sure if xcode 
list obj-c list or this one, so I decided this one.

I have created a Static Library which makes use of another library (cocos2d to 
be more specific), then I created a project that will use that library i 
created. When I drag-drop the library to that project well I got linker errors. 
Finally after working a little bit with that problem I ended up creating a 
wrokspace and dragging there both projects (library and final project), then I 
configured the link libraries,  and voila it worked.

NOT JUST YET!, it was ok until in the library i created I needed to use a 
NSClassFromString, then nightmare began again. It returned me nil all the time. 
I checked that the class names were ok, but nothing.

So I did a research and found a technical ticket form apple saying that when 
using this class from within a static library there is a bug and I may need to 
add to the other linker flags a -all_load or -force_load

I checked my library build settings and I saw that -ObjC flag was there, so I 
added -all_load , recompile library, recompile final project test and 
nothing... So then I thought i may need to put those flag in the final product 
build settings, I did so and OMG again linker problems, file now founds etc.. 


What can I do? 

Thx in advance for any help provided and if this isn't the right list to post I 
apologize please let me know to which one should I write.


Gustavo _______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to