IPhone SDK Beta 2 Interface Builder Add a UIViewController

Hi,
I am trying the new SDK (beta 2). I didn't try the beta 1 before, because of the lack of IB. However, I am having a problem when trying to code a simple Hello World with a button, with a classic MVC design.
If I use a UIViewController as a view controller, it compiles fine, but when I hit the button, it crashed. If I code it, or if I subclass the UIView and use it as a view controller, it works.
Is there any difference of coding compared to a "classic" cocoa app ?
I hope everything is clear.
Thanks for your help.
Have a great day.

scottjg wrote:
I've written a tutorial on how to setup a basic Hello World MVC app at: http://ihatetheiphonesdk.blogspot.com
hope it helps!
thanks. That helped me!
A couple of issues though:
1. I could not "*right click*" and bring up the outlet popups. I had to control-click to do that.
2. the steps for connecting up outlets for viewController and window did not exist already for me as selectable outlets
"-Connect our App Delegate's viewController outlet to our view controller, and the window outlet to our window:"
I added them manually to the app delegate and then ran the connections. Then, I had to add
+" IBOutlet UIWindow *window;+
+IBOutlet UIViewController *viewController;"+
to my HelloWorldAppDelegate.h file (along with any other code that I compared to your files)

Similar Messages

  • Install iphone simulator and interface builder

    I have purchase new mac book pro . I got xcode in media but how can i install iphone simulator and interface builder..
    some body can give me link for that.....
    thanks in advance..

    Sorry, false alarm...10.5.3 failed to install properly prior to updating to beta 6 and as a result the SDK itself didn't install.

  • IPhone SDK (Beta 5) - AudioQueue Problem playing MP3

    Dear community,
    i have a problem using the iPhone SDK (Beta 5). I want to playback a simple MP3-file. So i checked a lot of examples, read documentation and found a least the "AudioQueueTest" example. This is an simple example which is able to play MP3, WAV, ... from the command line. I ported the example to a simple application on the iPhone. Now the problem:
    If i playback a WAV file in the iPhone simulator, everything works fine. If i want to playback an MP3 file, it doesn't work and i don't know why. I stepped through the debugger and found out that the application freezes at the command "AudioQueueNewOutput".
    Do you have the same problem? What i am doing wrong? Is it no possible to create a background thread playing back a local MP3 file?
    Thank you!

    Did you get PCM recording on actual iPhone hardware? With Beta5, my PCM recording works fine in the simulator, but on the hardware, all the buffers I receive contain only 4 bytes of audio data!
    Here's my source code - if anyone can spot anything wrong, I'd be enormously grateful!
    #import "AudioAppDelegate.h"
    #import "AudioViewController.h"
    #import "AudioToolbox/AudioQueue.h"
    #define BUFFER_CT 4
    #define BUFFER_BYTES 8192
    AudioQueueRef audioInQueue;
    static void AudioInCallback(void* aqData,AudioQueueRef aq,AudioQueueBufferRef buffer,const AudioTimeStamp* startTime,UInt32 numPackets,const AudioStreamPacketDescription* desc)
    OSStatus result;
    printf("received %d bytes\n",buffer->mAudioDataByteSize);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    if(result)
    printf("AudioQueueEnqueueBuffer returned %d\n",result);
    static void StartAudio(void)
    OSStatus result;
    AudioStreamBasicDescription format;
    // 11KHz, 16-bit stereo
    memset(&format,0,sizeof(format));
    format.mSampleRate=11025;
    format.mFormatFlags=kLinearPCMFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
    format.mFormatID=kAudioFormatLinearPCM;
    format.mBytesPerPacket=BUFFER_BYTES;
    format.mBytesPerFrame=4;
    format.mFramesPerPacket=format.mBytesPerPacket / format.mBytesPerFrame;
    format.mChannelsPerFrame=2;
    format.mBitsPerChannel=16;
    result=AudioQueueNewInput(&format,AudioInCallback,NULL,CFRunLoopGetCurrent(),kC FRunLoopCommonModes,0,&audioInQueue);
    printf("AudioQueueNewInput result was %d\n",result);
    for(int i=0;i<BUFFER_CT;i++)
    AudioQueueBufferRef buffer;
    result=AudioQueueAllocateBuffer(audioInQueue,format.mBytesPerPacket,&buffer);
    printf("AudioQueueAllocateBuffer result was %d\n",result);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    printf("AudioQueueEnqueueBuffer to in result was %d\n",result);
    Float32 gain=1.0;
    AudioQueueSetParameter(audioInQueue,kAudioQueueParam_Volume,gain);
    result=AudioQueueStart(audioInQueue,NULL);
    printf("AudioQueueStart result was %d\n",result);
    }

  • IPhone SDK Beta 4 - How to send emails with attachments?

    Hello everyone!
    This is my first post Please be so kind to point me in the right direction.
    Using the official iPhone SDK Beta 4, I am trying to show the compose email screen not only with a subject and body fields, but also with an attached PDF file that I generated. I know that many apps available in the Installer.app can do that, but can the SDK do that as well?
    Generating a mailto URL doesn't seem to be the answer since the RFC 2368 doesn't support attachments as far as I understand. All my attempts to hard-code a mailto URL that could trick the Mail application into composing a message with an attachment have failed...
    Could you give me a hint or maybe copy paste some code to help me with attaching files to emails?
    Thank you so much in advance,
    Eugene

    I tried the following :
    NSError *error;
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"export.csv"];
    if ([records writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error] == NO) {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Export error" message:@"An error occured while writing the file."
    delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
    [alert show];
    [alert release];
    static NSString *email = @"[email protected]";
    NSString *outMailtoPath = [NSString stringWithFormat:@"mailto:%@?subject=Review&body=%@&attachment=%@", email, @"test", path, nil];
    NSURL *url = [NSURL URLWithString: [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)outMailtoPath,NULL,NULL,kCFStringEncodingUTF8) autorelease]];
    [[UIApplication sharedApplication] openURL:url]

  • Interface Builder not starting (iPhone SDK beta 6)

    Hi,
    I have upgraded my OS to 10.5.3, uninstalled SDK beta 5 and installed SDK beta 6. Since then I cannot start Interface Builder (the icon bounces 3 or 4 times and the application hangs). I tried to reinstall it again and nothing changed.
    Is that a known problem with beta 6? I have a friend who does not experience this problem. Any workaround?
    Thanks and best,
    Rodrigo

    How can it be possible? you invest some money believeng you will start something great and develop allied with the biggest intrepeneur of the world,and... boom. what you see.... isnt really what u get. Why this beta 6/7 Interface Builder crashs when u scroll around too see some v2.0 aspects of the i-phone? just some secret aspects or a little glitch on the final build ? lets see if we can have a taste for it... i was really anxious...

  • Trying to create first iPhone app, use Interface Builder or Xcode first?

    I'm trying to create my first iPhone App, do I start with Interface Builder or Xcode first? And how do I link the two together?

    It's not really that simple -- you'll be working with both. Interface Builder is used to design the GUI (graphical user interface, which consists of the windows and buttons and text fields and so forth, the parts of the application that your user interacts with). Xcode, on the other hand, is used to write the code that tells that GUI what it's supposed to do, and how to do it. So, to answer your question as best I can -- generally, I would imagine you would want to start by creating the basic form of your GUI in Interface Builder and then start coding where appropriate in Xcode, then you'll move back and forth between the two (Xcode and Interface Builder) as needed.
    If you're new to programming and want to start with iPhone apps, I recommend picking up a book on the topic (Apress publishing has a book called "Beginning iPhone 3 Development: Exploring the iPhone SDK" that is a good one, and don't forget to take advantage of Apple's iOS Dev Center, which has lots of good documentation on most any topic that will be helpful in supplementing the information in the book you buy -- click [here|http://developer.apple.com/iphone/index.action] to go there).
    Keep in mind, however, that trying to learn to program iPhone apps will be difficult (to say the least) if you don't already know Objective-C, and the Apress book I recommended above will not be easy to follow without understanding Objective-C first. Objective-C an object-oriented extension of C, and it is the programming language that is used to develop iOS apps (apps for the iPhone, iPod touch, or iPad). I would definitely recommend learning Objective-C on the Mac before jumping in to iPhone development in specific. Apress has another book called "Learn Objective-C on the Mac" that I would recommend for this.
    Furthermore, since Objective-C is an extension of C, you won't have an easy time learning it without a prior understanding of the C programming language. Again, Apress has a book for this, called "Learn C on the Mac."
    Put simply, learning to program for the iPhone is not something that comes overnight -- it's a step-by-step process that takes patience, and you have to be willing to go through these steps if you want to learn to program properly for the iPhone.
    Step 1 -- learn the C programming language
    Step 2 -- learn the Objective-C programming language
    Step 3 -- apply your knowledge to developing for iOS (iPhone's operating system) with the Cocoa Touch framework
    Anyways, that's just my advice -- I definitely recommend taking the time to do it right and not jumping straight into the deep end, but in the end only you know what works best for you. Also, like I said, I definitely think investing in a book on the subject is worth the time and money, so let me know if you want any other recommendations for books beyond the ones listed above.
    Hope this was helpful to you, and best of luck with your journey toward programming for iOS.

  • [iPhone SDK beta 7] screen capture error?

    As of beta 7 of the SDK, I get the following error when I try to capture a screenshot of my device via Xcode: "Could not communicate with the device, connection failed".
    Anyone else encounter this? Or is it working for you?
    Thanks.
    Message was edited by: Abra Dabra

    Me, too. Xcode 3.1. I am using the old-fashioned screen capture technique (holding power while pressing home), but it's not nearly as nice and the fact I can't do the other worries me a bit.
    Has anyone been able to do this since iPhone 2.1 came out?

  • IPhone SDK beta 4: error running app on device

    My app ran fine on my iPhone up until beta 4. I've fixed in in accordance with the changes to the SDK, and it runs perfectly on the simulator. I've also followed the directions in the Program Portal to use code signing for the app.
    When I try to compile it for the device, I get the following errors:
    cc1obj: error: /var/folders/pA/pAvrzjzKGQe5O6saRJWAXE+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iCrosswordPrefix-ayguzoobuyunjzbvsayctaqnkcfp/iCrosswordPrefix.pch: No such file or directory
    cc1obj: error: one or more PCH files were found, but they were invalid
    cc1obj: error: use -Winvalid-pch for more information
    I get about 7 copies of those errors, once per header file in my app.
    Does anyone know what this means, or how to fix it?
    Thanks,
    Eliza

    Sorry, I'm an idiot; I didn't clean my targets before compiling. After cleaning targets, it installed and ran without any trouble.
    Message was edited by: Eliza Block

  • IPhone SDK Beta and Unix Tools

    Does anyone know how to compile Unix tools for the iPhone with the SDK? All I seem to be able to find is, "install the toolchain". That doesn't help.
    Specifically, I'd like to compile ettercap-ng. I know ettercap has ARM sources and even an ARM .deb in the apt-get repo (for debian). Given all that, it shouldn't be hard to do.
    I've already got some dev tools on my actual iPhone, and I can use a terminal emulator to issue the compile and make commands.
    I'm trying to compile ettercap-NG 0.7.3, and every time I do, (cd /{ettercap source here} && ./configure) I get:
    checking whether make sets $(MAKE)... (cached) yes
    checking how to run the C preprocessor... /lib/cpp
    configure: error: C preprocessor "/lib/cpp" fails sanity check
    See `config.log' for more details.
    Seeing as that's as far as I seem to be able to get on the actual handset, does anyone know how to use the SDK on a MacBook (Leopard 10.5.3 so on and so forth) to do it, and then transfer it over?

    Mark, You have to be a registered iPhone developer to have the beta level firmware that allows direct access to the iPhone via the SDK. As far as accessing the BSD file structures the only way AFAIK thats currently possible is to hack the phone. And of course we cannot discuss that on this forum....
    Try over here: http://www.appstoredeveloper.com/forum/index.php?sid=fdd5a5f29c264bd57440ba989ee 4b054
    or here: http://www.modmyifone.com/forums/iphone-ipod-touch-sdk-development-discussion/

  • [iPhone SDK Beta 6] Simulator only can't find Frameworks

    I'm scratching my head on this one. I can load an example project and it runs in the simulator, no problem. My own project, however gives me this:
    warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    and something similar for every other linked framework. Eventually, this leads to nothing working and the app quitting out. Works fine on the device, and again, it works with the example projects, so the files aren't actually missing or misplaced.
    Instead it seems like something in my build settings or a similar problem. The rub is that I've gone through every build setting and parameter of a working example project line by line to make sure they match, but my project still won't compile in the simulator.
    The only caveat is that I'm not using a .nib or .xib file as all the examples are transitioning to now. I don't see how that's relevant in the smallest way, however.
    Can anyone with more experience or knowledge about XCode projects give me some insight to what I might be missing? It's driving me a little insane.

    Well, I really don't know what the problem was specifically, but I narrowed it down to drawing the render buffer from OpenGL. It seems that, only on the simulator, if I do this too quickly after the window is created and all that it causes the problem.
    The console results were weird talking about missing frameworks which seems completely unrelated to what problems were happening.
    So... no help to anyone else I guess, but I completely rebuilt the project restructured my program like the demos with a nib and everything and it still turns out it had nothing to do with that. I was able to fix my original with one line commented out. 2 days for one line. weeee.
    Message was edited by: aaronsullivan

  • Interface Builder encountered an error communicating with the iPhone Simulator

    Hi,
    I downloaded the latest iOS SDK and tried simple helloworld program. Once I try to build it in the xcode, it shows the following 2 errors. I tried to re-install the SDK several times, and it doesn't work. 
    CompileXIB MainWindow.xib
    cd /Users/qingzhao/Desktop/ch1/HelloWorld
    setenv IBCMINIMUM_COMPATIBILITYVERSION 3.2
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/qingzhao/Desktop/ch1/HelloWorld/build/Debug-iphonesimulator/HelloWorld.a pp/MainWindow.nib /Users/qingzhao/Desktop/ch1/HelloWorld/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2 .sdk
    2010-09-22 13:07:18.333 ibtool[1155:607] Assertion Failure: [toolTask isRunning]
    2010-09-22 13:07:18.337 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.337 ibtool[1155:607] Line: 140
    2010-09-22 13:07:18.519 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b7dcc IBAttachToCocoaTouchTool + 1669
    1 IBCocoaTouchPlugin 0x00000001039b5e9f IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 147
    2 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    3 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    4 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    5 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    6 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    7 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    8 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    9 ibtool 0x000000010000829f
    10 ibtool 0x0000000100006e0c
    11 ibtool 0x0000000100003161
    12 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.519 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    2010-09-22 13:07:18.520 ibtool[1155:607] Assertion Failure: NO
    2010-09-22 13:07:18.520 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.520 ibtool[1155:607] Line: 351
    2010-09-22 13:07:18.521 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b5f62 IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 342
    1 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    2 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    3 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    4 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    5 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    6 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    7 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    8 ibtool 0x000000010000829f
    9 ibtool 0x0000000100006e0c
    10 ibtool 0x0000000100003161
    11 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.521 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    What can I do  ? Thank you very much!!!

    I found this on stack overflow.com and thought it would apply to this article discussion for some users even though I don't understand how to revert the version (through git?)
    I think this is a compatibility issue. I think the .xib has moved to Xcode 4 (as shown by the line setenv IBC_MINIMUM_COMPATIBILITY_VERSION 4.2) which Xcode 3.2's version of ibtooldoes not understand.
    I think you need to revert to a version of the .xib prior to the update to Xcode 4.""

  • Interface Builder encountered an error communicating with the iPhone Simula

    Hi,
    I downloaded the latest iOS SDK and tried simple helloworld program. Once I try to build it in the xcode, it shows the following 2 errors. I tried to re-install the SDK several times, and it doesn't work.
    CompileXIB MainWindow.xib
    cd /Users/qingzhao/Desktop/ch1/HelloWorld
    setenv IBCMINIMUM_COMPATIBILITYVERSION 3.2
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/qingzhao/Desktop/ch1/HelloWorld/build/Debug-iphonesimulator/HelloWorld.a pp/MainWindow.nib /Users/qingzhao/Desktop/ch1/HelloWorld/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2 .sdk
    2010-09-22 13:07:18.333 ibtool[1155:607] Assertion Failure: [toolTask isRunning]
    2010-09-22 13:07:18.337 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.337 ibtool[1155:607] Line: 140
    2010-09-22 13:07:18.519 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b7dcc IBAttachToCocoaTouchTool + 1669
    1 IBCocoaTouchPlugin 0x00000001039b5e9f IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 147
    2 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    3 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    4 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    5 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    6 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    7 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    8 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    9 ibtool 0x000000010000829f
    10 ibtool 0x0000000100006e0c
    11 ibtool 0x0000000100003161
    12 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.519 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    2010-09-22 13:07:18.520 ibtool[1155:607] Assertion Failure: NO
    2010-09-22 13:07:18.520 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.520 ibtool[1155:607] Line: 351
    2010-09-22 13:07:18.521 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b5f62 IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 342
    1 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    2 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    3 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    4 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    5 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    6 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    7 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    8 ibtool 0x000000010000829f
    9 ibtool 0x0000000100006e0c
    10 ibtool 0x0000000100003161
    11 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.521 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception infonull)
    /* com.apple.ibtool.errors */
    /Users/qingzhao/Desktop/ch1/HelloWorld/MainWindow.xib: error: ibtool failed with exception: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception infonull)

    I'm using 10.6.4 and having the same issue. Reinstalled the newest SDK a few times (Xcode 3.2.4 with 4.1 of the iOS SDK). I can't build anything to run on the iPhone Simulator, but building regular Mac apps works fine. Here's what it tells me when I try to build and run:
    CompileXIB MainWindow.xib
    cd /Users/myusername/Development/iTennis
    setenv IBCMINIMUM_COMPATIBILITYVERSION 3.2
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/myusername/Development/iTennis/build/Debug-iphonesimulator/iTennis.app/M ainWindow.nib /Users/myusername/Development/iTennis/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2 .sdk
    2010-10-26 17:07:21.838 ibtool[1428:607] Assertion Failure: [toolTask isRunning]
    2010-10-26 17:07:21.934 ibtool[1428:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-10-26 17:07:21.934 ibtool[1428:607] Line: 140
    2010-10-26 17:07:22.016 ibtool[1428:607] Backtrace:
    0 IBCocoaTouchPlugin 0x000000010383ddcc IBAttachToCocoaTouchTool + 1669
    1 IBCocoaTouchPlugin 0x000000010383be9f IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext + 147
    2 IBCocoaTouchPlugin 0x00000001038b3963 IBReleaseIsWildcat + 1791
    3 IBCocoaTouchPlugin 0x00000001038b3538 IBReleaseIsWildcat + 724
    4 IBCocoaTouchPlugin 0x00000001038b357b IBReleaseIsWildcat + 791
    5 IBCocoaTouchPlugin 0x00000001038389f9 IBReplaceClassNamePrefixWith + 1588
    6 IBCocoaTouchPlugin 0x000000010383c82e IBBuildMarshalledDescriptionOfDocument + 2093
    7 IBCocoaTouchPlugin 0x0000000103836515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    8 IBCocoaTouchPlugin 0x0000000103831cad IBUISegmentConfiguration + 2784
    9 ibtool 0x000000010000829f
    10 ibtool 0x0000000100006e0c
    11 ibtool 0x0000000100003161
    12 ibtool 0x0000000100001dbc
    2010-10-26 17:07:22.017 ibtool[1428:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1431) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    2010-10-26 17:07:22.018 ibtool[1428:607] Assertion Failure: NO
    2010-10-26 17:07:22.018 ibtool[1428:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-10-26 17:07:22.018 ibtool[1428:607] Line: 351
    2010-10-26 17:07:22.019 ibtool[1428:607] Backtrace:
    0 IBCocoaTouchPlugin 0x000000010383bf62 IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext + 342
    1 IBCocoaTouchPlugin 0x00000001038b3963 IBReleaseIsWildcat + 1791
    2 IBCocoaTouchPlugin 0x00000001038b3538 IBReleaseIsWildcat + 724
    3 IBCocoaTouchPlugin 0x00000001038b357b IBReleaseIsWildcat + 791
    4 IBCocoaTouchPlugin 0x00000001038389f9 IBReplaceClassNamePrefixWith + 1588
    5 IBCocoaTouchPlugin 0x000000010383c82e IBBuildMarshalledDescriptionOfDocument + 2093
    6 IBCocoaTouchPlugin 0x0000000103836515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    7 IBCocoaTouchPlugin 0x0000000103831cad IBUISegmentConfiguration + 2784
    8 ibtool 0x000000010000829f
    9 ibtool 0x0000000100006e0c
    10 ibtool 0x0000000100003161
    11 ibtool 0x0000000100001dbc
    2010-10-26 17:07:22.020 ibtool[1428:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1431) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception info:(null)
    /* com.apple.ibtool.errors */
    /Users/myusername/Development/iTennis/MainWindow.xib: error: ibtool failed with exception: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1431) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception info:(null)

  • IPhone SDK with iPod Touch 2G problem

    I installed the SDK last night but when I went to plug in my iPod Touch 2G, I got the error message: 'Unable to locate a suitable developer disk image. Please re-install the SDK'
    I have reinstalled the SDK many times but still get the same error message. Any help appreciated.
    Thanks

    {quote}He's talking about the iPod Touch, not a regular iPod{quote}
    Yep, I know. Do a Google search for "Unable to locate a suitable developer disk image". Found this on the comments of [this blog post|http://www.tbradford.org/2008/03/iphone-sdk-beta-2-possible-ppc-fix.html]:
    {quote}
    If anyone else runs into the "Unable to locate a suitable developer disk image." problem, there's a package called "DeveloperDiskImage" in the iPhone SDK that needs to be installed.
    As of 2.1, these are the extra packages that you need to install manually:
    iPhoneSDKHeadersAndLibs
    iPhoneSimulatorPlatform
    iPhoneHostSideTools
    iPhoneDocumentation
    DeveloperDiskImage
    {quote}
    Another [blog post|http://khakionion.blogspot.com/2008/09/iphone-sdk-21-doesnt-include-ipod-t ouch.html#links] says:
    {quote}
    The problem is that the huuuuuge iPhone SDK 2.1 installer doesn't come with the iPod touch 2.1 firmware image. Suck. Fear not, though: All you have to do is force iTunes to do a firmware restore, which will download the appropriate image. On next launch, Xcode will find it and everything will work great.
    {quote}

  • SDK Beta 7 - Interface Builder Keeps Crashing

    I am running 10.5.3 on a MBP. I was previously running Beta 4 with no problems.
    After installing SDK Beta 7 I can no longer use Interface Builder. As soon as I scroll the library scrollbar and reach the datepicker object the IB application beachballs indefinitely. This also happens if I double-click a .xib file in Xcode - IB just hangs.
    I have repaired permissions, removed the dev-tools and re-installed them and rebooted several times but the problem persists.
    Is anyone else experiencing this problem? How can I fix it?
    Thanks,

    lots of people with similar problem --- http://discussions.apple.com/thread.jspa?threadID=1538812&tstart=0
    any hints?

  • 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.

Maybe you are looking for

  • Problems installing Photoshop CS2 on iMac

    I have my brand new iMac 20" Intel Core Duo, and I have recently purchased Photoshop CS2 and I can not get it to install. I saw in some places about the SU 2006-003 patch, but I have not installed that. I also saw about VC2 in the startup items, but

  • How do i tell if my iphone is unlocked for the US?

    hi there my husband has one of the old original Iphones that was purchased in the US back in 2007, it was brought into australia before they were available here and it was patched somehow so that he could use it here. he no longer uses it as we both

  • In Design to quit unexpectedly

    Hello. In Design quits each time a warning message appears, for example when I suppress pages, or when I try to export as pdf. It's been so since I reinstalled Creative suite CS5.5 on a new Mac yesterday, with OS X Lion. Thank you for your help.

  • COPA Realignment in R/3 -do i need to Re-initialize the Delta Process in BI

    Hi frnds, Im facing an issue related COPA realignment, 1.Once the COPA realignment is done in R/3, Do i need to Re-initialize the Delta Process in BI? Edited by: MohanDP on May 4, 2011 8:37 AM

  • Why does Iphone 4s not charge on lock screen

    4s will not charge when it goes to lock screen. it will when i keep the phone awake but as soon as it goes to the lock screen it won't.