+ Reply to Thread
Results 1 to 16 of 16

Thread: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

  1. #1
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Question Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    I am in the process of upgrading to the newest SDK version 2.2. I uninstalled version 2.1 and installed version 2.2. I have followed the directions for migrating an existing application here to upgrade the references etc. for an existing project, and have also tried to get the new v2.2 MapViewDemo to run. In both cases Xcode cannot find the new ArcGIS.h file - I get a compile error:

    'ArcGIS/ArcGIS.h' file not found

    I've double checked the steps against these instructions as well. Also I am able to see the new /Library/SDKs/ArcGIS folder via Finder, though I do not see an ArcGIS.h file anywhere under there (not sure if I am suppose to or not).

    One small discrepancy I noticed between the online help doc and the settings in the MapViewDemo project is that the Framework Search Path is slightly different:

    Sample: $HOME/Library/SDKs
    Online Help: ${HOME}/Library/SDKs/ArcGIS

    In any case, neither seem to work.

    Could this be a permission issue or something? Should ArcGIS.h be visible in Finder somewhere under /Library/SDKs/ArcGIS?

    Thoughts?

    Thanks...
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  2. #2
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Okay..let's make MapViewDemo up and running first and then we'll look into your project.

    1. Did install of v2.2 successfully completed?
    2. Do you see ArcGIS.framework and Samples folder under ${HOME}/Library/SDKs/ArcGIS?
    3. You mentioned that the Framework Search Paths in build settings of MapViewDemo is $HOME/Library/SDKs. It must be either ${HOME}/Library/SDKs/** or ${HOME}/Library/SDKs/ArcGIS.
    4. Do you see 'Other Linker Flags' set to -ObjC -all_load -framework ArcGIS -lstdc++?

    Regards,
    Nimesh
    Last edited by nrjarecha; 04-04-2012 at 02:28 PM.

  3. #3
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    David,

    Any update on this?

    Regards,
    Nimesh

  4. #4
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Nimesh,

    Thanks for the tips. Still having issue. I think the issue is with the aliases/files under ${HOME}/Library/SDKs/ArcGIS. See my answer to your question #2 below:

    1. Did install of v2.2 successfully completed?
    >> Answer: Yes. I had v2.1 installed previously. I did not uninstall 2.1 beforehand, but I did uninstall it later. Perhaps that is related to my issue...

    2. Do you see ArcGIS.framework and Samples folder under ${HOME}/Library/SDKs/ArcGIS?
    >> Answer: See attached screenshot (first one below). I see ArcGIS.framework there but not samples. Under ArcGIS.framework there are 3 aliases but they are all "broken" - double-clicking on one gives error "The operation can't be completed because the original item for 'ArcGIS' can't be found."

    I do see ArcGIS.framework and Samples directly under /Library/SDKs/ArcGIS.

    Note: I am still somewhat new to macs, and am not totally clear on the relationship between these folders (i.e., /Library vs. ${HOME}/Library)

    3. You mentioned that the Framework Search Paths in build settings of MapViewDemo is $HOME/Library/SDKs. It must be either ${HOME}/Library/SDKs/** or ${HOME}/Library/SDKs/ArcGIS.
    >> Answer: See attached screenshot (second one below) - another mac/Xcode detail I am a little unclear on. The value /Users/myuserid/Library/SDKs/** is what displays on the Build Settings page, but if you double-click to edit it shows value $HOME/Library/SDKs. I assume this is OK/correct - just slightly confusing why it shows two different ways.

    4. Do you see 'Other Linker Flags' set to -ObjC -all_load -framework ArcGIS -lstdc++?
    >> Answer: Yes these are all set.

    EDIT: Additionally, If I run the uninstall located under '/Library/Application Support/AGSiOSSDK ', the log file it generates says there is nothing to uninstall, and all of the files/folders noted above are still there:

    Nothing to uninstall
    Uninstall completed successfully


    Thanks,

    Dave

    Click image for larger version

Name:	home_library_sdks.png
Views:	134
Size:	37.4 KB
ID:	13342

    Click image for larger version

Name:	search_paths.png
Views:	71
Size:	25.8 KB
ID:	13343
    Last edited by dpmarley; 04-09-2012 at 09:16 AM.
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  5. #5
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Thanks for the details.

    See attached screenshot (first one below). I see ArcGIS.framework there but not samples. Under ArcGIS.framework there are 3 aliases but they are all "broken" - double-clicking on one gives error "The operation can't be completed because the original item for 'ArcGIS' can't be found."
    This is incomplete content and items missing in there...either it did not install completely or uninstalled completely. Just go to /Users/myuserid/Library/Application Support and remove AGSiOSSDK folder. Also, go to /Users/myuserid/Library and remove SDKs folder. Now, reinstall the SDK package.

    Note: I am still somewhat new to macs, and am not totally clear on the relationship between these folders (i.e., /Library vs. ${HOME}/Library)
    /Library - Library folder available at your hard drive.
    ${HOME}/Library - This is same as /Users/myuserid/Library. ${HOME} = /Users/myuserid.

    Hope this is clear to you now.

    See attached screenshot (second one below) - another mac/Xcode detail I am a little unclear on. The value /Users/myuserid/Library/SDKs/** is what displays on the Build Settings page, but if you double-click to edit it shows value $HOME/Library/SDKs. I assume this is OK/correct - just slightly confusing why it shows two different ways.
    Yes, that's correct. ${HOME} = /Users/myuserid.

    We've released v2.2.1 with just one fix for the reason below...Please download, install and let me know if you still have any problem.

    v2.2.1
    This update contains a minor fix to the SDK installation package. The installer was unnecessarily laying down files related to legacy XCode Project Templates. These templates were deprecated and removed back at v2.1. In majority of the cases, the template files did not cause any harm. However, in exceptional cases, users were not able to install v2.2 due to permission issues related to where the files were being written. The v2.2.1 installer does not lay down these files.
    Regards,
    Nimesh

  6. #6
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Thanks for the prompt reply.

    What about the SDKS folder under /Library? Should I remove that too, before reinstalling?

    /Library/SDKs/ArcGIS
    subfolders: ArcGIS.framework and Samples

    And in a correct installation, where should the Esri SDK reside: under /Library or ${HOME}/Library?

    Regards,

    Dave
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  7. #7
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    The SDK should reside under ${HOME}/Library. If you have andy ArcGIS content under /Library then delete them.

    Regards,
    Nimesh

  8. #8
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    I deleted all of those folders, downloaded the new installer (2.2.1) and reinstalled the SDK....and got the same result. The SDK is installing under /Library instead of ${HOME}/Library.

    My user is an administrator (i.e., "Allow user to administer this computer" is checked) on this system. Could that be it? If there is something else that I am doing wrong during the installation, I can't figure what it would be.

    See attached screen shot showing the installed SDK under /Library.

    Thanks,

    Dave

    Click image for larger version

Name:	installing_under_Library.png
Views:	88
Size:	43.1 KB
ID:	13349
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  9. #9
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0
    This post is marked as the answer

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    User is an administrator is not the reason of this. Let's diagnose the issue. Please follow below steps and send the information.

    1. Open Terminal and type command, 'echo $HOME' (without quotes). Send the output.
    2. Open /Application/Utilities/Console >> Click 'Clear Display'.
    3. Now install the SDK, you'll see the install logs in the Console display.
    4. Send us the log information.
    5. Since, the SDK is getting installed at /Library, you'll see a AGSiOSSDK folder under /Library/Application Support. Please give manifest file from that folder.

    Regards,
    Nimesh

  10. #10
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Well I was finally able to get the new SDK installed, though if I mention what the issue was no one is going to believe me (LOL)! I followed the steps above to capture the messages output by the installer using the Console. I also did the same last night on my mac at home (where it installed fine) and compared the results. On the system with the install issue, the console output included the following suspicious messages:

    4/10/12 7:20:49.704 AM authorizationhost SFBuiltinEntitled: Installer.app is not entitled for system.install.apple-software
    4/10/12 7:20:49.732 AM authorizationhost SFBuiltinEntitled: Installer.app is not entitled for system.install.app-store-software
    4/10/12 7:20:49.757 AM authorizationhost SFBuiltinEntitled: Installer.app is not entitled for system.install.app-store-software
    4/10/12 7:20:49.758 AM com.apple.SecurityServer Failed to authorize right 'system.install.app-store-software' by client '/System/Library/PrivateFrameworks/PackageKit.framework/Versions/A/Resources/installd' [281] for authorization created by '/System/Library/CoreServices/Installer.app' [270]

    I did a little Googling for the error 'Installer.app is not entitled for system.install.apple-software' and saw others having similar issues on OS X 10.7.3 for other software installs. One person having this issue noted having to remove a prior version AND EMPTY THEIR TRASH. Seemed like a long shot to me, but I tried it and it worked!

    I had tried this probably 5 times (if not more) yesterday, and once this morning, by manually deleting the SDKs folder (and AGSiOSSDK under Application Support), but never emptying my trash - always with the same result. Then I tried it with also emptying the trash, and the install worked straight away. Go figure....sounds crazy but it is true.

    One thing to note is that during the successful install the installer presented an extra window "How do you want to install this software? - Install for me only" that was not present in the unsuccessful
    installs. See this screenshot:

    Click image for larger version

Name:	Install Complete Screenshot v2.2.1 - extra screen.png
Views:	88
Size:	128.8 KB
ID:	13378

    In any case I am up and running now. Thanks for all the detailed assistance Nimesh.

    One quick point and one last (somewhat related) question:
    1. The Esri Help/documentation does not say whether prior versions of the SDK should be uninstalled before installing a new version or not. It'd be helpful if the documentation clarified this point.

    2. The Online documentation topic "Configuring an Xcode Project" says to add the following compiler linker flags: "-ObjC -all_load -framework ArcGIS". But the samples also include the additional flag "-lstdc++". Is the latter required? Small detail I know, but the documentation and samples are not consistent here.

    Thanks again,

    Dave
    Last edited by dpmarley; 04-10-2012 at 05:53 AM.
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  11. #11
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Surprising! Seeing this kinda issue first time! Glad to know that everything is up and running now!

    1. The Esri Help/documentation does not say whether prior versions of the SDK should be uninstalled before installing a new version or not. It'd be helpful if the documentation clarified this point.
    You do not require to explicitly uninstalling old version. When you install new version, that will take care of that. In your case, since it was getting installed at different location, it was not able to do.

    2. The Online documentation topic "Configuring an Xcode Project" says to add the following compiler linker flags: "-ObjC -all_load -framework ArcGIS". But the samples also include the additional flag "-lstdc++". Is the latter required? Small detail I know, but the documentation and samples are not consistent here.
    If you remove additional flag "-lstdc++", then you'll HAVE to add "libstdc++.dylib" to the project. That's the difference.

    Regards,
    Nimesh

  12. #12
    Noli Sicad
    Join Date
    Jan 2011
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    Quote Originally Posted by nrjarecha View Post
    User is an administrator is not the reason of this. Let's diagnose the issue. Please follow below steps and send the information.

    1. Open Terminal and type command, 'echo $HOME' (without quotes). Send the output.
    2. Open /Application/Utilities/Console >> Click 'Clear Display'.
    3. Now install the SDK, you'll see the install logs in the Console display.
    4. Send us the log information.
    5. Since, the SDK is getting installed at /Library, you'll see a AGSiOSSDK folder under /Library/Application Support. Please give manifest file from that folder.

    Regards,
    Nimesh
    Hi,

    I got problem as well installing the 2.2.1.

    Here some details.

    1. Installing as root user.

    localhost:work_31 root# echo $HOME
    /var/root

    No install logs in the console.

    No template is created in Xcode for ArcGIS. In order words, I can't create a new project for ArcGIS iOS project.

    I got this problem as well running the examples - 'ArcGIS/ArcGIS.h' file not found

    How do I solve this problem of not completing the install?

    Noli

  13. #13
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    You should not install SDK with root user. Install with user which Xcode is going to run with. Also, you won't see any templates installed with v2.2.1. Those are not supported.

    Hope this helps!

    Regards,
    Nimesh

  14. #14
    Steve Tan
    Join Date
    May 2012
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    I had the same problem.. but uninstalling and emptying my trash did not solve my problem.
    After debugging it the whole day.
    Ive decided to use the extreme.. RESTART.
    After uninstalling, I did a restart. (without xcode running)
    Then I did a fresh install, then did another restart (without xcode running)
    After restarting, I started xcode. AND ALL IS FINE!

    Hope it helped some guys out there that had the same problem as me.

    Regards,
    Steve

  15. #15

    Join Date
    Aug 2012
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Thumbs up Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    I've been following this thread because I had a similar kinda error. What finally fixed my issue was replace

    #import "ArcGIS.h"

    with

    #import "ArcGIS/ArcGIS.h"

    I know its a silly question to ask but can some be generous enough to explain why ? (I ask because since we put the framework search path to be ~../SDKs/ArcGIS/** )

    regards,

  16. #16
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    882
    Points
    493
    Answers Provided
    106


    0

    Default Re: Version 2.2 SDK Error: 'ArcGIS/ArcGIS.h' file not found

    #import <ArcGIS/ArcGIS.h> should have fixed your issue not #import "ArcGIS/ArcGIS.h". Framework search path will take you to reach header file location but in order to use it, you must import it. Like the same way you do for any other iOS SDK framework (#import <UIKit/UIKit.h>).

    Hope this helps!

    Regards,
    Nimesh

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts