Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-09-2008, 03:46 AM   #1 (permalink)
maol
Guest
 
Posts: n/a
Default Interface Builder integration in SDK beta 3

A new documentation has been offered to us :
https://developer.apple.com/iphone/l...section_1.html

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 !

The PDF seems "buggy" : see page 37
  Reply With Quote
Old 04-09-2008, 07:35 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
jeff_lamarche is an unknown quantity at this point
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default Re: Interface Builder integration in SDK beta 3

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.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 04-09-2008, 10:52 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2008
Location: Colorado
Posts: 312
jonc is an unknown quantity at this point
Send a message via AIM to jonc
Default Re: Interface Builder integration in SDK beta 3

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.
jonc is offline   Reply With Quote
Old 04-09-2008, 03:34 PM   #4 (permalink)
maol
Guest
 
Posts: n/a
Default Re: Interface Builder integration in SDK beta 3

Quote:
Originally Posted by maol
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).
  Reply With Quote
Old 04-10-2008, 12:14 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2008
Location: Colorado
Posts: 312
jonc is an unknown quantity at this point
Send a message via AIM to jonc
Default Re: Interface Builder integration in SDK beta 3

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:
Process: UIShowcase [2831]
Path: /Users/joncarroll/Library/Application Support/iPhone Simulator/User/Applications/54174A14-B18C-45AC-B81A-D2DDEE72BF9D/UIShowcase.app/UIShowcase
Identifier: UIShowcase
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [99]

Date/Time: 2008-04-10 12:12:21.847 -0500
OS Version: Mac OS X 10.5.2 (9C31)
Report Version: 6

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0

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
jonc is offline   Reply With Quote
Old 04-10-2008, 01:55 PM   #6 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
jeff_lamarche is an unknown quantity at this point
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default Re: Interface Builder integration in SDK beta 3

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 .

[url]https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/[/ur]
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 04-10-2008, 04:03 PM   #7 (permalink)
maol
Guest
 
Posts: n/a
Default Re: Interface Builder integration in SDK beta 3

Quote:
Originally Posted by jonc
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 ?

Have you tried cleaning as suggested by Jeff ?
  Reply With Quote
Old 04-11-2008, 10:28 AM   #8 (permalink)
Registered Member
 
Join Date: Apr 2008
Location: Colorado
Posts: 312
jonc is an unknown quantity at this point
Send a message via AIM to jonc
Default Re: Interface Builder integration in SDK beta 3

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.
jonc is offline   Reply With Quote
Old 04-11-2008, 11:47 AM   #9 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
jeff_lamarche is an unknown quantity at this point
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default Re: Interface Builder integration in SDK beta 3

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.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 06-15-2009, 07:30 AM   #10 (permalink)
Humbled Student
 
Dutch's Avatar
 
Join Date: Apr 2009
Location: Long Island, NY
Age: 32
Posts: 883
Dutch will become famous soon enough
Send a message via AIM to Dutch
Default

Quote:
Originally Posted by jonc View Post
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.

good luck
Dutch is offline   Reply With Quote
Old 07-08-2010, 07:48 PM   #11 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 138
exosyphen is on a distinguished road
Default

I have also ran into this issue.
This seems to be the solution:

Upgrade to iPhone SDK 3.0 Causing UIKit Problems - Stack Overflow
exosyphen is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusable View in Interface Builder jablair iPhone SDK Development 1 05-09-2012 06:13 PM
use Interface Builder to create a UITableViewCell martinn iPhone SDK Development 3 05-29-2009 03:30 AM
Navigation Controller and Interface builder superandrew iPhone SDK Development 2 07-07-2008 10:49 AM
placing ui components without using interface builder. satvik_85 iPhone SDK Development 1 06-18-2008 09:32 AM
Books for Xcode/Interface Builder 3.0 Chris Stewart iPhone SDK Development 3 04-07-2008 10:35 AM


» Advertisements
» Online Users: 414
15 members and 399 guests
7twenty7, blasterbr, buggen, Clouds, dre, EvilElf, HemiMG, jeroenkeij, jimmyon122, jonathandeknudt, LEARN2MAKE, Mah6447, n00b, nyoe, pungs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,668
Threads: 94,121
Posts: 402,901
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jonathandeknudt
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0