iOS 9.1 Simulator problems - iphone

I developed an iOS app on Xcode 6.3 with iOS 8.3 .
Now I update Xcode to 7.1 with iOS 9.1 .
My app work perfectly on iPad with iOS 9.1
and all the views work perfectly in iPhone with iOS 9.1 expect one view .
With iphone 4s , 5 the problem is (lldb) with EXC_BAD_ACCESS(Code = 2 ,)
With iphone 5s , 6 , 6 plus , 6s , 6s plus no error message but the simulators hung all the time with max cpu and ram usage.
note : the implementation of view that causes the problem the same with iPad but in iPad work perfectly .
Please what the true analysis for the problem ?

There is a bug in Xcode 7.1 with UITextView , this is stupid bug.
You don't need to ensure that the UITextView holds at least 10 characters. Just adding a default of at least 10 characters to the UITextView in Interface Builder will fix the problem. Then, you can empty the UITextView using code.

this issue comes sometimes if u migrate from xcode 6 to xcode 7.. clean the code and check if the base sdk is proper.
sometimes this issue also comes in simulator. try running the app in real device.
Also, see if xcode 6 and 7 are not running simultaneously. run only one at a time.
Hope this helps u

Related

IOS Swift - Window size shrinks when running in iphone 5s

This happens when I run in the iphone 5s. Tried everything I know including checking LaunchImage s. Their resolution are according to apples standards.
In simulator no problems.
Anyone have any solution for this?
Iphone 5s - os 9.2.1
Xcode 7.2.1
Putting a Launch Screen fixes this. answer was given by Nimit Parekh

Using Single Storyboard for iPhone & iPad on Xcode 5.1.1

I have been developing an iOS App with iPhone(4-inch) Storyboard. Now I would like to use the same storyboard for iPad also. My iPhone storyboard contains 130+ scenes now.
I need to make it for iPad also.
I tried solution from link:
Converting Storyboard from iPhone to iPad
After following it my Xcode crashes, may be due to many scenes in the single storyboard.
I know about size classes in Xcode 6 and also tried it but the fonts don't update for the iPad size class(Regular Width| Regular Height) on simulator/device with iOS 7 but on iOS 8 it does. Since I have deployment target as iOS 7 I can't overlook the issue.
Can anyone help me with a solution that works on Xcode 5.1.1 of having same iPhone storyboard for iPad(Like a Universal App) as well?
Any help/clue will be appreciated.
Thanks.
Have you tried using size classes?
If that doesn't work, you could always use 2 different storyboards- 1 for the iPhone and 1 for the iPad

Received Memory warning in iPad 1 but working fine in iPad 2 & 3

Recently i have updated my app to support iOS 7.0 but now my app is not working in iPad 1(iOS 5.1.1) and its working fine in iPad 2(iOS 6.1.3) and iPad 3(iOS 7.0).
Right now i am running my app with instruments to improve performance but i am not able to understand that same code not generating memory in iPad 2 & 3 and create problem in iPad 1 only. so whenever i modified code, i need to check in all 3 devices and some of the code is not working in iPad 2(iOS 6.1.3)
I have implemented custom tabbar controller to match iOS 7.0 design in iOS 6 & 5. i am planning to modify to remove custom tababr and implement UITabBarController instead of that.
Let me know is there any easy solution for that or any alternative to solve this problem. do i need to reinstall iOS in iPad 1 or is there any hardware related problem with my iPad 1?
Your problem is that iPad 1 has less memory than iPad2 or iPad3 so memory warning is provoked before. If you want to run your App in iPad 1 you need to improve your memory management. I recommend you that you watch the "Fixing Memory Issue" in https://developer.apple.com/wwdc/videos/.
Good luck!

UICollectionView Error in converting ios 6 to ios 7

Here I have developed the app in IOS6, when I open the App in IOS 7 with Xcode 5 In Collectionview errors are throwing
file://localhost/Users/asaraa/Documents/IOS/Projects/Asaraa/Embassy/UI-Changed/Washington/IOS7/20130918/Mphasis/RootviewController.xib:
error: Class Unavailable: UICollectionView on iOS versions prior to 6.0
How can i resolve this error, Could any body help me please
It looks to me from this description of your error:
UICollectionView on iOS versions prior to 6.0
That you're trying to build an app that has the deployment target (the oldest OS version) set to something older than iOS 6. UICollectionView only works on devices running iOS 6 & newer OS'es. Do you have your project settings set to run this app with iOS 5 or 4?
And if you change it to iOS 6, do you get better results?
UICollectionView didn't exist before iOS 6. You could try the open source PSTCollectionView , which supports iOS 5 and aims to be a drop-in replacement.

How to switch from Xcode 4.1 to 4.5 for iOS 6.0

I just moved from Xcode 4.1 to 4.5 in order to supporting IOS version 6.0.
I modified launch image as 640x1136 pixels and Base SDK is iOS 6.0.
The problem is when I launch the app it throws SIGABRT on main.m and I added exception breakpoint to get more information but It gave breakpoint 1.1 on the same line of the implementation.
However I have noticed that I got a new warning with Xcode 4.5. Warning and Code are written below. Thanks for help.
Warning:
Semantic Issue: 'CountrySettingsViewController' may not respond to 'initWithTitle'
Code:
CountrySettingViewController *countrySettingView = [[[CountrySettingViewController alloc] initWithTitle:NSLocalizedString(#"selectCountry",#"Select the country title")]retain];
I'm not yet ready to jump to xcode 4.5. - because, then a lot of old projects will have to be recompiled e.t.c.
In order to support iphone 5 display, I simply made everything autoresizing, extra checking for iphone 5 display (to set corresponding image), and added iPhone 5 splash screen image. Compiling from 4.4.1, and on iPhone 5 it will look ok.
I then copy installed application from 5.1. simulator to 6.0 simulator, and launch 6.0 simulator, to check how it will look on iPhone 5 (while I don't yet have any iPhone 5 to test).
Hope that helps.
(I have 4.4.1. sdk and 4.5. sdk installed)
But about that error -
is this "initWithTitle" function declared in .h file also? Or else other classes will not see it (even if it works).
Finally, I sorted out my problem from the following answer in link:
iPhone with iOS 6 and Xcode 4.2 issue