PhoneGap Xcode Missing Header on Build 'Cordova / CDVViewController.h' Not Found

I am using PhoneGap 2.2.0 and Xcode 4.5.2.

I can test my programs in simulators, and I can put them on my devices to test them.

But I just can’t build for distribution. It always fails with the following error:

my-projevt-path / Classes / AppDelegate.h: 30: 9: file "Cordova / CDVViewController.h" not found

I saw this problem on the Internet and still cannot get it to work, given what solutions were sent.

I changed the settings in the build settings, I reinstalled PhoneGap, I launched new lines in the terminal, I made my application to launch a new PhoneGap project from scratch, I checked the settings in the assembly location in Xcode ... I can’t figure it out in EVERYTHING.

Please, help? I have been working on this for several days.

Thank!

+2
source share
5 answers

Problems in Xcode

If you have compilation problems related to missing headers, assembly products must be embedded in the same assembly directory. You may need to set the preference "Xcode Settings → Location → Derived Data → Advanced ..." to "Unique." This is the default value for Xcode on a new new installation, if you upgraded from previous versions of Xcode, you may have an outdated preference that you need to upgrade.

Found the answer !!!

+1
source

, , , . ? , , . , , .

, / - . , .

, , , , . , . xCode . .

, , / . , , , , ? "Apple Process" , / , .

+1

, , , - ... . /update _cordova_subproject, . , .

0

, ! - ... xCode , , CordovaLib.xcodeproj , iOS. , IOS. 1/2.

2) Then you need to duplicate the Release configuration and rename its Distribution . While CordovaLib.xcodeproj is selected, build and then create the actual project. It worked smoothly for me.

0
source

Add this line to your Build Settings -> Header Search Paths:

$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

Do not replace an existing line that looks similar, which is still needed for backward compatibility with Xcode 7 and Xcode 6.4.

0
source

All Articles