Cannot produce executable target for command line tool in xcode 4.3
Cannot produce executable target for command line tool in xcode 4.3
- Subject: Cannot produce executable target for command line tool in xcode 4.3
- From: Joe Armstrong <email@hidden>
- Date: Thu, 19 Jul 2012 13:52:12 +0200
Hello,
I'm trying to learn how to use xcode, and I can't even get the
simplest thing to work. I'm running with a clean "out of the box" install.
The software in question is
Machine : MacBook Pro
OS version lion: 10.7.4
Xcode : 4.3.3
My problem is that I have a command line program that works *within* xcode
when I hit the run button, but does not create an executable that I can run
*outside* xcode.
I am totally flummexed. Here's what I did.
1) File -> New -> Project
selected "Command Line Tool"
name: test1
Type: foundation
Use automatic Reference Counting is ticked
2) This creates main.m
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
}
return 0;
}
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.
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
/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