[
https://issues.apache.org/jira/browse/CB-5530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838303#comment-13838303
]
Shazron Abdullah commented on CB-5530:
--------------------------------------
I don't think adding "clean" is the answer here since this will significantly
increase build time I believe. This problem happens only once in a while
(editing a pch file), so you could possibly run cordova/clean on your own.
This could be a good feature request to add "clean" as one of the options for
"cordova build" in the CLI
e.g
{code}
cordova build --clean
{code}
if "--clean" was passed to the cordova/build script, it could handle this
option.
> [iOS] Cordova build failed if add CDVDebug.h to HelloCordova-Prefix.pch
> -----------------------------------------------------------------------
>
> Key: CB-5530
> URL: https://issues.apache.org/jira/browse/CB-5530
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI, iOS
> Affects Versions: 3.2.0
> Environment: cordova version: 3.1.0-0.2.0
> Reporter: glmnbeyond
>
> 1. Add CDVDebug.h to HelloCordova-Prefix.pch:
> #ifdef __OBJC__
> #import <Foundation/Foundation.h>
> #import <UIKit/UIKit.h>
> #import <Cordova/CDVDebug.h>
> #endif
> 2. $ cordova build --verbose
> The first time: ** BUILD SUCCEEDED **
> The second time and afterward:
> fatal error: file 'CDVDebug.h' has been modified since the precompiled header
> 'HelloCordova-Prefix.pch.pch' was built
--
This message was sent by Atlassian JIRA
(v6.1#6144)