This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243601 - When Targeting "Cordova IOS device/simulator" , run main project button does not work as it said "supported version of xcode and CLT could not be found". However, I have installed lastest Xcode 5 and xcode has changed the directory location.
Summary: When Targeting "Cordova IOS device/simulator" , run main project button does ...
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-06 08:05 UTC by ansonwoody
Modified: 2014-07-08 09:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (305.38 KB, text/plain)
2014-04-06 08:05 UTC, ansonwoody
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ansonwoody 2014-04-06 08:05:44 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Mac OS X version 10.9.2 running on x86_64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 ansonwoody 2014-04-06 08:05:57 UTC
Created attachment 146583 [details]
IDE log
Comment 2 ansonwoody 2014-04-06 08:08:34 UTC
There is not option to change the detecting directory for xcode.
Comment 3 Vladimir Riha 2014-04-06 11:20:09 UTC
Could you please paste here path to the Xcode directory and version of Xcode? Is this path part of your PATH variable? You can print PATH using following command:

$ echo "$PATH"
 


If I understand, you can create and build project, but running is problem? Or building also fails (if you right click on project, there is Clean and Build action, does it work)? Is there some text in output window in NetBeans? What version of Cordova do you have? Run command

$ cordova -v 

to find out.
Comment 4 ansonwoody 2014-04-06 11:35:05 UTC
For my cordova version: 3.4.0-0.1.3

For the path: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

So do i need to specify the path in bash_profile before i run the application in netbeans? And how to specify the path and version in the bash? 

My xcode is version 5 and the location is: /Applications/Developer/Xcode.app


Thanks for reply Vladimir.

(In reply to Vladimir Riha from comment #3)
> Could you please paste here path to the Xcode directory and version of
> Xcode? Is this path part of your PATH variable? You can print PATH using
> following command:
> 
> $ echo "$PATH"
>  
> 
> 
> If I understand, you can create and build project, but running is problem?
> Or building also fails (if you right click on project, there is Clean and
> Build action, does it work)? Is there some text in output window in
> NetBeans? What version of Cordova do you have? Run command
> 
> $ cordova -v 
> 
> to find out.
Comment 5 Vladimir Riha 2014-04-07 07:10:42 UTC
Thank you for update, paths should be OK. Where do you see this error message? Some dialog in NetBeans or output window (and could you please attach content of output window here when running project fails)?

Are you able to create and build Cordova project from command line, without any assistance of NetBeans? See [1] for details, the list of commands is:

    $ cordova create hello com.example.hello "HelloWorld"
    $ cd hello
    $ cordova platform add ios
    $ cordova build

[1] http://cordova.apache.org/docs/en/3.4.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide
Comment 6 ansonwoody 2014-04-07 11:07:58 UTC
Yes i certainly can without any problems. 

Btw, I used to have problems with xcode pathing when i use "cordova build" and i solved it by running a "xcode-select" command and pointed my xcode to the right directory.

(In reply to Vladimir Riha from comment #5)
> Thank you for update, paths should be OK. Where do you see this error
> message? Some dialog in NetBeans or output window (and could you please
> attach content of output window here when running project fails)?
> 
> Are you able to create and build Cordova project from command line, without
> any assistance of NetBeans? See [1] for details, the list of commands is:
> 
>     $ cordova create hello com.example.hello "HelloWorld"
>     $ cd hello
>     $ cordova platform add ios
>     $ cordova build
> 
> [1]
> http://cordova.apache.org/docs/en/3.4.0/guide_platforms_ios_index.md.
> html#iOS%20Platform%20Guide
Comment 7 Jan Becicka 2014-04-11 08:56:29 UTC
> i solved it by running a "xcode-select" command and pointed my xcode to
> the right directory.
Maybe try to restart netbeans after you fixed xcode-select.

This is not P1. I believe this can be fixed on your machine.
Comment 8 Jan Becicka 2014-07-04 12:01:01 UTC
Does it work after restart?
Comment 9 Jan Becicka 2014-07-08 09:06:26 UTC
please reopen if xcode-select and restart did not help