I get this message from Xcode when I try to edit the xib for one of my apps.
_The document "ViewController_iPhone.xib" could not be opened. This version of Xcode does no support Auto Layout for iOS documents. Edit
this document with a newer version of Xcode.
I have Xcode version "4.4"
You may have this problem if the XIB file was originally created in Xcode version 4.5+ (current preview version as of now is 4.5). Auto Layout is a new feature that wasn't supported previously with older versions of Xcode.
Go to the developer portal and download 4.5 Preview Xcode and try that out.
Simple Solution:
Right click on .xib file -> open as "Source Code".
Find & delete object (some int/Hex) from xib source code.
Save File.
Again right click & open xib as "Interface Builder".
It will open your corrupt .xib file & u will not loss whole update in project.
Related
I download Core ML model files from Apple's web page but my mac and XCode don't recognise them. Here is what I see when I add them to my project navigator:
What am I doing wrong?
I had this problem and noticed that XCode 9 Beta 4 has a bug in which every time you drag a mlmodel to your project it does not get added to the target even though you selected your target to add.
The solution is to click the file and tick the "Add to target" box located in the utilities tab. (XCode's right panel)
I was using using Xcode 4.5 to create an iPad application yesterday and completed it. But today when I took that same Xcode project and tried to run it on an older machine running Xcode 4.2, it is giving me an error about IBNSLayoutConstraint. Which i guess was due to the new features that were included in the new Xcode 4.5. So I was thinking is there a way to open project from new Xcode in the older version without having to install a new Xcode and OSX.
I am not sure if this question is asked here yet or not, but i tried to find a solution but no luck in that either.
PS. I already know that the best solution is to not opent those projects in older version but that is not what i am looking for.
There is an option in the inspector window when you select the xib file that will not use the constrains under "Show file the inspector" in the inspector called "Use autolayout".
Here is a screen shot of it.
uncheck autolayout feature from each xib file the open your project on xcode4.2, it works on my case, as autolayout is only available in iOS6
I'm making iphone app using XCODE 4.2.
I would like to make a localized apps.
I moved the project folder. And then files(related localization)' link is broken.
I use to move folder often.
How can I do? please tell me.... thank!~
Select the xib marked in red
open the File Inspector (View - Utilities - File Inspector)
change "Full Path" to new location
I am using the Xcode 4.2. I did not able to see any method to add Entitlements.plist in this version. So how can i do add that file in my project since i need to install my app on iPhone.
Select the target in your project and scroll down. You'll see the option to add a custom entitlement.
For creating a new entitlement, just create a new plist file from new file menu item. Change it's type to iPhone entitlements as shown below.
i have a finished application written with objective c and I would like to rename the file. how do i do that?
Recent versions of Xcode have a "Rename..." item in the Project menu.
Renaming a project has changed in Xcode 4+. (Kris Markel's answer above is for Xcode 3.2.x )
Follow these steps to rename your application in Xcode 4.0 or later:
In Xcode, select your target under "Targets" in the project editor, then choose View > Utilities > Show File Inspector.
Xcode opens the file inspector pane. Enter your application's new name in the Project Name field as shown in Figure 1, then hit the return key on your keyboard.
Xcode displays a project-rename dialog that contains all the items that can be renamed in your project. Leave your application selected in the dialog and deselect all other items as shown in Figure 2, then click Rename to perform the rename operation.
Source: iOS Developer Library Technical Q&A QA1625