Xcode 5 upgrade xib to iOS 7 - ios

So I am converting my pre-iOS 7 project. When I open it using Xcode 5 and go to individual xib file, it does not ask me to upgrade the xib. I do want to upgrade all xib files.
Should I need to be concerned with this at all?

Updating your .xib files to ios7 is fairly simple, all you have to do is go to your project navigator (blue page that should be at the top of your left sidebar), then click on your project, then click info at the top of the screen. Where you see iOS deployment target, change it to 7.0 (the path is Project manager> project> info> deployment target):
now, you should be able to update your .xib files to ios7. Good luck!

You should not worry about the format of the nib/storyboard formats.
Xcode will upgrade their structure lazily once you actually open them in Xcode 5. This has nothing to do with supporting iOS7, as both upgraded nib files and Xcode 4.X nib files will all use the same iOS7 widgets when the project is compiled against the iOS7 SDK.

Related

Could not instantiate class named UILayoutGuide

I Have an iPhone 4 running IOS 7.1.2, since the Xcode-Beta doesn't Support anything lower than iOS 8, I referred to this Answer on Stack : Any way to install app to iPhone 4 with Xcode 8 beta?
So I Followed The Steps, then I made a new Project Connected My iPhone But I get this error:
The Error Image
Keep In mind that it is a stock project. I didn't change anything except the Minimum Deployment version.
Uncheck Use Safe Area Layout Guides option in the File Inspector in Xcode.
You can open the File Inspector by clicking on View -> Utilities -> File Inspector.
Hope it helps!
I found Out that making the app programmatically without storyboards solves the problem temporarily

Xcode 8 storyboard error

Anyone can help me something goes wrong with me, I cant see my storyboard View, subview, imageview. All became white and its show error like on storyboard file
"An internal error occurred. Editing functionality may be limited."
I have open my project in xcode 8 and 8.1 beta latest xcode but both have same issue.
Main thing is that this is happening with all project not just one.
For example i am opening new project that is open in xcode 8 and i cant see that storeyboad file. Old project is working fine which are not open in xocde 8 i can see that project and open in xcode 7.3.1. but if i open that in xcode 8 and convert to xcode 8 compatible and this issue happen.
I have the same problem with Xcode.
I resolved it by disabling SIP (System Integrity Protection):
Press Command-R when start hold til logo and loading status appear
Open terminal
In terminal print: csrutil disable
Restart system
I have also faced this issue and resolve it by only follow these steps:-
Go to Xcode -> Preferences
Select Locations Tab
Click on Derived Data arrow.
Trash Derived Data Folder.
Restart System
Automatic Fixed this issue.
May this help you.
They inserted autolayout a few versions ago, exactly for this foreseeable reason. It's highly discouraged to use storyboards without autolayout, if you want to work with size classes, different devices with different screen resolutions, orientations, ecc.
My suggestion is revert the project to previous commit, reopen it with xcode7, add the needed constraint and reopen with xcode8 (you will still have problems, because of the many bugs of the new storyboard but they are mostly fixable).
Another option to keep working with in xcode8 it is to use a "freeform" simulated size from the Size inspector of the view controller and adapt the sizes to the old viewcontroller dimensions, but you will have to manage compatibility with all devices sizes programmatically, as i hope it is already being done. It doesn't anyway guarantee that everything works
There are some bugs in storyboard of xcode 8 so if you are not using autolayout then you should use xcode 7. now as you said in question that you are getting problem to open storyboard in older xcode (i.e. 7.x) that because once you open project in xcode 8 then it's change some configuration of storyboard which are not compatible with older xcodes.
So now for solution Open your project in xcode 8 -> open storyboard -> File inspector -> Under Interface builder document -> select xcode 7.x instead of latest xcode 8 from Open in
It will show popup something like Saving for Xcode 7.x will close your document and data for Xcode 8.0 features will be removed. Click Save and close the xcode 8 and open project in your older xcode (7.x) and you will able to open storyboard as it was before!!!
You can refer below screenshot,
Hopefully Apple will fix issue related storyboard and in newer version of xcode 8 you will able to switch project without messing up your UI! But right now there should be a workaround as i mentioned above! Try it!!
for me I just make all the views in storyboard size to inferred
^^"

How to open Xcode 8 project's storyboard into Xcode 7 without any error?

This link is not use full for me : The document Main.storyboard requires Xcode 8.0 or later
It's possible to do this, but I would be wary about doing so. You can find information here: http://radex.io/xcode7-xcode8/
Go through all of your .xib and .storyboard files, open the right
sidebar, go to the first (File inspector) tab, and find the “Opens in”
setting.
It will most likely say “Default (7.0)”. Change it to “Xcode 7.0”.
This will ensure that even if you touch the file in Xcode 8, it will
only make changes that are backwards-compatible with Xcode 7.

newest Xcode 7.1 LaunchScreen.xib warning

After Xcode updated to 7.1 I get a warning which says "This file is set to build for a version older than the project deployment target. Functionality may be limited". I am using launch images source not even using launchScreen.xib
The new way of doing splash screens for iOS 8 onwards is to define a LaunchScreen.xib file. This is also available as a new Resource file type in XCode 6.
This new XIB will use AutoLayout and the new size classes to determine how you want to layout your splash screen.
It is not very clear how the backward compatibility of this will work if you want to support older devices. I figure it will not work.
You can set the launch.xib in the target properties first screen in your XCode project.
If you want to use the old way you can still define splash PNGs to use as launch images, that continues to be fully supported. From what I see, this is still the only way to go if you want to support old iOS versions.
open launchScreen.xib file -> Show File Inspector -> in the Interface Builder Document uncheck "Use as Launch Screen"

Is there is any way to convert my total XIB files to iOS6.1 from iOS7?

Already i have developed application in iOS6 but after updating to iOS7. Xcode automatically changed all view with Flat UI iOS7.
But i don't want to update my UI to Flat. How to revert back my UI to iOS 6.
My Project has more than 100 XIB,
Now i am manually going to each XIB and changing
In Interface Builder Document
"View as" ---> iOS6.1 and earlier
Important: Is there is any way to convert my total XIB files to iOS6.1??
I had similar problem, and with help of the version control, I've just discarded all changes for xibs and storyboards.
Only thing that comes to my mind without using source control is downloading some XCode 4 compatible xib (search on GitHub) and comparing its source (XML) with XCode 5 xib.

Resources