0

I really don't understand this. I downloaded the recent version of xCode 3.2.5 and Interface Builder 3.2.5. I follow these steps:

Create: Window Based Application (iPhone) Double Click: MainWindow.xib -- Launches Interface Builder -- selects -> File -> Build and Go in XCode

I get the following error in Interface Builder:

"Interface Builder could not build and go in Xcode. Build failed (1 error)"

But there are no build errors in Xcode. I don't quite understand what is happening since I am new to this platform. Can anyone assist?

BoredOfBinary
  • 793
  • 3
  • 12
  • 20

3 Answers3

1

It's generally not a good idea to Build and Run from Interface Builder. Just switch back (cmd-tab) to XCode and hit cmd-R to Build and Run from there.

Interface Builder is trying to run the xib itself instead of running your Application.

Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
  • Thanks, that's what I learned after fiddling around with it. I am going through some tutorials and this error threw me off a bit. – BoredOfBinary Mar 05 '11 at 15:12
0

Have you added any code?

The best place to start is with one of the getting started documents. If you are a registered developer, there are also videos available in the developer center.

-1

Just save and Build and Go in Xcode. I have a feeling it's because it's a UIWindow rather than a UIViewController. Why did you choose a window-based project?

james_womack
  • 10,028
  • 6
  • 55
  • 74
  • Down-voting someone without giving a reason is unproductive. Running a UIWindow from Interface Builder isn't the normal procedure, especially for a beginner so I offered the normal procedure. I also asked why a window-based project was used because the style of the question led me to think the asker is a beginner. – james_womack Mar 05 '11 at 02:30
  • (I'm not the one who voted you down, fyi). Using a window-based project doesn't seem like a beginner to me. All of the beginning books tell you to use the specific templates and not the window. Once I really understood what I was doing I started using Window-based projects. I consider that to be _generally_ an advanced thing. (He's obviously a beginner though, just saying that the window-based assumption is a little weird to me). – Kenny Wyland Mar 06 '11 at 17:13
  • @Kenny Wyland That makes sense - well said. I looking at it from the perspective that I knew based on their question they weren't an expert so choosing to go Window-based was just selecting a template that sounded the most basic. It definitely detracted from my point though since the accepted answer was otherwise essentially same as mine. – james_womack Mar 09 '11 at 23:14