Phonegap ios blocking exception using HelloWorld application

I am trying to create a helloWorld application using PhoneGap, but it seems like it is trying to find the .xcodeproj file twice.

phone 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.

It works great when I create and run from the Xcode IDE.

+4
source share
2 answers

In my case, it was grep output, which confused the build of the script.

Try the following command before buildor run:

export GREP_OPTIONS="--color=never"    

Background

The source of the problem is in the platforms/ios/cordova/buildscript:

My local environment contains:

export GREP_COLOR='1;37;40'
export GREP_OPTIONS="--color=always"

.., grep-, script, :

XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj  )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)

- :

XCODEPROJ=$( ls "$PROJECT_PATH" | grep --color=never .xcodeproj  )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)

!

+8

, iOS (hello/platform/ios), .

0

All Articles