iOS5 GM Seed and XCode 4.2 App does not compile with ArcGIS iOS API 2.0.1

1090
6
10-05-2011 03:24 AM
AlexanderMardirossian
New Contributor II
Hello,

I have just upgraded from iOS 5.0 beta 7 to iOS 5.0 GM Seed and XCode 4.2 respectively.
I have installed ArcGIS iOS API 2.0.1, re-added the libarggis.a to the project and restarted the Mac.
Now I cannot compile my ArcGIS iOS App.

What's wrong?

I get the following errors (XXXXX - the app's name):
===================================================
Ld /Users/Username/Desktop/builds/XXXXXXX.XXXXX-cpsbvtmlubhijzbqvyslbdmwtdua/Build/Products/Debug-iphoneos/XXXXXXX.XXXXX.app/XXXXXXX.XXXXX normal armv7
cd /Users/Username/Documents/SomeFolderNameiPhone
setenv IPHONEOS_DEPLOYMENT_TARGET 3.1.2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/Username/Desktop/builds/XXXXXXX.XXXXX-cpsbvtmlubhijzbqvyslbdmwtdua/Build/Products/Debug-iphoneos -L/Users/Username/Documents/SomeFolderNameiPhone/../../Library/SDKs/ArcGIS/iOS.sdk/usr/local/lib -L/Users/Username/Library/SDKs/ArcGIS/iOS.sdk/usr/local/lib -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/gcc/arm-apple-darwin10/4.0.1 -F/Users/Username/Desktop/builds/XXXXXXX.XXXXX-cpsbvtmlubhijzbqvyslbdmwtdua/Build/Products/Debug-iphoneos -filelist /Users/Username/Desktop/builds/XXXXXXX.XXXXX-cpsbvtmlubhijzbqvyslbdmwtdua/Build/Intermediates/XXXXXXX.XXXXX.build/Debug-iphoneos/XXXXXXX.XXXXX.build/Objects-normal/armv7/XXXXXXX.XXXXX.LinkFileList -dead_strip -all_load -ObjC -miphoneos-version-min=3.1.2 -lArcGIS -lz.1.1.3 -lz.1.2.5 -framework MediaPlayer -lxml2.2.7.3 -framework CoreGraphics -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework CoreText -framework QuartzCore -framework CoreLocation -framework Foundation -framework UIKit -o /Users/Username/Desktop/builds/XXXXXXX.XXXXX-cpsbvtmlubhijzbqvyslbdmwtdua/Build/Products/Debug-iphoneos/XXXXXXX.XXXXX.app/XXXXXXX.XXXXX

ld: warning: directory not found for option '-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/gcc/arm-apple-darwin10/4.0.1'
Undefined symbols for architecture armv7:
"__Znwm", referenced from:
-[AGSEnvelope dotborg] in libArcGIS.a(AGSEnvelope.o)
-[AGSSpatialReference dotborg] in libArcGIS.a(AGSGeometry.o)
-[AGSMultipoint init] in libArcGIS.a(AGSMultipoint.o)
-[AGSPolygon init] in libArcGIS.a(AGSPolygon.o)
-[AGSPolyline init] in libArcGIS.a(AGSPolyline.o)
-[AGSCancelTracker init] in libArcGIS.a(AGSGeometryEngine.o)
-[AGSGeometryEngine init] in libArcGIS.a(AGSGeometryEngine.o)
...
(maybe you meant: __ZnwmPv)
"__ZSt9terminatev", referenced from:
__ZN12BORGEnvelopeC2EN13esriGeometryX10Envelope2DE in libArcGIS.a(AGSEnvelope.o)
__Z19AGSArrayToBorgArrayP7NSArray in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference unit] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference isPCS] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference isGCS] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference dotborg] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference convertValue:fromUnit:] in libArcGIS.a(AGSGeometry.o)
...
"__ZNSt8ios_base4InitC1Ev", referenced from:
__GLOBAL__I__Z9toScreenXfP11AGSEnvelopef in libArcGIS.a(AGSEnvelope.o)
__GLOBAL__I__Z19AGSArrayToBorgArrayP7NSArray in libArcGIS.a(AGSGeometry.o)
__GLOBAL__I_OBJC_IVAR_$_AGSMultipoint._envelope in libArcGIS.a(AGSMultipoint.o)
__GLOBAL__I_OBJC_IVAR_$_AGSPoint._envelope in libArcGIS.a(AGSPoint.o)
__GLOBAL__I_OBJC_IVAR_$_AGSPolygon._envelope in libArcGIS.a(AGSPolygon.o)
__GLOBAL__I__Z11LiangBarskyddddddddPdS_S_S_ in libArcGIS.a(AGSPolyline.o)
__GLOBAL__I__Z33AGSSimpleMarkerSymbolStyleStringsv in libArcGIS.a(AGSMarkerSymbol.o)
...
"__ZdlPv", referenced from:
-[AGSEnvelope dotborg] in libArcGIS.a(AGSEnvelope.o)
-[AGSEnvelope dealloc] in libArcGIS.a(AGSEnvelope.o)
-[AGSMutableEnvelope updateWithXmin:ymin:xmax:ymax:] in libArcGIS.a(AGSEnvelope.o)
-[AGSSpatialReference dealloc] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference dotborg] in libArcGIS.a(AGSGeometry.o)
-[AGSMultipoint dealloc] in libArcGIS.a(AGSMultipoint.o)
-[AGSMultipoint init] in libArcGIS.a(AGSMultipoint.o)
...
(maybe you meant: __ZdlPvS_)
"__ZNSt19basic_istringstreamIwSt11char_traitsIwESaIwEEC1ERKSbIwS1_S2_ESt13_Ios_Openmode", referenced from:
__ZN13esriGeometryX10JSONParser15_StringHexToIntEi in libArcGIS.a(JSONParser.o)
__ZN13esriGeometryX10JSONParser18CurrentDoubleValueEv in libArcGIS.a(JSONParser.o)
"___gxx_personality_sj0", referenced from:
-[AGSEnvelope dotborg] in libArcGIS.a(AGSEnvelope.o)
__ZN12BORGEnvelopeC2EN13esriGeometryX10Envelope2DE in libArcGIS.a(AGSEnvelope.o)
__Z19AGSArrayToBorgArrayP7NSArray in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference unit] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference isPCS] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference isGCS] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference dotborg] in libArcGIS.a(AGSGeometry.o)
...
"__ZNSt18basic_stringstreamIwSt11char_traitsIwESaIwEED1Ev", referenced from:
__ZN13esriGeometryX13StringBuilder6AppendEd in libArcGIS.a(OperatorExportToJSONLocal.o)
__ZN13esriGeometryX13StringBuilder6AppendEi in libArcGIS.a(OperatorExportToJSONLocal.o)
"___cxa_begin_catch", referenced from:
-[AGSSpatialReference convertValue:fromUnit:] in libArcGIS.a(AGSGeometry.o)
-[AGSSpatialReference convertValue:toUnit:] in libArcGIS.a(AGSGeometry.o)
-[AGSGeometryEngine nearestCoordinateInGeometry:toPoint:] in libArcGIS.a(AGSGeometryEngine.o)
-[AGSGeometryEngine nearestVertexInGeometry:toPoint:] in libArcGIS.a(AGSGeometryEngine.o)
-[AGSGeometryEngine geometry:containsGeometry:] in libArcGIS.a(AGSGeometryEngine.o)
-[AGSGeometryEngine geometry:touchesGeometry:] in libArcGIS.a(AGSGeometryEngine.o)
-[AGSGeometryEngine geometry:withinGeometry:] in libArcGIS.a(AGSGeometryEngine.o)
...
"__ZNSt13basic_ostreamIwSt11char_traitsIwEElsEd", referenced from:
__ZN13esriGeometryX13StringBuilder6AppendEd in libArcGIS.a(OperatorExportToJSONLocal.o)
"__ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi", referenced from:
__ZN13esriGeometryX13StringBuilder6AppendEi in libArcGIS.a(OperatorExportToJSONLocal.o)
"__ZNSaIwEC1Ev", referenced from:
__ZN13esriGeometryX10JSONParser15_StringHexToIntEi in libArcGIS.a(JSONParser.o)
__ZN13esriGeometryX10JSONParser18CurrentDoubleValueEv in libArcGIS.a(JSONParser.o)
"__ZTVN10__cxxabiv120__si_class_type_infoE", referenced from:
__ZTIN13esriGeometryX16RefCountedObjectE in libArcGIS.a(AGSGeometry.o)
__ZTIN13esriGeometryX15CloneableObjectE in libArcGIS.a(AGSGeometry.o)
__ZTIN13esriGeometryX5ArrayINS_14SmartRefObjectINS_8GeometryEEEEE in libArcGIS.a(AGSGeometry.o)
__ZTIN13esriGeometryX19MultiVertexGeometryE in libArcGIS.a(AGSMultipoint.o)
__ZTIN13esriGeometryX9MultiPathE in libArcGIS.a(AGSPolygon.o)
__ZTIN13esriGeometryX15ProgressTrackerE in libArcGIS.a(AGSGeometryEngine.o)
__ZTI19AGSCPPCancelTracker in libArcGIS.a(AGSGeometryEngine.o)
...
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.

