phonegap version: 3.3.0- 0.18.0
cordova version: 3.3.1-0.1.2
$phonegap build ios
[phonegap] detecting iOS SDK environment. ..
[phonegap] using the local environment
[phonegap] compiling iOS...
[error] An error occurred while building the ios project.xcodebuild: error:'HelloWorld.xcodeproj. xcodeproj' does not exist.
xcodebuild: error:'HelloWorld.xcodeproj.xcodeproj' does not exist.
xcodebuild: error:'HelloWorld.xcodeproj.xcodeproj' does not exist.
When I build and run from XCode IDE, it works fine.
Try to run the following command before building or running:
export GREP_OPTIONS=" --color=never"
Background story
The root of the problem lies in platforms / ios / cordova / build script:
My local environment contains:
p>
export GREP_COLOR='1;37;40'
export GREP_OPTIONS="--color=always"
.. it It produces beautiful colorful grep output, but what is confusing is the above script, which happens to be on this line:
XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
Permanent repair will involve changing the line to:
XCODEPROJ=$ (ls "$PROJECT_PATH" | grep --color=never .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
Cheers!
< /p>
I am trying to build a helloWorld application using PhoneGap, but it seems to try to find the xcodeproj file twice.
phonegap version: 3.3.0-0.18.0 p>
cordova version: 3.3.1-0.1.2
$phonegap build ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
[error] An error occurred while building the ios project.xcodebuild: error:'HelloWorld.xcodeproj.xcodeproj' does not exist .
xcodebuild: error:'HelloWorld.xcodeproj.xcodeproj' does not exist.
xcodebuild: error:'HelloWorld.xcodeproj.xcodeproj' does not exist.
When I start from XCode When the IDE builds and runs, it works fine.
In my case, it was grep output, which messed up the build script .
Try to run the following command before building or running:
export GREP_OPTIONS="--color=never"
< p>Background story
The root of the problem lies in platforms / ios / cordova / build script:
My local environment contains:
export GREP_COLOR='1;37;40'
export GREP_OPTIONS="--color=always"
.. It produces beautiful color grep output, but what is confusing is the above The script is on this line:
XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ". xcodeproj)
Permanent repair will involve changing the line to:
XCODEPROJ=$( ls "$PROJECT_PATH" | grep --color=never .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
Cheers!