0 Replies Latest reply on Jul 17, 2014 1:12 AM by Venkata Hari Kishore Lokam

    Unable to build ESRI native extension for iPhone

    Venkata Hari Kishore Lokam

      Hi All,

       

      We have a requirement to show ESRI native maps in iPhone.

       

      In Rhomobile documentation it is given:


      To use ESRI maps in your projects on iPhone:

       

       

      • Install ESRI iOS SDK – use default folders during installations !

       

      • Add “esri” to your applications extensions list in build.yml file.
      Link : http://docs.rhomobile.com/en/2.2.0/rhodesapi/mapview-api

       

      But adding "esri" in build.yml resulting in compile time error:

      Tried adding it under iphone\extensions and under extensions directly, both resulted in compilation errors. Error file attached.

       

      Dev. environment :

           Mac : 10.9.3

           Rhostudio 4.0

           ESRI iOS SDK : 10.2.3

       

      Please help me to resolve this.

       

       

       

      Libtool build/Release-iphonesimulator/libESRI.a normal i386

       

          cd /Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/lib/extensions/esri/ext/esri/platform/iphone

          export IPHONEOS_DEPLOYMENT_TARGET=4.0

          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/bin:/Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545@global/bin:/Users/bg1mm007/.rvm/rubies/ruby-1.9.3-p545/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/bg1mm007/.rvm/bin"

          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/lib/extensions/esri/ext/esri/platform/iphone/build/Release-iphonesimulator -L/Users/bg1mm007/Library/SDKs/ArcGIS/iOS.sdk/usr/local/lib -filelist /Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/lib/extensions/esri/ext/esri/platform/iphone/build/ESRI.build/Release-iphonesimulator/ESRI.build/Objects-normal/i386/ESRI.LinkFileList -all_load -ObjC -framework Foundation -framework CoreGraphics -framework CoreFoundation -framework CoreLocation -framework MapKit -framework QuartzCore -framework UIKit -lArcGIS -o /Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/lib/extensions/esri/ext/esri/platform/iphone/build/Release-iphonesimulator/libESRI.a

      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

      error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/lib/extensions/esri/ext/esri/platform/iphone/build/ESRI.build/Release-iphonesimulator/ESRI.build/Objects-normal/i386/ESRIViewFactory.o (No such file or directory)

      error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/lib/extensions/esri/ext/esri/platform/iphone/build/ESRI.build/Release-iphonesimulator/ESRI.build/Objects-normal/i386/MapViewControllerESRI.o (No such file or directory)

      error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lArcGIS

      error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lArcGIS is not an object file (not allowed in a library)


      cp ./build/Release-iphonesimulator/libESRI.a /Users/bg1mm007/.rvm/gems/ruby-1.9.3-p545/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libESRI.a

      rake aborted!

      Errno::ENOENT: No such file or directory - ./build/Release-iphonesimulator/libESRI.a