[[[[[[[[[[[[[here i have cut some of the text to comply with the forum requirements...]]]]]]]]]]]]]]]

__ZN13esriGeometryX12DynamicArrayINS_14SmartRefObjectINS0_IfLi10EEEEELi10EE11SetCapacityEi in libArcGIS.a(AttributeStream.o)
...
"__ZNSaIwED1Ev", referenced from:
__ZN13esriGeometryX10JSONParser15_StringHexToIntEi in libArcGIS.a(JSONParser.o)
__ZN13esriGeometryX10JSONParser18CurrentDoubleValueEv in libArcGIS.a(JSONParser.o)
"___cxa_guard_release", referenced from:
__ZL23GetAllocCriticalSectionv in libArcGIS.a(Platform.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
=====================================================
0 Kudos
6 Replies
JeremyBixby
New Contributor III
From the Esri documentation:

Beta and GM seed versions of the iOS SDK are not generally not supported unless noted otherwise.


I haven't seen it noted otherwise. 

Esri: When will the Esri SDK support iOS 5?  I have an app in beta now, and I don't want to submit it to the app store until I can upgrade to iOS 5.
0 Kudos
AlexanderMardirossian
New Contributor II
"...are not generally not supported..."

Now I remember I have seen this somewhere... and if you look at it carefully you will see there is a double denial, so NOxNO = YES 🙂

ESRI: When are you going to release a proper iOS API for the new iOS5 ?
0 Kudos
JeremyBixby
New Contributor III
Good call, I didn't see the double-negative!
0 Kudos
NimeshJarecha
Esri Regular Contributor
The ArcGIS API for iOS v2.0.1 works fine with iOS 5 GM Seed. 🙂

Seems that the library libstdc++.dylib is missing in your project.

Regards,
Nimesh
0 Kudos
AlexanderMardirossian
New Contributor II
Thanks Nimesh, that fixed it. I must have lost it in the way... 🙂
0 Kudos
NimeshJarecha
Esri Regular Contributor
Glad to know 🙂
0 Kudos