AnsweredAssumed Answered

Other Linker Flags "-all_load -ObjC" with duplicate symbols

Question asked by clementlaucl on Sep 30, 2013
Latest reply on Nov 22, 2013 by eito-esristaff
I want to integrate video streaming (VideoStream SDK for iOS) to ArcGIS.  But there are compiling error:

duplicate symbol _ff_inverse in:
/Users/geossd/Clement/GInfoMap/VideoStreamSDK/3rd-party/ffmpeg/lib/libavcodec.a(inverse.o)
/Users/geossd/Clement/GInfoMap/VideoStreamSDK/3rd-party/ffmpeg/lib/libavutil.a(inverse.o)
duplicate symbol _OBJC_IVAR_$_VSReachability.reachabilityRef in:
/Users/geossd/Library/Developer/Xcode/DerivedData/GInfoMap-ftddshucruzuhsdknuhapqqgagfo/Build/Intermediates/GInfoMap.build/Debug-iphonesimulator/GInfoMap.build/Objects-normal/i386/VSReachability.o
/Users/geossd/Clement/GInfoMap/VideoStreamSDK/VideoStreamSDK.a(VSReachability.o)
duplicate symbol _OBJC_IVAR_$_VSReachability.localWiFiRef in:
/Users/geossd/Library/Developer/Xcode/DerivedData/GInfoMap-ftddshucruzuhsdknuhapqqgagfo/Build/Intermediates/GInfoMap.build/Debug-iphonesimulator/GInfoMap.build/Objects-normal/i386/VSReachability.o
/Users/geossd/Clement/GInfoMap/VideoStreamSDK/VideoStreamSDK.a(VSReachability.o)
duplicate symbol _OBJC_CLASS_$_VSReachability in:
/Users/geossd/Library/Developer/Xcode/DerivedData/GInfoMap-ftddshucruzuhsdknuhapqqgagfo/Build/Intermediates/GInfoMap.build/Debug-iphonesimulator/GInfoMap.build/Objects-normal/i386/VSReachability.o
/Users/geossd/Clement/GInfoMap/VideoStreamSDK/VideoStreamSDK.a(VSReachability.o)
duplicate symbol _OBJC_METACLASS_$_VSReachability in:
/Users/geossd/Library/Developer/Xcode/DerivedData/GInfoMap-ftddshucruzuhsdknuhapqqgagfo/Build/Intermediates/GInfoMap.build/Debug-iphonesimulator/GInfoMap.build/Objects-normal/i386/VSReachability.o
/Users/geossd/Clement/GInfoMap/VideoStreamSDK/VideoStreamSDK.a(VSReachability.o)
ld: 5 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When I remove "-all_load -ObjC" in Other Linker Flags, it can be compiled.  But failure in runtime, it cannot find ArcGIS Class.

How can I solve this problem?

Outcomes