So i released an app and all seemed fine. All of a sudden I got reviews in and emails that he app did not function and was doing weird things. Turns out the users were using iPhone 4s and 5. I have an iphone 4 running 6.1.3 and everything worked great. As i did some testing in xcode i found using iPhone sim with 3.5 inch screen everything worked perfect. If I switched to the 4 inch retina display it went crazy... button functions from other screens mixed in with current view. Long story short... I went in and fixed it and ran tests using the simulator. all my tools are updated and everything looks good. I released update to iTunes so everyone who had issues could now use the app.
But... a couple people i have been speaking with say the issues are still there. I do not understand how since I test in the simulator. Does anyone know how to properly test an app on the any version iOS and if it works on the sim it will work on an actual device. I am completely baffled by this issue.
I am using xcode 4.6.2 with iOS SDK 6.1 and my app deployment target is 4.3
Related
I am working on a universal application where I am stuck at one point. I was able to successfully launch my application both on iPhone and iPad but since 2-3 days, I am not able to launch my application on neither iPhone nor iPhone simulator but it runs smoothly on iPad/iPad simulator.
Also when I run my app choosing iPhone device it shows message like Running the App on iPhone simulator but I am not able to see any effect on my simulator. I am using Xcode 4.2.1 and I guess the issue is pertains to the same.
I don't know whether it is a solution or not but got a way out by reinstalling the iOS Simulator.
I have faced same problem. This probably happens when you replace the application with the newScheme/EditScheme by mistake.
Just carefully check when you run your application is there your application name appear. This will be immediate left at where you choose iPhone simulator or iPad simulator version.
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!
I have an app that is working fine on my physical device running 4.2.1 iOS.
On the emulator it works fine in 4.1 and 4.3.. however if I try to run the app on the 4.2 emulator, some interface elements (buttons, segmented controllers etc) do not appear, at all.
I have tried changing the build targets to 4.1 and 4.2 to no avail.
I am beyond confused, obviously if I build with a 4.3 target, I can no longer run on my physical device, but if I have it set to 4.2 or 4.1 I can run it on my device running 4.2.1 no problem. Also if I build with 4.1 as the target I can run it on my 4.1 emulator as well with no problem. The problem seems purely on the 4.2 iOS emulator.
Is this a known issue? Is there something I need to worry about? What, if anything, can I do here?
is the 4.2 emulator just screwed up?
Each of the iphone simulator versions keeps its own copies of the app. try deleting the app's directory from ~/Library/Application\ Support/iPhone\ Simulator/4.2, it is possible that the nib changed, but isn't being copied in for some reason... do a clean before you build.
I am an app developer of 2 years and I can assure you if it works on the other two builds and not 4.2 the emulator is glitching... This happens alot on my apps but they always work on the phone itself. Apple will still approve your app and it will still load on other people's phones no matter what software version they have (for 4.0 +)
Don't sweat it ;)
I've upgraded my iOS on iPhone 3G to 4.1 and now I run my app on the device.
Firstly, I couldn't install it becouse Xcode was saying I don't have certification etc. (I have jailbroken iPhone). Finally, I succeeded and installed it.
But know something strange happens....
After I had installed my app on the device I run it.
Then, "cocos2d" image appears on the screen and just a second later device switch off! It simply reboots.
What's more - when the device launchs again and I run my app - it works!
I have no idea what's going on. This app works fine on 3.1.3 iOS (even with the same Xcode - 3.2.5)
What should I do?
Do you think the problem is caused by Xcode or iPhone itself?
Maybe reinstalling Xcode may help?
It could be one of two problems.
It could be a problem with your device. Maybe something got sort of wonky with your jailbreak.
Secondly, it could be a problem with your app. Maybe it's crashing. Have you checked your crash logs?
I'm fixing my app to be a universal binary. Testing on the simulator seems to default to the iPad. For small corrections like checking orientations and small UI updates, the only way I can find to get the iPhone version is to plug in my iPhone and build and run on device.
Loading the debugger takes valuable time, when running on simulator is so much faster for this kind of work. Can I set the simulator to default to iPhone for this? Setting it to 3.1.3 doesn't work because of the 3.2 code I have in the binary for the iPad.
EDIT:
The Hardware -> Device, and ->Version menu choices in the simulator quits my app. When I relaunch, it goes back to the iPad. The app is not installed in the simulator
If you don't have the latest xcode, get it.
Set the project info to build for 3.2, but in the build drop down pick iPhone Simulator 4.0 and it will open in the iPhone simulator instead of the iPad simulator.
That is the dilemma: if you want to use OS 4 on the iPhone, you have to use iPhone SDK 4, which comes with XCode 3.2.3.
Previously I used iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a, where the simulator was fine, but now after I update the iPhone to OS 4 (which is by iTunes), I cannot use the SDK 3.1.3 any more, and the simulator 3.2 which comes with SDK 4 actually does not work for iPhone at all!
Even when you specify the "iPhone OS Deployment Target" to "OS 3.1.3", and an iPhone-frame shows up in the iPad simulator, many functions are not responding at all.
Does Apple have an official answer to this dilemma?
I finally solved this problem myself.
First, install new version of xCode, which is xCode 4.
Then set project scheme to iphone simulator and run app in xCode several times.
And re-install xCode 3 and the problem will be gone away!