tapkulibrary icon indicating copy to clipboard operation
tapkulibrary copied to clipboard

compiler flag warning

Open ale84 opened this issue 10 years ago • 10 comments

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

ale84 avatar Apr 03 '14 11:04 ale84

Are you using Parse?

dehli avatar Apr 03 '14 11:04 dehli

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

ale84 avatar Apr 03 '14 11:04 ale84

Is it a fresh project?

dehli avatar Apr 03 '14 11:04 dehli

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

ale84 avatar Apr 03 '14 11:04 ale84

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

dehli avatar Apr 03 '14 11:04 dehli

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

ale84 avatar Apr 03 '14 12:04 ale84

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

dehli avatar Apr 03 '14 14:04 dehli

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

ale84 avatar Apr 03 '14 14:04 ale84

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!

dehli avatar Apr 03 '14 15:04 dehli

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!

ale84 avatar Apr 03 '14 15:04 ale84