objective c - xcode project-/target-settings-syntax for linker flag force_load on iPhone -


I'm faced with double tie, that for one of the 3-party static libraries on one side, my iphone application Uses, the Linker Flag -all_load should be set in the application project- or target setting, otherwise the app crashes at runtime, is not searching for some other mark, which is internally called by Lib, On the other hand, the other side of the static lib-all_load Should not be set for the application level, or the app will not thank the "duplicate symbols" -linker error. To solve this issue now I want to use force_load instant of load_all, because it is due to documentation This is like all_load, but there is a problem with the force_load for the pass path or lib file rather than just all the paths, I have no clue, which is to give the path or file as a parameter, h Let's pass it through the encoded project- or target-settings, all the syntax-possibilities in my mind, instead of the first one parameter in the xcode, it takes another linker into the thinking of the flag, or the linker syntax related errors Does not do anything against throwing or flag set. I also opened the .pbxproj-file manually in a text-editor to edit in the correct command line syntax, but when the project is reloaded with the exode, then auto syntax should be replaced by a different flag In the form of force_loads, the parameter converts into interpretation.

Anyone is considering this issue?

Thx, Caesar Ludi

I have just tried to use a stable armv6, armv7, and I386 PCRE's fat binary is compiled. My project has been added to my library project in general and this is a fine link so that's why I lipbook For the target membership box unchecked and created again. According to the expectation, I get a group of errors by linking symbols for peer symbols. Then I opened the Target Settings window and edited the "Other Linker Flags" section. I said:

  -force_load lib / pcre / libpcre.a  

lib directory is in my directory as Project. Xcodeproj file

It is properly connected, so I know that force_load command worked (and I can add it to the build flag when creating an encoded file).

Hope that helps.

Update:

I also tried to add a system library to the "Other Linker flag" line:

  -force_load src / pcre / libpcre .a -force_load $ {SDKROOT} /usr/lib/libz.dylib  

This also worked.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -