Build error (iPhone SDK)

Hi, I just started reading the book Programming in Objective-C 2.0 by Kochan and I'm already stuck at the beginning.
I can't seem to build anything without getting the same error. Even de "Hello world" templates you start out with don't work. I've tried several frameworks and even reinstalled the iPhone SDK but it didn't work.
This is the error I get:
Building target “prog1” of project “prog1” with configuration “Debug”
Checking Dependencies
Ld "/Users/dogafincan/Programma's/prog1/build/Debug/prog1" normal i386
cd "/Users/dogafincan/Programma's/prog1"
setenv MACOSXDEPLOYMENTTARGET 10.5
/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/dogafincan/Programma's/prog1/build/Debug -F/Users/dogafincan/Programma's/prog1/build/Debug -filelist /Users/dogafincan/Programma's/prog1/build/prog1.build/Debug/prog1.build/Objects -normal/i386/prog1.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -o /Users/dogafincan/Programma's/prog1/build/Debug/prog1
ld: file not found: /Users/dogafincan/Programmas/prog1/build/prog1.build/Debug/prog1.build/Objects- normal/i386/prog1.o
collect2: ld returned 1 exit status
------------------------------------------

newroz wrote:
/Developer/usr/bin/gcc-4.0 -arch i386
-isysroot /Developer/SDKs/MacOSX10.5.sdk
-L/Users/dogafincan/Programma's/prog1/build/Debug
-F/Users/dogafincan/Programma's/prog1/build/Debug
-filelist /Users/dogafincan/Programma's/prog1/build/prog1.build/Debug/prog1.build/Objects -normal/i386/prog1.LinkFileList
-mmacosx-version-min=10.5 -framework Foundation
-o /Users/dogafincan/Programma's/prog1/build/Debug/prog1
ld: file not found: /Users/dogafincan/Programmas/prog1/build/prog1.build/Debug/prog1.build/Objects- normal/i386/prog1.o
collect2: ld returned 1 exit status
For one, you are using one path with apostrophes (/Users/dogafincan/Programma's/) and somewhere else using a path (_ld: file not found: /Users/dogafincan/Programmas/_) that lacks them. Is that intended?
Try to keep folder names simple/brief, without punctuation to avoid these kinds of issues.
You might want to practice on a simpler structured basis, such as AS, first so you can make these kinds of mistakes and learn before jumping in the deep end of the pool.

Similar Messages

  • Application builder Error: Windows SDK function returned an error. (Error code -12) *** End Error Report

     try to create an installer in Labview 8.6.  The build fail and I got this message.
    CDK_CreateNewWizard_Invoke.vi.ProxyCaller >> CDK_CreateNewWizard_Invoke.vi >> CDK_InstallerConfiguration_Editor.vi 
    >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi
    Loading product deployment information
    Loading product deployment information
    Loading product deployment information
    Loading product deployment information
    Adding files to installer
    Done adding files
    Preparing to build deployment
    Copying products from distributions
    Copying distribution 'NI LabVIEW 8.6.1 Datalogging and Supervisory Control Module' from: 
    D:\software\application\LabView\NI.LABVIEW\NI-Labview 8.6.1 DSC Module\ to: C:\Documents and Settings\Lidaoling\桌面
    \Builds\generate waveform\My Installer\
    Building deployment
    Copying setup files
    Setting merged database information
    Setting product information
    Setting developer part information
    Starting final build
    Validating...
    Copying files...
    Updating files...
    Creating merged database...
    *** Error: Windows SDK function returned an error. (Error code -12)
    *** End Error Report
    Done building deployment 

    Solution

  • Help!:  Build error on SDK 3.0

    Hi,
    I get the following error while building on SDK 3.0. The project includes Frameworks - CoreFoundation, Foundation, MessageUI and UIKit; but the MessageUI is in 'red' color. Any idea?
    Thanks - Sam.
    cd "/Users/sam/myApp"
    setenv MACOSXDEPLOYMENTTARGET 10.5
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk "-L/Users/sam/myApp/build/Debug-iphonesimulator" "-F/Users/sam/myApp/build/Debug-iphonesimulator" -filelist "/Users/sam/myApp/build/myApp.build/Debug-iphonesimulator/myApp.build/Objects-normal/i386/myApp.LinkFileList" -mmacosx-version-min=10.5 -framework CoreGraphics -framework CoreFoundation -framework Foundation -framework MessageUI -framework UIKit -o "/Users/sam/myApp/build/Debug-iphonesimulator/myApp.app/iNotate"
    Undefined symbols:
    ".objcclass_nameCameraViewController", referenced from:
    literal-pointer@_OBJC@__clsrefs@CameraViewController in myAppAppDelegate.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    ".objcclass_nameCameraViewController", referenced from:
    literal-pointer@_OBJC@__clsrefs@CameraViewController in myAppAppDelegate.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    Build failed (1 error)

    Hi,
    I checked the build/.../.../i386 directories (for simulator and device) - and the .o file is not present.
    After 'Clean All', the all .o's are removed. After 'Build', all but that .o files are built. Hmmm.
    The project includes the .h and the .m file for the CameraViewController class. It is the newly-added class to the project.
    What would be the reason for this file to be ignored during the build?
    Sam

  • [iPhone SDK] Preference view design/implementation

    Hi, everyone!
    I want to add preference view in my application (build on iPhone SDK 3.0), but don't want to use preference bundle for several reasons.
    And I can't find any suitable UI component to do it (maybe it's UITableView with custom views (with rounded corners)?
    Any thoughts on it?
    Thanks for attention.
    Have a good day

    The rounded corners you see in the system Settings app are produced by a UITableView created with UITableViewStyleGrouped. Each group of cells in a rounded frame is a section of the table view, so you can duplicate a typical Settings page by setting the number of sections and the number of rows per section.
    It looks like you could build most of the cells in Settings by simply adding your own images and/or controls to standard UITableViewCell instances.
    Several of the pages in the UICatalog sample app provide good examples of how to code Grouped style table views with cells similar to some of the Settings cells. That sample code is for 3.0, btw, but almost all of the code is appropriate for 2.x as well.
    If you need help with table views and table view cells in general, see the Table View Programming Guide for iPhone OS.
    For more basic instruction, see Chapter 8 of +Beginning iPhone Development: Exploring the iPhone SDK+ by Mark and LaMarche.

  • Iphone SDK 3.0 UIKit Error

    Hi I am using iphonesdk_3.0_beta5 SDK. When I try to compile my code using simulator 3.0 option I get following error. The code compiles for rest all simulator option ie 2.0, 2.1, 2.2, 2.2.1 While compiling my code I get following error
    from /Users/videomac/manish/EXPLab/2009-05-27-11-20 myAppLL_2/myAppPrefix.pch:7:
    In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0 .sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:30,
    /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0. sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollatio n.h:11: error: syntax error before 'AT_NAME' token
    /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0. sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollatio n.h:19: error: syntax error before '}' token
    /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0. sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollatio n.h:21: fatal error: method definition not in @implementation context
    The errors are located in file UILocalizedIndexedCollation.h which is SDK file.I am using UIKit Framework of SDK 3.0. Can anyone tell me what should I do to remove this error?
    The errors are located in file UILocalizedIndexedCollation.h which is SDK file.I am using UIKit Framework of SDK 3.0. Can anyone tell me what should I do to remove this error?

    I've traced this problem to be the compiler version being used. From what I can tell, REDACTED requires GCC 4.2 while iPhone SDK 2.x only works with GCC 4.0.
    Here's a way to fix this.
    In your Target Info, select Build separator and look for the section Compiler Version. Then:
    1. Select the C/C++ Compiler Version
    2. Set the default to GCC 4.0
    3. At the bottom-left control, hit Add Build Setting Condition
    4. On the left, choose 'Device - iPhone OS 3.0'
    5. On the right, chose GCC 4.2
    6. Repeat steps 3 to 5, now with 'Simulator - iPhone OS 3.0' on step 4.

  • Problems building w/ Snow Leopard and iPhone SDK 3.0 Snow Leopard

    Suddenly having problems building and codesigning after upgrading to Snow Leopard and iPhone SDK 3.0 Snow Leopard.
    Profile set to Distribution, Device 2.2.1 Distribution, as has worked in the past.
    The build fails with this error:
    Command <com.apple.tools.product-pkg-utility> failed with exit code -1
    The below section is highlighted in Build Results.
    ProcessingProductPackaging /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey/entitlements.plist "/Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timer_harvey/build/iPhoneComprehension.build/Distribution-iphoneos/Kana Listening.build/iPhone_Comprehension.xcent"
    cd /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/u sr/bin:/bin:/usr/sbin:/sbin"
    <com.apple.tools.product-pkg-utility> /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey/entitlements.plist -entitlements -format xml -o "/Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timer_harvey/build/iPhoneComprehension.build/Distribution-iphoneos/Kana Listening.build/iPhone_Comprehension.xcent"
    Any ideas? This is really strange.
    The same error occurs when trying to build for Device - 3.0, and any other version it seems.
    This is especially frustrating as I'm simply trying to update an app that I released before I upgraded.
    I will love whoever helps me forever and ever.
    saikyo

    Found the new SDK on the CD. Now I am running XCode 3.2.
    I'm talking to myself now for the benefit of future readers.
    On the Dev Center I see the note:
    "Important: You will need to re-install the iPhone SDK for Snow Leopard if you plan on developing iPhone applications after upgrading your Mac to Snow Leopard and installing Xcode 3.2."
    So I'm going to download and install the iPhone SDK 3.0 (Snow Leopard) from the SDK downloads area on the Dev Center page. This seems weird to me as it's 3.0... but I'm running 3.2 now... I guess this will just update my 3.2?
    I also notice that when I run XCode 3.2 I don't have Simulator as an option anymore in my profiles.
    Going to go ahead with the update now and see how it goes.

  • IPhone SDK 2.0 - xcode fails to build new project

    I downloaded and installed the latest iPhone 2.0 SDK. I did not uninstall any previous tools (xcode/SDK). I assume the 2.0 SDK installation will perform the upgrade in a proper fashion (not requiring one to uninstall the previous SDK/xcode). I start up xcode. I check the version via the about menu. It states that the version of xcode is 'Version 3.1 (Beta)'. The project settings indicate that the Base SDK is Device - iPhone OS 2.0. I checked my system to ensure that my current filesystem has the correct SDK. It has the Macintosh HD->iPhoneOS.pltaform->Developer->SDK's->iPhoneOS2.0.sdk.
    OK, everything seems good up to this point. I create a new xcode application for the iPhone. I then go to compile the application and I get the following error:
    /Developer/iPhone Examples/Foo/Classes/FooAppDelegate.h:16: error: syntax error before 'UIToolbarController'
    Source code line : UIToolbarController *toolbarController;
    Yes I realize that the UIToolbarController API has been removed for SDK 2.0. However, how can one use xcode to build a starter application if it is generating code that references outdated API's???
    Am I doing something wrong? I have searched all the forums but have not come across this issue. Hence, I think something is wrong with my setup/install. If the solution is not to use UIToolbarController API, then why does the xcode still use it to build starter code projects? Also, if we can't use the API, what is it's replacement?
    thanks

    It created more errors, as there are a whole lot of other API's
    that have changed (UIViewController now doesn't resolve
    some of it's members, e.g. toolbarItem).
    Err... hello? Someone just told you what the names have changed to!
    Wow. I have about 1 months worth of work, that I am going to
    have to seriously think about throwing away because of all of
    these growing pains.
    Can't talk about the iPhone SDK specifically, but Xcode in general has great refactoring tools that will make the name changes, in all locations, in a split second for you. No, lets not get hysterical. It's not one month's work at all. It's not even five seconds work.
    I think the newer 2.0 release is causing more problems than solutions.
    That's the whole point. It's not a release. It's a beta. That's what happens with beta's. That's why you sign an NDA (non-disclosure agreement), stating that under no conditions will you discuss the SDK with anyone, and that you agree that things may change without prior notice or even break down completely.
    Basically shutting down all of my development efforts.
    Errrr.... hello again?

  • IPhone SDK CodeSign Error: Redux (latest OS X update is broken)

    This bug - http://discussions.apple.com/thread.jspa?threadID=1455699&start=0&tstart=0 - is back. My AdHoc project, which worked perfectly last week, has just stopped building, with this:
    "object file format invalid or unsuitable"
    As soon as I upgraded from 10.5.7 to 10.5.8, this bug appeared.
    However, this bug was officially fixed in 10.5.7 - so, I'm guessing here, Apple has accidentally re-created it.
    Unfortunately, I cannot add to the original post, because Apple has frozen the topic.
    So, here's a new topic to ask if anyone else is having this problem, and what they did about it - is it exactly the same as the old bug? or is it different in some way?
    I'm going to try some of the workarounds for the old bug - but hacking command line scripts isn't fun, and I'm worried I might break something even worse .

    iPhone Dev Center
    Downloads
    Read me before downloading
    If you have updated your device to iPhone OS 3.1.3 with iTunes, you must install iPhone SDK 3.1.3 in order to continue with your development.
    *iPhone SDK 3.1.3*
    iPhone SDK 3.1.3 includes the Xcode IDE, iPhone simulator, and a suite of additional tools for developing applications for iPhone and iPod touch.
    _Posted: February 2, 2010_
    Leopard Build: 9M2809a
    Snow Leopard Build: 10M2003a
    *Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.1.4
    iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
    *Snow Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.2.1
    iPhone SDK 3.1.3 with Xcode 3.2.1 Readme
    *Other Downloads*
    iPhone SDK Agreement
    iPhone Configuration Utility

  • Error -2048: Quicktime refuses to open Jobs iPhone SDK Presentation

    Hi,
    I have had this happen to me during the special iMac event last summer and currently with the iPhone SDK event. I get the error message:
    "Error -2048: Couldn't open the file m08770365506i_650ref.mov because it is not a file that Quicktime understands."
    I have tried using Firefox, Internet Explorer and Safari. Same problem. I tried reinstalling iTunes+Quicktime. I still get the error. Any ideas?
    Mike
    PS I have screenshots if that helps

    I was afraid of that.. :-(
    Yeah... well, I've tried to import the files to iTunes, both through drag'n drop and by Files/Add to Library but nothing, zip, zero happens. Not even an error message appears. I have no problem with adding mpeg4 files but I get no reaction when trying to add the wma's...

  • IPhone iPhone SDK (build 9M2199a, beta 8) Security.h Security-Framework

    Hi!
    I've downloaded and installed the iPhone SDK (build 9M2199a, beta 8).
    Now, i'm trying to write code to use the Keychain in iPhone but "SecItem.h" in "Security.h" (Security-Framework) is missing so the Attributes (kSecClass, ...) can't be found and the code doesn't compile.
    Where i can get it ?
    Thanks for help.
    Message was edited by: iPhoneProj

    I had the same issue. The security code seem to only work if you build for Device|Debug. You can't run the code in the simulator.

  • IPhone SDK build version

    Hello everyone. I'm fairly new to Mac programming and the Xcode environment so I hope one of you can answer my silly question: How can I tell which build version of the iPhone SDK I have installed?

    Hey jerberrs,
    Is there a way to tell at compile time what the SDK version is? I have both 2.0 and 2.1 installed and I am looking for a way to conditionally compile based on the version of the SDK.

  • Apparent Error in iPhone SDK template

    There appears to be an error in the "Utility Application" template in Xcode's iPhone SDK.
    The UIView subclasses that it creates, MainView and FlipsideView, contain this init function:
    - (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    // Initialization code
    return self;
    but since the MainView and FlipsideView nib files instantiate the view objects, this method is not called. It should be this method instead:
    - (id)initWithCoder:(NSCoder*)coder {
    if ((self = [super initWithCoder:coder])) {
    //something
    return self;

    Hi, have you checked this with a breakpoint? I thought since initWithFrame method is the designated initializer for the UIView class it's called within initWithCoder.

  • Launchd_core_logic.c error on iPhone SDK 3.1

    Hi,
    I am running release version of the app on the iPhone, it works fine. There is no error messages in the XCode debugger:
    Running…
    [Switching to thread 11779]
    [Switching to thread 11779]
    sharedlibrary apply-load-rules all
    (gdb) continue
    [Switching to thread 12291]
    [Switching to thread 11779]
    [Switching to thread 13059]
    Debugger stopped.
    Program exited with status value:0.
    However I see these messages in the console of iPhone when connect to it via Organizer:
    Wed Oct 7 15:37:01 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.blah.blah[0x830c]) Bug: launchdcorelogic.c:2649 (23909):10
    Wed Oct 7 15:37:01 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.blah.blah[0x830c]) Working around 5020256. Assuming the job crashed.
    Wed Oct 7 15:37:01 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.blah.blah[0x830c]) Job appears to have crashed: Segmentation fault
    Wed Oct 7 15:37:01 unknown com.apple.debugserver-43[6124] <Warning>: 1 [17ec/1603]: error: ::read ( 7, 0x28091c, 1024 ) => -1 err = Bad file descriptor (0x00000009)
    Wed Oct 7 15:37:01 unknown SpringBoard[25] <Warning>: Application 'blah' exited abnormally with signal 11: Segmentation fault
    There is no crash logs created, so I don't think it is a crash.
    What is it? Is it a problem, even though application works perfectly fine?
    Thanks

    I am also experiencing this problem.
    Our application used to work perfectly fine, then suddenly this situation appeared :/ And in our case, this is serious problem, because we save application state using archiveRootObject:toFile method of NSKeyedArchiver class in applicationWillTerminate, and due to this crash, our root object do not get saved so we can not restore application state!
    Of course, everything works perfectly on simulator...
    I tried installation new iPhone OS (had 3.0.1, now 3.1.2), also installed newer version of iPhone SDK with new Xcode - of course - did not help. Tried installing application from other computer, tried installing other application, which used to work - nothing - problem remains. Really fantastic...
    I wonder whether this problem with iPhone device or something else. As for now, I don't have possibility to check if this situation is present on other device.
    Any help will be greatly appreciated!

  • Troubleshooting iPhone SDK build 9M2199 beta 7 ...

    I successfully installed the iPhone SDK last night but seem to have a few problems: a) the DOC SET for the "Apple iPhone OS 2.0" does not seem to work, retried several times.
    b) when trying to follow the "Getting started" tutorial I noticed that the install did not install a "Cocoa Touch template" in the New Project.
    I did try to re-install the same thing again but still no luck.

    I am glad I am not the only one here! I kept on thinking the installation must have gone wrong somewhere.
    The probable new names I think are:
    Cocoa Touch OpenGL Application -> OpenGL ES Application
    Cocoa Touch Tab Bar -> Tab Bar Application
    Cocoa Touch Utility -> Utility Application
    The unclear ones:
    Cocoa Touch Application -> ?
    Cocoa Touch List -> ?
    ? -> Navigation-Based Application
    ? -> View-Based Application
    ? -> Window-Based Application
    Does anyone know when the tutorials are updated to what the SDK actually looks like?
    Message was edited by: BelAus

  • IPhone SDK 3.1.3 XCode 3.2.1 Snow Leopard update (lcrt1.10.6.o not found)

    Today I downloaded the iPhone SDK 3.1.3 XCode 3.2.1 Snow Leopard update.
    After installing it, I looked in the Project Info. In the Deployyment section, the "Mac OS X Deployment Target" is set to "Max OS X 10.5".
    Naturally, as fussy I am, I changed it to Mac OS X 10.6, which is what I want. After Building, it reports an ld error: i.e.
    ld: library not found for -lcrt1.10.6.o
    Why does this happen? Did others have the same experience?
    Is this normal or how to fix? (Other than the obvious step to go to look for the missing library and try to install it myself).

    iPhone Dev Center
    Downloads
    Read me before downloading
    If you have updated your device to iPhone OS 3.1.3 with iTunes, you must install iPhone SDK 3.1.3 in order to continue with your development.
    *iPhone SDK 3.1.3*
    iPhone SDK 3.1.3 includes the Xcode IDE, iPhone simulator, and a suite of additional tools for developing applications for iPhone and iPod touch.
    _Posted: February 2, 2010_
    Leopard Build: 9M2809a
    Snow Leopard Build: 10M2003a
    *Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.1.4
    iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
    *Snow Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.2.1
    iPhone SDK 3.1.3 with Xcode 3.2.1 Readme
    *Other Downloads*
    iPhone SDK Agreement
    iPhone Configuration Utility

Maybe you are looking for