Xcode 4.1 - location prompt in iPhone simulator - iphone

The app I'm working on uses CLLocationManager, and previously, when the app starts asking for location info in the iPhone simulator, I would get a little popup.
Yesterday I installed Xcode 4.1, and now I no longer get the prompt. My app also never gets any location information, and times out every time.
Anyone know what I should check or where to start figuring this out?

You're not alone, seems to be a problem with the iPhone Simulator in Lion & Xcode 4.1, https://devforums.apple.com/message/491549

Related

iOS Simulator could not find the SDK, SDK may need to be reinstalled

Here I am stuck in another problem,am working on an iOS Application today and as i run my Application for iPhone 5.0 Simulator got some weird issue on that simulator only.
There were two window pop Over alert on my MacBook Screen when i was trying run again and again getting same issue for that simulator only.that pop over alert windows showing below quotation.
"iOS Simulator could not find the SDK. The SDK may need to be reinstalled."
"The simulated application quit."
It seems that this issue occurring due to the improper installation of that simulator.
Please help me by suggesting related to this issue.
Whether i have to reinstall that simulator again on my Xcode or need something else.
Any suggestion would be appreciated from the bottom of my Heart.
I've seen this on coworkers computers and it was because they had dock icons not pointing to Applications/Xcode.app/Contents/Applications/iPhone Simulator.app
I would try launching the simulator from that directory or deleting the Application/Xcode.app and reinstalling from the Mac App Store.

Xcode 4.2.1: universal app runs on iPad but not on iPhone

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.

iPhone simulator 4.3 with xcode 4 is not showing current location

I have xcode 4 and iphone simulator 4.3. i have downloaded sample project from apple developer website which shows current location. So code is absolutely OK.I have mac mini with wifi on. I have tested that project and once it run. but after that despite of many attempts it does not show location and gives error finding location.
What will be the reason of it.
The location should be defaulting to Cupertino.
In Xcode 4.2/iOS5 beta, you can specify a location to test with for the sim.
It did the same to me: it showed the location at first, then I installed the xcode 4.2 beta, then when I went back to 4.1 location was not showing anymore and CLLocationManager was throwing an location error.
I did the following, and the problem was fix (I don't know if both actions are required or only one will suffice, because now it works and can't reproduce):
Run te simulator then:
unplug the network cable
change the device to iPhone (retina): Hardware > Device > iPhone (Retina)
I did this by mistake, and it fixed the location on my iMac.
You can't get location on simulator. So try on a device. CLLocation class is hardware specific.

My app reboots iPhone on 4.1 iOS

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?

system("killall SpringBoard"); not working in ios4.2.1?

So I had created an app that used the command system("killall SpringBoard"); and it has worked just fine on 4.0 - 4.1. I just recently began testing the app on 4.2 and it still works when I run it in simulator, but when I run it on the device nothing happens. Does anyone know what the cause of this is? The device is a iPhone 3GS.
If you want to restart SpringBoard cleanly, please use
notify_post("com.apple.language.changed");