iOS 7 Simulator vs Real iPhone unexplained differences - iphone

I am working on a fix for iOS 7 and having a problem. When I run my app on real device (iPhone 4S iOS 7), the screen looks different than when I run the same app on iPhone 3.5 inches iOS 7 Simulator. I am trying to understand why and what is the reason for that, if anyone can help it would be great!
First screenshot from Simulator, second picture from Device:
SOLVED: The app on the real iPhone has a base SDK 6.0 and the app that is on the Simulator has base SDK 7.0. So I guess the real device knew how to compensate for the low SDK base, unlike the simulator which behaved totally in a SDK 7.0 environment and thats why it was showing differently. thanks!

For anyone else reading this, Roy's 'Solved' comment above is correct.
I have gone into Xcode after the update and it had automatically updated my Base SDK to the latest 'iOS 7.0'.
After changing this back to 'iOS 6.1' - both the Simulator and Device are now working the same, as expected on iOS 7.
Not trying to steal Roy's thunder (whose saved me a good numbers of hours - thank you), just summarizing to others how to quickly fix the issue.
Ralph

Contrary to the proposed solution, Apple Documentation recommends to set Base SDK to the latest iOS https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW37, so there must be a better solution

I also faced same issue..
I solved by adding below code at viewDidLoad method..of view controller.
if ([self respondsToSelector:#selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;
Hope it helps..Thanks.

Related

How to use the iOS Simulator with Flash CS6

As I heard, that using the iPhone Simulator in Flash CS 6 is now possible, I was really wondering to test my apps for the iPhone 5.
But honestly said, I haven't figured out, how this should work. So my question is: How to use the iPhone Simulator with Flash CS6?
I googled a lot and found only news, that it is possible now. But no tutorial or similar.
Thanks for your help.
You have to update your Flash Professional CS6 to version 12.0.2.
After updated, go to your target setting. You will found iOS Simulator SDK is available to be configured.
have you tried creating an AIR project for IOS? when you create an AIR for IOS it will automatically launch the simulator when you debug you movie. hope that helps! :)
Make sure you have XCode installed and an updated version of AIR SDK
You need to set the SDK location for the iPhone Simulator:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk
You do this on the General Tab of AIR for iOS Settings.
Now in order to target the iPhone Simulator you need to set the following:
Control > Test Movie > on iOS Simulator
Then you will be able to do "CMD+Return" and it will publish to the simulator.
The app will show up on the second screen just like a device would.
More info here: http://forums.adobe.com/message/4923535

Xcode deployment target

If my deployment target is set to iOS 4.1 and submitted to apple, and they test the app on iOS 4.3, would that cause the app to malfunction? My app was rejected for a bug that I am unable to recreate on my iPhone 4. The exact same device model they tested the app on. I simply cannot find the bug or error in my code. Any advice would be greatly appreciated.
If you build your app to target iOS 4.1 it should run on iOS 4.3. It's possible that your app does something that works on 4.1 but causes a problem on 4.3; I had that myself with an app already in the store, and had to post an update so it worked correctly under a newer iOS release.
Note that you can tell the iOS Simulator what version iOS to simulate: on the Hardware menu, select Version, and subsequent runs will be tested against that version of the system libraries.
The simulator is not a perfect reproduction of a real device, but hopefully you can do this to reproduce the behavior that Apple has seen on their devices.
Did you test it on your iPhone 4 with iOS 4.3? There's two parts to the puzzle. If they rejected it for crashing under iPhone 4, you have to check all the different iOS versions you claim to support. The target iOS 4.1 should still make it work on 4.3, you just might have a crash (which apparently you do). Through testing with that actual software version on your iPhone, you'll find the bug and hopefully squash it. Good luck!

Xcode debugger not stop i ipod with IOS 5 Beta

I have 2 devices,iphone with 4.3.1 and ipod with 5.0.
The problem is that in my iphone the debugger stop in break points, and in ipod the debugger won't stop on break points.
Any ideas on why that happens?
Have you installed the iOS 5 SDK in your Mac? I think that is what you require.
Also you need to understand that some of the functionalities might still be missing in some of the cases as it is still a BETA version. It might not be a fully functional version yet.
So either you can try using the iOS 5 SDK in your mac or if you have already tried it then I think you should wait for the final iOS 5 full version to work properly.
Also in the below link, they have discussed that some of the functionalities of iOS 5 still doesn't work on iPod. So may be Apple is working on it before the final launch.
http://www.ifans.com/forums/showthread.php?t=344401
You can also try referring to this link:
iPhone Dev: Xcode debugger does not stop on breakpoints
I think its the same problem like with iTunes. If you use a beta SDK you also need beta iTunes to sync with your device and a beta Xcode. Do you have the beta Xcode? Thats because the official Xcode release don't have an iOS 5 debugger. Open your Organizer and look if your iPod is listed as a supported debugging device.
Do you have iOS5 SDK installed as well? Are you testing with that? If not, the app won't stop at breakpoints. Your XCode version does not have the iOS5 debugger.
Not the solution to your problem, but I faced the same problem and solved it using UIAlertViews & NSLogs. I should also mention that I even installed xcode with iOS 5 SDK beta, even after which the breakpoints won't hit.
It was some issue with the symbols. You can create & display a temporary alert view where you want to put the break-point with its message/title being the value that you want to see, or you can log the value.
To debug a device running iOS 5 you will need to install the beta version of XCode, which contains the iOS 5 SDK. Once you register as an apple developer you can download it from developer.apple.com.

how to set minimum os required in iphone

I have to check whether my app is compatible with iOS 4.0 or not.
I have tried looking out for certain forums but all I can see is to change the iOS deployment target.
I have done doing so also but still my app is running fine. I have changed my deployment target to 3.0 but still it works fine. Since I have used Gesture recognition which was introduced later. It must crash my app (but still it is working fine).
So I want to know Is there any other way out to check my compatability.
Or is it the problem because I am running it on Simulator rather than on device(my device has iOS version 4.2).
Any comments or answers are really appreciated.
Yes thats the reason that your app is not crashing because you are running it over simulator which has the ios version 4.2.Because now your ios version is updated on the simulator so you are able to test the Gesture Recognition over that.You are correct .
If you have an iPhone that is certified for distribution you can just run it on your device and test your firmware versions from there. Hope that helps...

Xcode and the iPad simulator

I have just installed Apple's SDK 3.2. When I run the iPad simulator Safari doesnt appear in it. Can anyone help?
Any help much appreciated.
On the iPhone simulator, at least, homegrown apps usually get installed on the second page of the home screen, which makes it look like none of the built-in apps are there. Try swiping back to the first page of the home screen.
Are you sure you don't have Beta 1? I think they are upto Beta 3 now. Also you should ask iPad related questions on Apple's Beta Dev forum since its under NDA.