Issues with Phonegap Geolocation on iOS 6 simulator - ios

I'm getting a "kCLErrorDomain error 0" message when trying to use the geolocation plugin on the iPhone 6 simulators. My app seems to work fine with actual devices (including an iPhone 6 running iOS 8.0.2), but does not work on the simulator. Any ideas what the issue is? I'm not sure if it's an issue I'll see with certain version of iOS, I've only been able to test of iOS 7 and iOS 8.0.2
I am not using Phonegap Build, btw
Appreciate any help you can provide!

The suggested answers on this question should help you out.
Geolocation is not working in iOS 8 simulator
The key suggestion that did it for me was to go to the Debug menu for the iOS Simulator, then select Location and choose anything except Custom Location.... You can leave it like this or go back and change it to a custom location after a few seconds.
My guess is that the simulator has a bug which defaults to a NULL custom location on the initial start-up, and doesn't actually get a value until you start changing options.

Related

React Native app works on simulator but stuck on a black screen when installed on device through TestsFlight

I'm building a React Native which works fine when I run it on the simulator. However when I package it and put it on the Apple TestFlight, the app doesn't run on devices. All I see is a black screen.
I'm using the MongoDB Realm SDK if that may hold a clue to the problem. I'm fairly new to iOS development and only have the simulator to test the app.
Any ideas on how I can resolve this? Thank you!
Update: I tested the app on an iPod touch (iOS 14) and it works. So the problem seems occur only on iPhones.
This usually means that your app has crashed...Try using componentDidCatch and show an alert or something to get the error or try using sentry.io to catch crashes

How to install iOS5 simulator in xcode7.3.1?

I want to develop an iOS application also support in iOS5.I am going to develop in Xcode7.3.1.But I can’t find iOS5 simulator in Xcode7.3.1.Is it possible run iOS app with iOS5 simulator in Xcode7.3.1?.Here i attached one image showing all available simulators.Here i cant find old simulators.How to solve this issue?Please help me.

Developing for iPad 1 on Xcode 5/Mavericks

From what I can find out, the IOS 5.1 simulator isn't available on Xcode 5/Mavericks. Am I wrong about that?
The issue is that I'm developing an iPad application, and I want it to run on an iPad 1. I'd love to target IOS 7 and be done with it, but unfortunately the iPad 1 doesn't support anything past IOS 5.1. Is there some way to target IOS 5.1 yet be able to debug/test on Xcode 5/Mavericks?
Surely most apps still support the iPad 1 - there are still a lot of iPad 1's out there. But since the simulator isn't available, it's like Apple isn't letting me upgrade to the latest Xcode and OSX. What do others do? I'm hoping there's some way to do this that is eluding me!
You are correct, the IOS 5.1 simulator isn't available on Xcode 5/Mavericks. However, you can still connect Xcode to a real iPad 1 and develop that way. I bought a used iPad 1 for about $100 specifically for this purpose and it's working fine.

Unable to profile using Instruments on iPad 1 using XCode 5

I have an application built against iOS 7, but targeted for iOS 5.1 since I only have an iPad 1 available for testing. It's an all native library, with very minimal iOS dependencies. I am able to run the app on my iPad just fine, but when I try to Profile it, XCode 5 immediately changes the status to 'Finished running on iPad', and the Instruments window shows a warning saying 'This device does not support this instrument'. I see this behavior regardless of which instrument I choose from the Instruments panel.
I have tried other suggestions from similar issues posted on Stackoverflow such as
1. Cleaning my app and rebuilding
2. Restarting XCode
3. Deleting my app from the device
4. Changing the deployment target from 'iPhone/iPad' to just 'iPhone'
None of these have helped me get over this problem. Is there something fundamentally not supported in the configuration that I am trying to run ? Since the app runs correctly on the iPad, this seems like just a problem with Instruments compatibility, so I welcome any comments / suggestions on resolving this.
Thanks.

iOS 6 iad not showing in simulator

After I update XCode to get iOS 6 SDK, I see that iAd is not loaded anymore on simulator. I can't try on real device for the moment as I've not updated my iPhone yet.
I didn't find anything about it on the release notes.
Anyone encountring the same issue and resolved it ?
This is a post from a moderator of developer apple forum :
Initial fill rates will reflect the recent launch of iOS 6. Thank you for your patience as we continue to ramp up ad serving.
It seem that ads will appears soon.
I got the same problem with the ads that I have on apps in the app store and newly created apps. After going through the iOS dev forums, and like a few have stated on here, basically its a server issue with apple. There is nothing we can do but wait it out. This is even causing errors in newly created projects as well.
The problem I see is the error is always returned with iOS 6. Both in simulator and on device. When using the iOS simulator with iOS 5.0 a test ad appears as expected. I no longer have an iOS 5.0 device to verify that the behavior is the same with it.

Resources