Xcode fail- "'AirshipKit/AirshipKit.h' file not found"

This is my first Urban Airship app. The app was running on Xcode before adding Urban Airship. It now fails with the warning,

"'AirshipKit/AirshipKit.h' file not found" 
The file is there, within the AirshipKit folder. I am sending a screenshot so you can see where I have it. Its likely in the wrong place, I but I thought I followed instructions well.




Screen Shot 2016-02-23 at 11.34.41 AM.png

Didn't find what you were looking for?

New post

Comments

12 comments

  • Hi Clint,

    This is Aaron with Urban Airship Technical Support. I'll be helping with your concern about AirshipKit.

    From the provided screenshot, it seems like there are several copies of AirshipKit in your project as well. 

    The best path forward here would be to use Xcode to remove all versions of AirshipKit from the project, then re-add them using the Embedded Binaries area in your project settings. 

    Please let me know if you run in to any issues.

    Thanks!

    Best Regards,
    Aaron S
    Technical Support Engineer, Portland

     

    0
  • Thank you Aaron.  I must have misread teh instructions.  I will do as you suggest this evening.  Really appreciate your direction.

    0
  • Hi Clint,

    No problem at all. If you have any more issues, you know where to find us ;)

     

    My Best,
    Aaron S.
    Technical Support Engineer, Portland

     

    0
  • I encounter the same issue, and I've make sure that I followed the instruction correctly.

    0
  • Hi Suli,

    Were you able to follow the instructions given to Clint in the response to his original post?

     

    Best Regards,
    Aaron Schuman
    Technical Support Engineer, Portland

     

    0
  • Yes, I use Xcode to remove all the Airship directory, and click Embedded Binaries and click "add another" to open the two directories. I am not sure this is what you want me to do.

    0
  • Hello,

    I am facing the similar issue. 
    I have followed the instruction given on this link. https://go.urbanairship.com/apps/nven9AxjTQ-sA0UDBG1m3Q/quickstart_guide/
    The AirshipKit framework is displaying red in Embedded Binaries(as mentioned).
    When I try to import #import <AirshipKit/AirshipKit.h> in the AppDelegate, it says directory not found. 
    I have attached the screenshots. 
    Kindly let me know how can we resolve this. 

    Thanks

    0
  • Having the same error. Followed the same instructions as everyone else and still no luck. Tried setting extra header search paths but still nothing.

    0
  • Not sure how I got around this but I had this issue too. I tried changing the path to have an extra `/AirshipKit` in the front cause that was actually the structure that seemed to be in my project (there was an `AirshipKit` nested in another `AirshipKit` in the root). It seemed to fix it but then I changed it back to what it was originally it it worked. As I'm a noob to Xcode, I have no idea how it fixed itself.

    0
  • Has anyone found a solution? It runs fine for me in the simulator, but when I try to install the app on an actual device I get this error.

    0
  • I had this issue today. After some investigation, I figured out that the cause was in project configuration naming. My main project configuration name for running the build was 'Distribution' and for AirshipKit it was 'Release'. What happened was when the AirshipKit project was compiling all the header files of AirshipKit were copied to the 'Release' intermediate folder and when the main project was compiling it was looking for header files in 'Distribution' intermediate folders. I solved this by creating a new configuration for AirshipKit project and named it 'Distribution'. Then I chose 'Distribution' when performing a Run action in the 'Edit Scheme...' window for AishipKit project. Hope this helps!

    0
  • Hi Justinas!

    Thank you for the additional information! I hope that others find this helpful as well. 

    0

Please sign in to leave a comment.