The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > MacCar

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-21-2005, 09:51 PM   #1
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,585
My Photos: (38)
Mac Developers -Help! Problem Building App in Xcode

I know this is probably the wrong place to ask a technical question about Xcode, but I'm going to take a shot at it.

I've been coding a front end app using applescript in Xcode. The "build and go" process has worked fine. I recently tried to build the app using the "deployable" build style and have run into problems getting it to build at all anymore. The build fails with the following information:

Building target “iView” with build style “Deployment” (optimization:level ‘size’, debug-symbolsn) — (1 error, 1 warning)
/usr/bin/gcc-3.3 -o /Users/tberry/Desktop/iView/Harmony.app/Contents/MacOS/Harmony "-L/Users/tberry/Desktop/iView" "-F/Users/tberry/Desktop/iView" -filelist /Users/tberry/Desktop/iView/iView.build/iView.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings"
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols: _NSApplicationMain

Build failed. (1 error, 1 warning)


Any ideas what this "undefined symbol" is? Any help is appreciated.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Sponsored Links
Old 04-22-2005, 01:13 AM   #2
Newbie
 
Join Date: Apr 2005
Posts: 10
My Photos: (0)
Undefined symbols means that the linker cannot find that function/external variable when it links/binds the application together.

NSApplication is the main class that all application is built upon.

I got the same message when I "deployed" my application for a couple of Quicktime functions and that was because I didn't include the Quicktime.frameworks (that shouldn't be the case for you).

I haven't tried the applescript approach in Xcode but the error message should be the same whichever language you use.

Try to clean all targets before you build, maybe that can solve your problem.
Ph75 is offline   Reply With Quote
Old 04-22-2005, 09:17 AM   #3
Low Bitrate
 
BenjaminS's Avatar
 
Join Date: Mar 2005
Posts: 101
My Photos: (0)
Just a shot in the dark, but an undefined _NSApplicationMain may mean your missing the Cocoa/Cocoa.h imports.

Just to reiterate what Ph75 said, you might be missing frameworks. Make sure that Cocoa.framework and AppKit.framework are both in you Frameworks folder in xcode.

Also try deleting the build directory in the project dir. That basically forces a clean build and might solve the problem.

Possibly your main.m file could have been corrupted some how. It happened to me once, coming out of a tarball my main.m file contained half my project code :P.

If you still can't get this to work, try asking a question on the apple mailing lists. They are always very helpful.

If you really still can't get it to work, wrap it up in a tarball and post if somewhere so we can take a look at it :P
__________________
BenjaminS
Powered by Imagination
http://www.ccarproject.net/
BenjaminS is offline   Reply With Quote
Old 04-22-2005, 10:30 AM   #4
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,585
My Photos: (38)
Wow! I appreciate the speedy replies. I've attached a screen capture of the Xcode window for a bit more info.

1. I tried "Clean all targets" but that didn't help.
2. I changed the build directory to a completely different location but no help.
3. I deleted the build directory before building but that didn't help.
4. According to Xcode, the Cocoa framework and Appkit framework are there and there's lots of headers.

[Edit:] One other potentially significant piece of information - I originally named this application "iView". I then decided to rename it "Harmony". I found a posting about how to change the app's name without having to reimport all the files into a new project. I changed the name of the app in the "Project --> Edit active target iView". I wonder if this didn't mess it up. You can see in the screenshot that the app generated is Harmony but the target is iView.

I have a feeling that my main.m got corrupted somehow. I'm not certain what it's supposed to look like, though.

If you wouldn't mind just taking a look at the screenshot and see if everything looks okay. If it does, I'll take this question to the Apple list serve. They've been mighty helpful with Applescript questions.
Attached Images
 
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video

Last edited by Bugbyte; 04-22-2005 at 10:35 AM.
Bugbyte is offline   Reply With Quote
Old 04-22-2005, 11:20 AM   #5
Low Bitrate
 
BenjaminS's Avatar
 
Join Date: Mar 2005
Posts: 101
My Photos: (0)
Well the main.m file looks correct for an apple script application, try adding this
Code:
#import <mach-o/dyld.h> #import <Cocoa/Cocoa.h> //add this line

__________________
BenjaminS
Powered by Imagination
http://www.ccarproject.net/
BenjaminS is offline   Reply With Quote
Old 04-22-2005, 12:49 PM   #6
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,585
My Photos: (38)
I did that, but it didn't help, but I've fixed my immediate problem. I just created a new project, named it the right name and imported the files from the damaged project.

It built and worked, so I'm okay.

Thanks for the suggestions, Ben and Ph.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 04-22-2005, 01:05 PM   #7
Low Bitrate
 
BenjaminS's Avatar
 
Join Date: Mar 2005
Posts: 101
My Photos: (0)
Yeah that was my next suggestion. You perhaps might want to send a bug report to apple about this. It never hurts to do so.
__________________
BenjaminS
Powered by Imagination
http://www.ccarproject.net/
BenjaminS is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alpine City Cruise Hell-Stopper RR Skins 170 02-22-2007 10:05 PM
Mac Mini and 8 inch Lilliput USB Problem..HELP! shreddie MacCar 7 04-18-2005 12:41 PM
External App Problem scott011422 Media Engine 0 03-08-2005 02:28 PM
The Mac OS (10.3/4) AS a carputer frontend... meatwad MacCar 67 02-28-2005 04:25 PM
Hot Rod Company to start incorporating Mac Minis stacheldraht MacCar 4 02-01-2005 12:25 PM


All times are GMT -5. The time now is 11:12 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics