devinross / tapkulibrary

tap + haiku = tapku, a well crafted open source iOS framework
http://devinross.com/tapku/documentation
MIT License
3.9k stars 653 forks source link

compiler flag warning #285

Open ale84 opened 10 years ago

ale84 commented 10 years ago

I get this warning when I build the library:

warning:     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified, -all_load invalid
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
dehli commented 10 years ago

Are you using Parse?

ale84 commented 10 years ago

No I'm not using Parse. I added the library to my project following the instructions on the wiki.

dehli commented 10 years ago

Is it a fresh project?

ale84 commented 10 years ago

Yes. I also tried to open the Tapku project alone outside my app and I get the same warning when compiling.

dehli commented 10 years ago

When you said you tried opening the Tapku project, are you referring to Demo.xcodeproj?

ale84 commented 10 years ago

No I am referring to the TapkuLibrary.xcodeproj, the one that you need to import in your own project.

dehli commented 10 years ago

Are you able to open and run the demo.xcodeproj located in the demo folder?

ale84 commented 10 years ago

Yes, the demo.xcodeproj open and runs fine, but I get the same compiler warning.

dehli commented 10 years ago

Alright, I misread and thought you had said error. I just looked at my project using Tapku and I also have that same warning as you do. It's running fine, I'm not sure how to get rid of it. Sorry!

ale84 commented 10 years ago

Yes, my app also runs fine despite the warning. I discovered that the warning goes away if I remove the compiler flags -ObjC and -all_load under Other Linker Flags in the TapkuLibrary target build settings, but leave those flags in my app's own target. It seems to work fine but I am not sure this is the right solution. Anyway thank you for your time!