[
https://issues.apache.org/jira/browse/CB-5530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837468#comment-13837468
]
glmnbeyond edited comment on CB-5530 at 12/3/13 8:57 AM:
---------------------------------------------------------
If I modify cordova/build as follows, cordova build will succeed everytime:
xcodebuild {color:red}clean{color} -xcconfig "$CORDOVA_PATH/build.xcconfig"
-project "$PROJECT_NAME.xcodeproj" ARCHS="armv7 armv7s" -target "$PROJECT_NAME"
-configuration $CONFIGURATION -sdk iphoneos build VALID_ARCHS="armv7 armv7s"
CONFIGURATION_BUILD_DIR="$PROJECT_PATH/build/device"
xcodebuild {color:red}clean{color} -project "$PROJECT_NAME.xcodeproj" -arch
i386 -target "$PROJECT_NAME" -configuration $CONFIGURATION -sdk iphonesimulator
build VALID_ARCHS="i386" CONFIGURATION_BUILD_DIR="$PROJECT_PATH/build/emulator"
was (Author: glmnbeyond):
if I modify cordova/build as follows:
xcodebuild {color:red}clean{color} -xcconfig "$CORDOVA_PATH/build.xcconfig"
-project "$PROJECT_NAME.xcodeproj" ARCHS="armv7 armv7s" -target "$PROJECT_NAME"
-configuration $CONFIGURATION -sdk iphoneos build VALID_ARCHS="armv7 armv7s"
CONFIGURATION_BUILD_DIR="$PROJECT_PATH/build/device"
xcodebuild {color:red}clean{color} -project "$PROJECT_NAME.xcodeproj" -arch
i386 -target "$PROJECT_NAME" -configuration $CONFIGURATION -sdk iphonesimulator
build VALID_ARCHS="i386" CONFIGURATION_BUILD_DIR="$PROJECT_PATH/build/emulator"
> [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)