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: Joe Armstrong <email@hidden>
- Date: Thu, 19 Jul 2012 15:01:04 +0200
On Thu, Jul 19, 2012 at 2:28 PM, Felix Franz
<email@hidden> wrote:
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 …).
You're right it was in:
/Users/joe/Library/Developer/Xcode/DerivedData/test1-bbkesmgvqbplgueypoubvywbbibw/Build/Products/Debug/test1
No wonder I couldn't find it - next question
How can I get it to be built in a sensible place, like the current working directory of
the project.
The build-settings target tab say this should be built in /usr/local/bin
>
> 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
No quite:
clang -framework Foundation main.m -o main
main.m:14:5: error: unexpected '@' in program
@autoreleasepool {
^
1 error generated.
This xcode thing is a total nightmare - some kind of advanced video game
with ten quadzillion options for everything
Hope this helps,
Yes - I now know where the executable is
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