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?
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.
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.
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?
Related
I'm using a 13" Macbook Pro. I'm beginning a project for University; I'm making an iPhone application. I bought the DevKit but had some problems opening Xcode, I realiased I'd upgraded to Lion since I downloaded it and needed to upgrade, so I did, so Xcode 4.3.
Now I can use Xcode fine (as far as I can tell) but Interface Builder gives me this error when I try to make a new iPhone Application Template/Project:
This version of Interface Builder does not support documents of type "Interface Builder Cocoa Touch Document (XIB 3.x)" targeting "iPhone/iPod touch".
And this one if I try to make a blank one, of any other the other options:
Interface Builder was unable to open the document "Empty.xib". iPhone/iPod touch development requires the iOS 3.1 SDK.
Now, I checked, and according the the AppStore (which is where I was forced to download it from) iOS 5.0/5.1 SDK is included. I tried to redownload a few times but to no avail. I have a feeling this is something really stupid, so feel free to call me so.
You should be using Xcode itself to create, view, and modify xib files for iOS 5 projects. Interface Builder as a separate application is no longer provided by Apple for iOS development.
Xcode 4 allows creation of user interface files from the File > New > New File menu item. When you select a user interface file from Xcode's project navigator (which you can show via View > Navigators > Show Project Navigator or by pressing Cmd-1), a user interface editor appears where the source code editor typically appears.
I have installed xCode 4.0.2 on my mac mini, every thing is working fine, I have compiled some sample applications too, but the interface builder is missing in the directory Developer/Application while xCode.app is there.
Interface Builder is no longer a sperate app, it is fully integrated in Xcode 4.
Interface Builder is inbuilt with Xcode 4 now. So you can just select your .xib file and it will show at right side. You may need to select last icon on right side top navigator to display Interface builder.
when I double click Mainwindow.xib file the Interface Builder does not open. I did some research but I could not solve it, I encounter with the same question on many websites but there is no solution.
I do not know the application type is important or not, I mean I have created iPhone Window-Based, iPhone Navigation-Based but the Interface Builder did not open.
Another thing is I use MonoTouch trial version, I do not know if it might be the reason for this. What can I do to solve it? Thanks for advance.
The issue was that interface builder (xib) was not installed. I fixed this by reinstalling everything
as indicated on this page: http://monotouch.net/Documentation/Installation
But when I installed the Iphone SDK, I selected all components including the Mac API option.
Hope this helps:)
Benn
I was going through the Hello World tutorial for iPhone App. I recently bought a Macbook and have installed Xcode 3.2.3. The tutorial says that I should double click on MainWindow.xib and wait for few seconds to see an Interface builder getting opened. But nothing like that is happening in my macbook. Is there an alternate way to bring up the Interface builder or even to check whether I have the Interface builder at all!?
http://img683.imageshack.us/img683/3412/problemym.png
Rest of the stuff like iPhone simulator are working properly. What am I doing wrong. Please help me.
Thanks
Go to finder and search for "interface builder" as a file name. see if the application is there.
If you have tried everything listed on all websites over internet and if nothing works then try this:
Right click on MainWindow.xib -> GetInfo -> General -> "Path: Relative to current SDK"
I'm developing a new app but I've a little issue with Interface Builder...
I've installed Xcode 3.2.3 and iPhone SDK 4.0 GM.
When I create a new Tab Bar Application project in Xcode, opening the MainWindow.xib file in IB, the Tab Bar Controller won't open... I tried reclicking it but nothing!
I also uninstalled and reinstalled all developer tools but without any results...
Finally if I try to build and run the project in the simulator, the tab bar controller shows normally!
Can anyone help me? :)
It sounds like something similar to what I have experienced with my projects and the new sdk. Some of my IB files such as ones that contain UIViews when double clicking on them they refuse to open.
I haven't had to reinstall or nothing usually quitting IB and xcode and restarting helps I can't remember if I have done anything else to fix it. It may be an issue with the new 3.2.3 xcode as I don't recall having anything like this happen in my 3.2.2 build.
If it becomes a large problem for you have you considered removing the tab bar and rebuilding it? Just a thought. It may be troublesome to do so but if it fixes it and allows you to continue coding your project it would be worth it.
You said in your question that you're running iPhone SDK 3.2.3 with iOS4 GM. You should update your SDK, as the SDK is now at version 4.0 officially.
Otherwise, it sounds like your Xcode installation is somehow corrupted in some way. You may need a complete reinstall.