Migrate from iOS 4 to iOS 5 . - xcode

I have an application developed in iOS 4.3 and XCode 4.
What are the steps that I have to follow to migrate it to iOS 5?
Do I have to upgrade XCode?
Thanks.

you'll need xcode 4.2+ - basically get the latest one on the app store. in theory, you shouldn't have many problems (if any), but there are some subtle changes which can catch you out.
off the top of my head:
modal view controllers don't seem to set parentViewController - instead you can use presentingViewController e.g. [[self presentingViewController] dismissModalViewControllerAnimated:YES]
viewWillAppear/viewDidApear/viewWillDisappear/viewDidDisappear notifications have changed in that in the past you didn't get them if you manually added views etc, but now you do. there's a good blog post on it here: http://gamesfromwithin.com/view-controller-notification-changes-on-ios5
the only other thing that i can think of that i ran into was the location where xcode stores "Derived Data", but that was only an issue going from xcode3 -> xcode4 (and we were an edge case), so you shouldn't need to worry about that.

Related

Branding assets are not working for tvOS after update to Xcode 11

I am working on an app that has iOS and tvOS versions. After the update to Xcode 11 the Branding Assets for the tvOS version started to glow in red. It seems that Xcode can't find them. I tried making a brand new project for tvOS and the result is the same!
After contacting the Apple support they confirmed that this is a bug and said that they are working on it. However a lot of time passed since then ...
I am writing this question to see, if other people have bumped into this problem and, if someone has found a workaround.
This bug actively prevents me to release new versions of the tvOS app via Xcode 11+.
I will write here if Apple responds with a fix for the problem, so other people may know, if a solution has been made available via the official channels.
Same here...
Setting the "Asset Catalog App Icon Set Name" in Build Settings manually did the trick for me (App Icon Source still shows up in red, but the icons are being used now).
Build Settings
Assets
Warning still present
PS: Also I removed the following lines from Info.plist. Not sure what actually solved the issue.
< <key>CFBundleIcons</key>
< <dict/>
< <key>CFBundleIcons~ipad</key>
< <dict/>
The problem was fixed in Xcode 11.3. The UI no longer glows red as shown in the question above.

Xcode Changes Contraints Of Layout By Itself After Reopening The Project

I set the constraints of layout properly and also tested it on every device. But the next time I open the project, Xcode just ruined the constraints totally.
How did this happen?
May be the project has a problem and for some reason it is not saving the changes. I have indeed put this solution on my troubleshooting book about Xcode from Apress (shameless advertising... 😃). I have seen this before.
Backup your project and try this:
Quit Xcode
Using finder, right click on the .xcodeproj file of your project and select Show Package Contents.
delete everything from that except the file project.pbxproj.
open the project again fix the constraints and see if the changes are saved the next time you open Xcode.
You did not specify you Xcode version, but my own experiences with code, that is developed using Xcode 8 Beta 1 to Beta 6: The problem may be caused by bug in XCode.
The explanation, if you use Xcode 8 Beta, could be:
New Xcode offers new storyboard-display logic, that shows different difficulties still in Beta 6
After fixing both constraints and frames automatically / manually, warnings come back again after reopening project
This problem moves from Xcode Beta 2 to Beta 6 after my own researches
Let's give Apple a little more time to fix the issues and let's wait until Apple releases GM Seed. It's only beta though

Xcode 7.3 is excruciatingly slow when loading Storyboard IB

I recently upgraded to Xcode 7.3. I found that loading up the storyboard can take anywhere from 5 to 10 minutes to complete(and may sometimes result in a crash). I've restarted my Mac several times. I uninstalled Xcode and reinstalled it to no avail. I then cleared my Derived Data as well as com.apple.dt.Xcode to find that this did not help either. Is anyone experiencing a similar issue and possibly has a solution?
Although this actually might be an issue with incremental changes in Storyboards with Xcode 7.3 you can always speed up build times by creating multiple small Storyboard files in favor of a big bloated Storyboard.
Xcode can then reuse already built Storyboards in subsequent builds (as long as they are not changed) instead of building the complete bloated Storyboard over and over again even for small changes.
Apple even has a guide that might help getting this started.
I hope that helps!
This is really annoying bug/issue with XCode 7.3. So, If you have an hour or so to spend you can download and install XCode 7.3.1 Beta from here https://developer.apple.com/xcode/download/
It seems that this issue has been fixed in this version (at least it works for me).
Edit: OK. After a few minutes, Interface Builder became extremely slow again. Changing only one property can take up to 15-20 minutes.
After some research I have figured out that autolayout constraints were the cause of this issue, BUT only if you have a combination of some components present. I had a segmented control inside a navigation bar. When I removed navigation bar and placed segmented control in a simple UIView, all issues were gone and IB was smooth again.
Hope this will help.
I am using Xcode 7.3.1 and had the same problem. My problem was solved by disabling source control.
Go to Xcode->Preferences->Source Control and then Uncheck the Enable Source Control. Worked for me.
Thanks.
Sometimes the storyboard gets slow because of unresolved errors of autolayout. In my case i tested by changing screensizes and it showed me some errors on different sizes. Once i resolved those errors the storyboard was working fine. Please confirm
Yep I had the same problem. In design mode, it's Autolayout that is causing the 5-10 second delay between edits, especially if it's a large storyboard. Turning off Autolayout in the storyboard at design time fixed the issue for me:
Open project
Select storyboard from the Project Navigator
Open the file inspector
Under Interface Builder Document uncheck 'Use Autolayout'
If you need Autolayout at run time, I recommend you layout your Storyboard in design time with this off (to avoid those long delays between edits) then turn it back on afterwards. Or, turn Auto layout on programatically. Or better yet, split your storyboard out into smaller storyboards.
Referenced this question: Can I disable autolayout for a specific subview at runtime?
I got the same issue recently after I updated the OSX to 10.11. Xcode 7.3 will take almost 5 mintues to respond when I just change the button's font (or anything else change). This made me almost crazy. Incidently, just for a try, I updated Xcode from App Store to 7.3.1. Then I was happy to cry when I opened the storyboard and changed the attributes. Xcode responds smoothly.
So please try Xcode 7.3.1 for your problem. Hopefully you can be happy with it.

Xamarin iOS Storyboard not rendering

I got this error "There was a problem rendering this document" when i tried to load my storyboard in my xamarin iOS application. I created another xamarin iOS project and still got the same error.
You can not do much there right now.
There are two options one should do:
1. Use Xcode storyboard if you can.
2. If the first one is not an option, create and use multiple storyboards in your project, since after your storyboard gets big enough xamarin has a lot of problems rendering and working with it. You have a lot of documentation on how to use multiple storyboards in your project.

Xcode - Navigation controller tutorial needed

Does anyone have a good navigation controller tutorial for newer Xcodes that still uses xib file instead of storyboard? I've been searching everywhere, and what I've found either is for Xcode version 2.0 or either uses storyboard.
Check out this: http://www.techotopia.com/index.php/Creating_a_Navigation_based_iOS_5_iPhone_Application_using_TableViews
Should give you the basic idea... Written for iOS 5 though, so some functions might need updating

Resources