# Xcode Build Errors Unity 4.7.2

FYI

I did not touch or modify anything of the Xcode that was generated by Unity. Upon opening there is a warning that says to set to recommended settings. Other than that just set the provisional file. Set the simulator device then pressed play but these two errors keep showing!

• Under the target build settings, what contents do you have in the "header search path" settings? – AhiyaHiya Aug 13 '16 at 14:23
• Also, under the target settings, you may have a search path set for the header files under "other c flags settings". You may want to check there too. – AhiyaHiya Aug 13 '16 at 14:23
• postimg.org/gallery/2jt3pay1y uploaded some pictures to what i see is the project search path where the project is located. – galaxyacetype0 Aug 13 '16 at 15:13
• Select the "header search path" field and paste the contents into your question above so we could see the full path. – AhiyaHiya Aug 13 '16 at 16:06
• When I select the header search path field I find this \$(PROJECT_DIR). Thank you. – galaxyacetype0 Aug 13 '16 at 16:13

1. If Unity isn't a framework, then you need to just add the path to the Unity folder to your target's "Header Search Paths". Given how the #includes are written, my guess is that that's the case.
2. If Unity is a framework, then you haven't added the Unity.framework to your target. I don't know if Unity ships as a framework, but if it does, you need to add the framework to your target by going to the target's "Build Phases" and clicking the "+" button under "Link Binary With Libraries". From there, click the "Add Other…" button and navigate to wherever you put the Unity.framework. You also need to change the #include "Unity/GlesHelper.h" to #include <Unity/GlesHelper.h>. You may additionally need to add the Unity framework's headers path to your target's headers path. I have found instances where Xcode didn't automatically add the headers path of a framework after adding the framework to the target.
• The path to wherever Unity stores the headers on your hard drive. (The headers being things like Unity/GlesHelper.h, etc.) Not the Xcode project you're working on but the headers from the Unity library/framework/whatever it is. – user1118321 Aug 13 '16 at 17:44