Select to view content in your preferred language

Other Linker Flags

911
1
06-04-2013 03:56 AM
HumzaAkhtar
Deactivated User
Hi,

Can any one enlighten me that in the build settings of a xcode project based on ArcGIS SDK, we normally write 

-all_load -ObjC -framework ArcGIS

is it necessary to enter '-all_load' if we have already entered 'ArcGIS' flag and if we are only using one SDK in the whole code i-e arcGIS SDK? What purpose does writing ArcGIS serve in 'other linker flags' if we have already added -all_load.?


Thanks and Regards
Humza
0 Kudos
1 Reply
PatrickHartling
Occasional Contributor
The -all_load flag indicates that all members of a static archive are to be loaded at run time. What I have found is that using -ObjC is sufficient for typical Objective-C static libraries and frameworks to ensure that all symbols from categories are loaded. However, since the ArcGIS Runtime SDK for iOS mixes C++ and Objective-C, I find that both -all_load and -ObjC are needed.
0 Kudos