Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bjkpoker

macrumors newbie
Original poster
Jan 13, 2015
2
0
I wrote an iPad app in XCode 6 and it works great in a 8.1 simulator or an iOS 8 device but when I test it on a 7.1 simulator there are many issues such as missing images and buttons and screens that are completely blank except for the navigation bar. I am not getting any auto layout or runtime errors. I'm not sure where to start looking to solve this. Any ideas?
 
It's difficult to go back in time. It's difficult to write an app for a newer OS and then retrofit it with support for an older OS. Typically it's done the other way around. You write an app for the current OS and then add support for new OS features as they're added. At the least you should work and test on both at the same time for a new app that supports multiple OSes.

Anyway, you debug these problems like any problem. Set breakpoints. Step through code. Test your assumptions. When you get closer to understanding each problem then search online for something similar. There are bugs in older OSes that have been fixed that were discussed a year or two ago online.
 
I wrote an iPad app in XCode 6 and it works great in a 8.1 simulator or an iOS 8 device but when I test it on a 7.1 simulator there are many issues such as missing images and buttons and screens that are completely blank except for the navigation bar. I am not getting any auto layout or runtime errors. I'm not sure where to start looking to solve this. Any ideas?

It is odd to me to see that level of issue. I have numerous apps that cross that divide and while their are issues that came up, entirely missing screens is not one of them. For example, popovers and embedded segues work a bit differently on devices running iOS 7 vs. iOS 8. Otherwise, are you using a universal storyboard with sizing classes for these? I do recall coming across some differences between 7&8 when dealing with default sizing classes. You didn't mean though how you created your app layout.
 
I think the storyboard may be corrupted in some way because if I create a new project and build the first view controller the same way it works fine in both iOS versions. Another strange things is that it seems like only the root view controller is affected. I put a button in the navigation bar just so that I could navigate to another view controller and that view controller looked and worked fine. It also looks like the launch screen is bypassed when viewed on iOS 7.

I think what I may have to do is rebuild the storyboard adding view controllers one by one and testing as I go. I can't find a specific problem.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.