I was working with XCode 4.3 and having a working code. But after upgrading to 4.4 i met with a problem. The problem is that current user location is not being showed on the iphone simulator. I mean the blue dot. And also my pins dissappeared and map is not focusing to the area i wanted. Do u have any idea about this problem?
Did you try this
self.mapView.showsUserLocation=YES;
GPS services doesn't work well in simulator. Apple has supported it in simulator 5 but not in the prior versions.
Make sure you have the Edit Scheme... > Run > Options the 'Allow Location Simulation' checked.
I also had the issue at first. Pin was there but no map displayed, only a grid.
I played with the map to move it around and it start working.
I have xcode 7.3.1
Related
When running Xcode shows older version of the project both on iOS simulator and iOS Device! It never shows the new background picture I have added although it's there in the storyboard and saved!
I tried cleaning the project even with the option key pressed but still!
I have localizations and it was working well!
What could it be? Where is the problem?
I tried searching but I ran out of terms and still no effective results.
Sometimes apps get "stuck" in the simulator. Try deleting it (long press, then click the "x") and then check ~/Library/Application Support/iPhone Simulator/[ios version]/Applications to see if it still exists. If it does, just delete it.
You can also try iOS Simulator > Reset Content and Settings....
I had a similar issue where an old storyboard were used on device instead of the most updated one I was working on.
The problem was due to the localization, I had my storyboard localized in 2 different languages and the device were using the storyboard localized in an other language than the default one which was somehow outdated.
Hope it helps.
Have an odd thing happening with an app I'm on.
Firstly, the code and particular action within the app is fine when running on the iOS 5.1 simulator. When I run the same app on iOS 6.0 simulator, the action doesn't work.
Building the code on 5.1 sim produces an error free build. Building on 6.0 produces yellow warnings only.
I kind of expected this after some things being deprecated after the SDK upgrade.
The yellow warnings I have are of a deprecation but only that a Group Table View Background Color is now not available in 6.0 so I don't think that's affecting it.
Before posting code that works in 5.1, I'll explain.
I can fill, enter and save some text in a plain old text box. I then use that saved text to populate a picker in another tab.
As I say, works great with no problems in 5.1, seems not to work in 6.0.
Has anyone experienced similar things populating their pickers from 5.1 to 6.0?
Is their anything common that you guys know about before I delve deeper?
Many thanks for reading,
Gaz.
please make sure the you have copied the yourDataBase.sqlite from iOS5 simulator to your application bundle in iOS6 simulator.
I recently started using Xcode 4.2 and the iOS 5 simulator. When I update an older version of my app pre-installed in the simulator, it updates the app just fine but the app icon is not updated. Even with cleaning and building the app ahead of time (sometimes a couple of times) this seems to be the case. Is this a bug or am I doing something wrong?
EDIT: Still the same problem, but when I quit the simulator and start it again (NOT deleting the app), the icon is updated. That's a little encouraging at least. Has anyone else experienced this?
I've had this problem for a while and cleaning the project didn't work either. I finally found a trick to do this. It works at least in iOS 6, I'm not sure in previous versions. The trick is to simply move the app to a folder. The moment you move it there it should display the new icon, and then you can move it out again.
Despite others' answers, it would appear that your problem is a bug.
It would probably be wise to report this. Otherwise, try making a new project and trying again.
Hope all goes as planned.
Theres a new category in the plist file called Icons Files (iOS 5.0). Try adding those file names to your target info like so:
In this tab:
The names and size much also be exact. See this Apple Technical Q&A #1686:
57x57 - Icon.png
114x114 - Icon#2x.png
72x72 - Icon-72.png
50x50 - Icon-Small-50.png
29x29 - Icon-Small.png
58x58 - Icon-Small#2x.png
I ran into a similar problem after renaming the app and adding the Icon files category as described in one of the other answers. No icon would show up in either simulator or device. Tried a clean build as well as restarting simulator and Xcode, no success
The solution for me was to drag the icons from my Resources to the two empty wells under App Icons located under Targets -> Summary. After that my icons showed up in both simulator and device. I´m running Xcode 4.3.1
this works for me.
In iOS Simulator :
iOS Simulator -> Reset Content and Settings
Be aware that it removes all things from the simulator to the trash... but it does work.
Make sure of icons sizes are right at the Image Asset folder
In my Xcode 4.0 IOS 4.3 instruments not working when checking leaks on device.It works fine with simulator.I tried reinstalling my Xcode.It doesn't show anything when i choose targets in the instrument.Any help is appreciated.
Thanks in advance.
Did you try selecting the target from the top bar;(Next to the Record, restart button)
After connecting the device, it should show choose target.
Try choosing your target from there.
Here is a list of problems I have after building my app with xcode 3.2.3 and running it on simulator 4.0.
Of course, all these issues did work with the previous environment.
Location manager does not update location. It used to update with the location at Cupertino but now I get locationManager:didFailWithError: called with error 0.
I have a map view and the panning doesn't work. Moving the map around nor the pinching gesture.
When I click and hold on the map my app, sometimes, crashes and the Log says something about long touch.
Thanks,
Tzur.
The simulator no longer returns a faked location but tries to use your Mac's Airport to locate you. Do you have Airport activated?