Re: Cannot produce executable target for command line tool in xcode 4.3
Re: Cannot produce executable target for command line tool in xcode 4.3
- Subject: Re: Cannot produce executable target for command line tool in xcode 4.3
- From: Felix Franz <email@hidden>
- Date: Thu, 19 Jul 2012 14:28:55 +0200
On 19.07.2012, at 13:52, Joe Armstrong wrote:
> [SNIP]
> 3) Press the run button
>
> It says build succeed and runs correctly
>
> Now comes my problem - I want to run the program *outside*
> xcode from a terminal, bit no executable has been produced.
> Or if it has I can't find it.
you can locate the executable under the "Products" entry in the project tree (left pane, first inspector).
In the context-menu you can choose "Show in Finder". (for me this is build/Debug/test1 inside the project folder,
but maybe I changed some preferences …).
>
> The Targets->Build Settings -> Deployment tab
> says the installation directory is /usr/local/bin
> so I had expected an executable called test1 to be
> in the file /usr/local/bin/test1
sorry, can't help you here.
If you prefer the command line, you can also build using the xcodebuild-command (or use a normal Makefile).
To install the command-line tools inside Xcode: Preferences>Downloads>Components. After this
$ clang -framework Foundation main.m -o main
compiles your main.m
Hope this helps,
Felix
>
> /Joe
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden