It seems that the integration of interface builder has been improved in the third beta of the SDK : in page 8 of the related PDF, I suppose that fresh new Cocoa Touch Applications may include now a NIB file (.xib extension) ! No need to create, attach... anymore. "I suppose"... :roll: because in chapter 3 of the documentation is described the manual way to create and attach a NIB file to a project !
Yeah, it somehow seems like creating an Xcode project template with IB support would have been less work than creating that documentation and, at least for experienced Cocoa folks, would have been a lot more useful.
But overall, I have to say I'm impressed with Apple's documentation. They've always done a pretty good job, but the last couple years, the documentation has really become solid, and they've added a lot of good tutorials, conceptual documents, and other non-reference works. Sure beats the old days of thumbing through those gigantic Inside Macintosh volumes looking for what you need.
They seem to have changed something in the compiler or the iPhone Simulator. I had been playing around and working with their UIShowcase sample code because I was trying to implement a UIPicker (which isn't currently implemented in the interface builder) so I was looking at the example to try to figure out how to implement it in code. I even re-downloaded the sample code from the apple developer site and re compiled it, but the program crashes when it is run by the simulator. I then get a message asking if I want to send the error to apple. It worked fine yesterday with beta 2 so it seems like something was changed.
It seems that the integration of interface builder has been improved in the third beta of the SDK : in page 8 of the related PDF, I suppose that fresh new Cocoa Touch Applications may include now a NIB file (.xib extension) ! No need to create, attach... anymore. "I suppose"... :roll: because in chapter 3 of the documentation is described the manual way to create and attach a NIB file to a project !
I was right : a new Cocoa Touch Application contains a xib file. :P
Quote:
Originally Posted by jeff_lamarche
But overall, I have to say I'm impressed with Apple's documentation. They've always done a pretty good job, but the last couple years, the documentation has really become solid, and they've added a lot of good tutorials, conceptual documents, and other non-reference works. Sure beats the old days of thumbing through those gigantic Inside Macintosh volumes looking for what you need.
I really appreciate the Coding and Human Interface guidelines. I hope everybody will follow these documentations.
Quote:
Originally Posted by jonc
They seem to have changed something in the compiler or the iPhone Simulator. I had been playing around and working with their UIShowcase sample code because I was trying to implement a UIPicker (which isn't currently implemented in the interface builder) so I was looking at the example to try to figure out how to implement it in code. I even re-downloaded the sample code from the apple developer site and re compiled it, but the program crashes when it is run by the simulator. I then get a message asking if I want to send the error to apple. It worked fine yesterday with beta 2 so it seems like something was changed.
I compiled the UIShowCase sample code, it compiles well on the simulator. Be sure to choose the correct Base SDK in the Build section of the Project settings (Project menu).
The simulator still seems to crash right after UIShowcase launches. The default was set to the device and not to the simulator, but was doing the same thing still even after fixing that.
Did you clean and build after you changed the SDK? There are many compile-time directives based on SDK and platform, so you need to do a clean build after changing that.
If it still does it, open a bug report. I've already filed a few on problems with the documentation and with the sample code. Apple wants people to report problems with the bug reporter, just follow their guidelines and give them good info, otherwise they get cranky .
The simulator still seems to crash right after UIShowcase launches. The default was set to the device and not to the simulator, but was doing the same thing still even after fixing that.
Quote:
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit
Referenced from: /Users/joncarroll/Library/Application Support/iPhone Simulator/User/Applications/54174A14-B18C-45AC-B81A-D2DDEE72BF9D/UIShowcase.app/UIShowcase
Reason: image not found
It should not try to load UIKit.framework from this location...
UIKit.framework is located in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/...
...iPhoneSimulator2.0.sdk/System/Library/UIKit.framework
I can't tell you how to fix that.
Do you have this problem building other samples ?
I am able to build and run all the rest of their code samples (that I have tried with the new version, which is about 4) plus all of the code that I write.
The simulator loads up fine and UIShowcase comes up momentarily after the simulator starts. The list at the first screen doesn't have any items listed in it and the simulator seems to hang for a moment and then it crashes with that message. I am not that worried about having it run at this point, it is just sample code. It is a strange problem though.
I extracted the sample code to a new folder and built it again (which I would assume would give me a clean build) and it still did the same thing. I did just notice that it compiles with 38 warnings with this new SDK.
You might want to try re-downloading the sample project from Apple - they often will update projects that are still relevant, although I'm getting the sense that they're a little overwhelmed with the iPhone SDK, and I also wouldn't be surprised if some broken stuff is still broken; file a bug report so they know about it.
The simulator still seems to crash right after UIShowcase launches. The default was set to the device and not to the simulator, but was doing the same thing still even after fixing that.
I also had this problem, not using UIShowcase. This error would occur before the app even hit the appDidFinishLaunching(). The funny thing was that adding a breakpoint (Literally anywhere in my code) stopped the crash - It took me a few days to try it, but a simple 'clean' worked for me.