afanaian / GoogleMapsWithSwiftUISample

8 stars 2 forks source link

Error when trying to build using SwiftUI Preview Canvas #1

Open gesabo opened 4 years ago

gesabo commented 4 years ago

Great demo project! I got Google Maps working when building to device but when I try to build for a canvas preview I get the following error, have you seen this? 🤔 "Error building for iOS Simulator, but linking in object file built for iOS, file '(myproject)/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/GoogleMapsBase' for architecture arm64" I also see this when I am trying to do the same thing on your demo project.

Xcode 12 Beta 5

afanaian commented 4 years ago

Thanks fo reaching out. It looks like it's failing when it tries to initialize GMSMapView. I don't think this worked when I originally wrote the article. I'll take another look when the Xcode beta gets finalized. Canvas just fails way too often.

gesabo commented 4 years ago

Agreed very buggy, but great when it works 😃.

MarcusM1231 commented 3 years ago

Hi, im trying to learn how to use google places and I was wondering where you learned how to use it, like if you found a video or something. if not I was wondering if you had discord or something to help me out! Thank you for your time!

afanaian commented 3 years ago

Hi, im trying to learn how to use google places and I was wondering where you learned how to use it, like if you found a video or something. if not I was wondering if you had discord or something to help me out! Thank you for your time!

Hello, I don't know any off the top of my head, but the SDK is pretty straight forward. Their guide walks you through making the first request: https://developers.google.com/maps/documentation/places/ios-sdk/start

MarcusM1231 commented 3 years ago

Im new to swift and i noticed the documentation is with UIkit and I'm trying to use swiftui

afanaian commented 3 years ago

Im new to swift and i noticed the documentation is with UIkit and I'm trying to use swiftui

You should be able to use SwiftUI Pretty easily with Places API. I'll see if I can find time this weekend to write a sample app for you.

MarcusM1231 commented 3 years ago

thank you so so much. all i want to be able to do is get photos of nearby restaurants and details of it. thank you so much