Cordova app failing to Archive with Xcode 7.3 (Cordova/CDVViewController.h' file not found)
<p>I have a project with Cordova(6.1.1)/Phonegap(5.3.10). I am trying to build an ipa file with Xcode 7.3. When I click on Product > Archive the build fails, and the log says: 'Cordova/CDVViewController.h' file not found. I can successfully build the project to a device, so i am kinda lost knowing what the problem might be.</p>

<p>I have tried to change the Header Search Path
from </p>

<p>"$(OBJROOT)/UninstalledProducts/include"</p>

<p>to </p>

<p>"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" </p>

<p>from reading this post
<a href="https://stackoverflow.com/questions/34546607/xcode-7-2-in-archive-getting-the-issue-cordova-cdvviewcontroller-h-file-n">Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app</a></p>

<p>I have tried to change chage to enable bitcode to "no", but still no luck at Archiving my app.</p>

<p>From many readings here on stackoverflow the issue seems to be with header search path, but this havent solved my issue. Dont know if there is something else on Xcode 7.3, because the other posts is with Xcode 7.2 and below. Dont know how to solve this issue, has anyone else experienced this problem?</p>

<p><strong>Update (Solution):</strong> </p>

<p>Under Build Settings > Deployment > Install owner. I left that blank and then it finally worked.</p>