Testing app on iOS6 and iOS 7 - UPDATED - ios6

I need to test my app on both iOS 6 and iOS 7. Here's what i have done so far: I have developed an app on iOS 7, but i need to support iOS 6 too.
But because i need to follow slightly different layout for iOS 6 and iOS 7, i am making separate xibs for both. I have tested the app for iOS 7, and now i need to do it for iOS 6.
I have downloaded iOS 6 simulator already. Note that i don't have a real iOS 6 device, i have only iOS 7 device. Now please tell me how do i test it on iOS 6 and how to i detect programmatically which iOS version my phone is running.
In the code, I need to check the version of the iOS that the device is using, and then load the xibs accordingly.
This is the code that i am using to do that.
float sysVer = [[[UIDevice currentDevice] systemVersion] floatValue];
if (sysVer >= 7.0)
{
NSLog(#"this is ios 7");
}
else
{
NSLog(#"this is ios 6");
}
I am currently testing it on my iPhone 5 that has iOS 7 on it.
So, i have tested my app on iOS 7, but when testing it on iOS 6 (by choosing "deployment target" as iOS 6 in target settings and project settings) , i am still seeing on console - this is ios 7.
However, the keyboard appearance is iOS6-like..!!
Why is this happening?? why am i not able to check the iOS version???

Deployment target and system version aren't the same.
Basically, you're running an app compiled for iOS 6 on an iOS 7 simulator. That's why it reports a version of 7, and uses the style of iOS 6.
You need to run your app on a simulated iOS 6 by choosing it from the target dropdown at the top left of Xcode:
(Maybe you haven't downloaded the simulators for iOS 6, first check Xcode preferences).
Or better yet, on an actual iOS 6 device.
Anyway, if you intend to use the native iOS 7 look on iOS 7 devices, never lower the deployment target to 6. Keep it at 7.

Related

React Native: how to get emulator of iPad with iOS 14.0?

I got a report from the App Store that my React Native app crashed when testing on an iPad running iOS 14.0. When I run xcrun simctl list devices to see a list of available emulators, it lists the following iPads that are available:
iPad Pro (9.7-inch) (859B2DFB-CEB6-4212-968C-4B78EA38A3E3) (Shutdown)
iPad (7th generation) (07102BF3-FDFC-4A13-B419-8E949AB30F7C) (Shutdown)
iPad Pro (11-inch) (72F6F096-1905-433A-89E0-BB320BF1FA52) (Shutdown)
iPad Pro (12.9-inch) (3rd generation) (301FC9C6-C401-4088-ACA6-59A300315198) (Shutdown)
iPad Air (3rd generation) (78C3FAB7-B2E1-4E63-90D5-070DD12CF96D) (Shutdown)
It doesn't indicate what version of iOS any of these is running.
What I Want To Know: Is there a way to get an emulator of an iPad running iOS 14.0? Would I need a specific emulator for that, or could I use any of these ones listed, and change some setting on them to get them to run iOS 14.0?
2 ways to do this:
1 way:
Launch an emulator
right click on the Icon in the AppBar
Choose "Device"
Here you can choose the OS version and then the Emulator type...
2 way:
Open your project in Xcode.
Click next to the Stop button on the Device for launching the App
Choose "Add additional Simulators"
Choose "Simulators"
Click on the small plus in the bottom left
In this screen you can choose the OS the Emulator type and also give a name for the emulator

Ionic 4 react white screen on android 5.1

chrome developer error 1
build apk by capacitor works will in android 7 but shows a white screen in android 4.4, 5.1 and 6

App can neither be installed on android nor IOS

First I send an IOS build to the buildserver (I configured correctly). The result was:
I can install the App on an IPhone 4, but not on an IPhone 6 or an IPad 4 (All three devices are registered) (no build server error, it loads the app and then tells "could not be installed")
After that I send an Android build. I tried to download it to my Samsung Galaxy s3 mini, but it failed again. Similar exception: "App was not installed" with no further explanation.
What am I doing wrong?
NOTE:
- The IXXX devices were registered correctly in the IOS profile
- There are no exceptions on the build server
- The app runs without any problems in the simulator
There are many reasons for things like that and unfortunately neither Google nor Apple nor MS provide any form of decent error messages...
9 times out of 10 this is caused because you already have an app with the same package name and a different certificate already installed. Unfortunately there is no easy way to find that other app.
In some cases this is caused on iOS because people take UDID from an app instead of using itunes. Apps don't give you the right UDID.

App targeting OS 5.1 does not install on iOS 6

My app was compiled for iOS 5.1 and later. I could install it on iPad 1 using testflight. However, the app fails to install on iPad 3 with iOS 6. Both devices are in the provisioning profile.
Does anyone know what the problem might be?
Here are my build settings:
Base SDK: Latest iOS (iOS6.0)
iOS Deployment Target: iOS 5.1
Valid Architecture: armv7 armv7s
Turns out it's the provisioning profile. There were several profiles on my machine and I selected the wrong one when creating the IPA file.

iOS simulator cannot find sdk iOS 6 on snow leopard

I read this post:
Import iOS 6 SDK into Xcode 4.2 on Snow Leopard
and i have the follow problem:
I launched the script and it seems finished correctly, but when i open iPhone simulator and i select version 6 in the hardware option i see this message: iOS simulator cannot find developer kit. Then i select sdk 6 but doesn't work.
What can i do?
Thank you!

Resources