r/iOSProgramming • • Aug 10 '19

Question Why that use google maps in the xcode simulator show some markers that I added. But when I build the app to test it in my Iphone, show the map but without markers?

0 Upvotes

7 comments sorted by

24

u/[deleted] Aug 10 '19

2

u/DadInKayak Swift Aug 10 '19

How are the markers added to the map? Is it done in code when the view loads and where does it get the data? Or is it done via UI?

0

u/georgy1972 Aug 10 '19

But you need to have to choices. A simulator in your mac and your real phone. In both needs to work same. I am an Android developer and this never happen in Android. The simulator is there to test the app and after your real device to try it too. Before of upload it to apple store, I need to try it in my own phone to see if works or not.

3

u/dilln Aug 10 '19

You have the choice to code it however you want.

14

u/[deleted] Aug 10 '19

[removed] — view removed comment

1

u/georgy1972 Aug 10 '19

I am developing an app in xcode. My first Ios app. Using google maps. I have the gooe api, also de frameworks installed. I Added some markers in the map. When I run the app in the simulator, show the map, the location and the markers. But when I build the app and install it in my Iphone, show the map, the location but no markers. Why is happening?

11

u/s3_gunzel Aug 10 '19

The iOS sim is, for all intents and purposes, a separate device for each instance you create. So it’s like having two phones. You wouldn’t expect two devices to have the same data on them.