yatechnologies / googlemaps-sp Goto Github PK
View Code? Open in Web Editor NEWSwift Package for Google Maps iOS SDK
Home Page: https://developers.google.com/maps/documentation/ios-sdk/overview
License: Other
Swift Package for Google Maps iOS SDK
Home Page: https://developers.google.com/maps/documentation/ios-sdk/overview
License: Other
I'm creating place autocomplete in SwiftUI, using this SPM but 'autocompleteQuery' not found.
if you use cocoapods google maps, 'autocompleteQuery' is ready, nothing in this SPM.
i hope you upgrade this spm, beacuse i really need this spm for my app
### This sample code using GoogleMaps-SP SPM, for autocomplete place searching
FindPlace.zip
I'm using SPM Version 6.0.0
I really need this urgently for my app, because my app will be update in app store for many bug
Hi, I have a bug. I use this library and have such case:
I have my local SPM that includes GoogleMaps-SP, and my package added to my app. When I building my app for the iPhone simulator like this
xcodebuild -scheme -workspace .xcworkspace -configuration Simulator -derivedDataPath build -sdk iphonesimulator
when I drop on iPhone simulator and launch it, I have a crash on librarary:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/GoogleMaps.framework/GoogleMaps
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/5BC26852-49D8-46B3-9484-D63101EE7751/data/Containers/Bundle/Application/1B718674-D1BB-4F15-A98A-68752564C704/MyApp.app/...
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file), '/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file), '/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file, not in dyld cache), '/Users/tequila/Library/Develope
(terminated at launch; ignore backtrace)
When I build an archive for a device(xcodebuild -scheme -workspace .xcworkspace -configuration Release -destination generic/platform=iOS clean) or run from xcode for the simulator - everything is ok.
Do you have any idea why?
Hi... ive being using the this package in my app and its all been working great. I recently added a widget extension which has no dependencies at all but for some reason this package is being added to the extension and the main app. When I try to upload to the App Store I get the error:
Any ideas what is causing this and how I can fix it??
Im getting this output when trying to build for ios simulator
I think it may be cause im using m1 mac (on previous mac with intel, did not have such issues)
ld: warning: ld: warning: ignoring file /Users/szymon/Library/Developer/Xcode/DerivedData/gps-coordinates-ios-gejaxefktgbviicvhqytrdpzbosq/Build/Products/Debug-iphonesimulator/GoogleMapsBase.framework/GoogleMapsBase, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 ignoring file /Users/szymon/Library/Developer/Xcode/DerivedData/gps-coordinates-ios-gejaxefktgbviicvhqytrdpzbosq/Build/Products/Debug-iphonesimulator/GoogleMaps.framework/GoogleMaps, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 ld: warning: ignoring file /Users/szymon/Library/Developer/Xcode/DerivedData/gps-coordinates-ios-gejaxefktgbviicvhqytrdpzbosq/Build/Products/Debug-iphonesimulator/GoogleMapsCore.framework/GoogleMapsCore, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GMSMapView", referenced from: objc-class-ref in MapView.o "_OBJC_CLASS_$_GMSCameraUpdate", referenced from: objc-class-ref in GoogleMapViewCompat.o "_OBJC_CLASS_$_GMSCoordinateBounds", referenced from: objc-class-ref in GoogleMapViewCompat.o "_OBJC_CLASS_$_GMSMapStyle", referenced from: objc-class-ref in GoogleMapViewCompat.o "_OBJC_CLASS_$_GMSCameraPosition", referenced from: objc-class-ref in GoogleMapViewCompat.o "_OBJC_CLASS_$_GMSMarker", referenced from: objc-class-ref in GoogleMapViewCompat.o objc-class-ref in LocationExtensions.o "_OBJC_CLASS_$_GMSServices", referenced from: objc-class-ref in MApp.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was trying to fork this repo and add support for v8.2.0 for SPM but I haven't been able to do it.
The issue I face is that I'm unable to install the app on a device because the Info.plist file is not found. I have checked in the build folder as well as in the .app
file, the correct Info.plist is present there.
The v8.0.0
release on this repo works as expected.
Any help here would be highly appreciated.
Thanks a lot!
Hi,
I'm working on a map service application and i would like to use Yassir service.
Is there a method to generate a link request for Yassir using user and destinations coordinates , like in google maps direction api ?
(https://www.google.com/maps/dir/?api=1&origin=34.1030032,-118.41046840000001&destination=34.059808,-118.368152)
thank you
Please add required reason api file because it is a requirement from apple to be able to distribute app
I checked it with this library:
https://github.com/Wooder/ios_17_required_reason_api_scanner/tree/main
and there is a need to add info for the reasons that are used in the sdk: file timestamp and system boot time
More details described in this articles:
https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api
https://jochen-holzer.medium.com/embrace-the-evolution-preparing-your-ios-app-for-the-required-reason-api-38f2d12bbce5
My first post on github: I added the GoogleMaps-SP Swift Package to my app. Both Google Maps and Google Places run perfectly on Simulator... But When installing the app on device, it builds successfully, it goes thru copying all the files to iPhone, and at the end it gives the error "Unable to Install App".
If I remove the GoogleMaps-SP Swift Package from my app, and off course delete all references to Google Maps, I can build, install on iPhone, and run my app with no problem. So it has something to do with the GoogleMaps-SP Swift Package.
Even though in the error details, it says, "No code signature found"... I don't have any problems with code signing.
error details:
System Information
macOS Version 10.15.7 (Build 19H2)
Xcode 12.0.1 (17220)
iOS 14.0.1 running on iPhone SE
I need to use GoogleMaps-SP from an framwork.
Setup:
Demo.xcworkspace
The app does compile but I am getting this error on runtime:
dyld[25710]: Library not loaded: @rpath/GoogleMaps.framework/GoogleMaps
Referenced from: /private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/Framework.framework/Framework
Reason: tried: '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/Framework.framework/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/System/Library/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file)
Here is a barebone sample project to reproduce:
https://github.com/nayooti/GoogleMaps-SP-Demo
Google Maps SDK for iOS version 5.2.0 have been officially released by Google but not yet available here.
Google Maps SDK for iOS and Google Places SDK for iOS version 6.0.1 have been officially released by Google but not yet available here.
I have problems downloading version 4.2, it responds with 404 code.
Google Maps SDK for iOS and Google Places SDK for iOS version 6.0.1-beta have been officially released by Google but not yet available here.
Adding Googlemaps-SP to my Framework result in this runtime error
dyld: Library not loaded: @rpath/GoogleMaps.framework/GoogleMaps
Referenced from: /private/var/containers/Bundle/Application/44EBC519-F1CD-4C1A-9D9E-C6845E62CCFB/SomeApp.app/SomeApp
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib
The latest version is 7.4, please update it.
Google Maps SDK for iOS and Google Places SDK for iOS version 5.1.0 have been officially released by Google but not yet available here.
Google Maps SDK for iOS and Google Places SDK for iOS version 6.0.0 have been officially released by Google but not yet available here.
Im getting this output when trying to build for ios simulator
(similar with this issue #32 but different ios simulator)
ld: warning: directory not found for option '-F/Users/mycompany/Documents/myProject/googlemaps'
ld: warning: ignoring file /Users/mycompany/Library/Developer/Xcode/DerivedData/MyApp-dyxcihfvbqpmphdmhvfxbrijpiux/Build/Products/Release-iphonesimulator/GoogleMapsBase.framework/GoogleMapsBase, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/mycompany/Library/Developer/Xcode/DerivedData/MyApp-dyxcihfvbqpmphdmhvfxbrijpiux/Build/Products/Release-iphonesimulator/GooglePlaces.framework/GooglePlaces, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/mycompany/Library/Developer/Xcode/DerivedData/MyApp-dyxcihfvbqpmphdmhvfxbrijpiux/Build/Products/Release-iphonesimulator/GoogleMapsM4B.framework/GoogleMapsM4B, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/mycompany/Library/Developer/Xcode/DerivedData/MyApp-dyxcihfvbqpmphdmhvfxbrijpiux/Build/Products/Release-iphonesimulator/GoogleMapsCore.framework/GoogleMapsCore, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/mycompany/Library/Developer/Xcode/DerivedData/MyApp-dyxcihfvbqpmphdmhvfxbrijpiux/Build/Products/Release-iphonesimulator/GoogleMaps.framework/GoogleMaps, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GMSCameraPosition", referenced from:
objc-class-ref in Presentation.o
"_OBJC_CLASS_$_GMSCircle", referenced from:
objc-class-ref in Presentation.o
"_OBJC_CLASS_$_GMSMapView", referenced from:
objc-class-ref in Presentation.o
"_OBJC_CLASS_$_GMSMarker", referenced from:
objc-class-ref in Presentation.o
"_OBJC_CLASS_$_GMSServices", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm having this error when I build the project
Xcode 14.0.1
As this is an important dependency for many apps, a required privacy manifest would be helpful.
I'm creating place autocomplete in SwiftUI, using this SPM but 'autocompleteQuery' not found.
if you use cocoapods google maps, 'autocompleteQuery' is ready, nothing in this SPM.
i hope you upgrade this spm, beacuse i really need this spm for my app
### This sample code using GoogleMaps-SP SPM, for autocomplete place searching
FindPlace.zip
I'm using SPM Version 6.0.0
I really need this urgently for my app, because my app will be update in app store for many bug
@karimhm @kawache @achigara @azamouchi @chikiadel
Hey ๐
I am trying to integrate using the following in the Carfile
github "YAtechnologies/GoogleMaps-SP" "6.0.0"
to build dependencies for my packages
but upon building, i get an error
*** Skipped building GoogleMaps-SP due to the error:
โธ Dependency "GoogleMaps-SP" has no shared framework schemes for any of the platforms: iOS
what am I doing wrong here?
My Xcode version is 13
Remove Build Requirements and Building sections from README.md because they are causing confusion.
I tried your script to pack google maps into XCFrameworks myself, but on download Xcode says that checksums are different from what it counted.
I downloaded by url and counted checksum of dowloaded (by command in the script and by swift package compute-checksum ./GoogleMaps.xcframework-4.0.0.zip >> checksum_4_0_0
), and it was the same as in package.swift.
What could I do wrong?
Google Maps SDK for iOS and Google Places SDK for iOS version 6.0.0-beta have been officially released by Google but not yet available here.
With the release of Google Maps 6.0.0 and Google Places 6.0.0. Google officially offer prebuilt XCFramework, those official XCFrameworks must be used instead of the manually built ones.
Hi! I'm using this repo as a dependency in my own Package, however if I try to run
swift build -Xswiftc "-sdk" -Xswiftc "
xcrun --sdk iphonesimulator --show-sdk-path" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.0-simulator"
I get an error:
error: artifact 'GoogleMapsCore' does not support the target platform and architecture ('Triple(tripleString: "x86_64-apple-macosx", arch: TSCUtility.Triple.Arch.x86_64, vendor: TSCUtility.Triple.Vendor.apple, os: TSCUtility.Triple.OS.macOS, abi: TSCUtility.Triple.ABI.unknown)')
error: artifact 'GoogleMapsBase' does not support the target platform and architecture ('Triple(tripleString: "x86_64-apple-macosx", arch: TSCUtility.Triple.Arch.x86_64, vendor: TSCUtility.Triple.Vendor.apple, os: TSCUtility.Triple.OS.macOS, abi: TSCUtility.Triple.ABI.unknown)')
error: artifact 'GoogleMaps' does not support the target platform and architecture ('Triple(tripleString: "x86_64-apple-macosx", arch: TSCUtility.Triple.Arch.x86_64, vendor: TSCUtility.Triple.Vendor.apple, os: TSCUtility.Triple.OS.macOS, abi: TSCUtility.Triple.ABI.unknown)')
building for iPhone not error but building for iPhone simulator give this errors in the picture.
Undefined symbol: OBJC_CLASS$_GMSServices
Undefined symbol: OBJC_CLASS$_GMSMapView
Undefined symbol: OBJC_CLASS$_GMSCircle
Undefined symbol: _GMSProject
Undefined symbol: OBJC_CLASS$_GMSCameraUpdate
Undefined symbol: OBJC_CLASS$_GMSPolyline
Undefined symbol: OBJC_CLASS$_GMSCoordinateBounds
Undefined symbol: OBJC_CLASS$_GMSPolygon
Undefined symbol: OBJC_CLASS$_GMSMarker
Undefined symbol: OBJC_CLASS$_GMSCameraPosition
Undefined symbol: OBJC_CLASS$_GMSMutablePath
this is Xcode output in error
ld: warning: ignoring file /Users/kjoe/Library/Developer/Xcode/DerivedData/OnRoad-cvupkmnytuaneydhjuxztnopypjs/Build/Products/Release-iphonesimulator/GoogleMapsBase.framework/GoogleMapsBase, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/kjoe/Library/Developer/Xcode/DerivedData/OnRoad-cvupkmnytuaneydhjuxztnopypjs/Build/Products/Release-iphonesimulator/GoogleMapsM4B.framework/GoogleMapsM4B, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/kjoe/Library/Developer/Xcode/DerivedData/OnRoad-cvupkmnytuaneydhjuxztnopypjs/Build/Products/Release-iphonesimulator/GooglePlaces.framework/GooglePlaces, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/kjoe/Library/Developer/Xcode/DerivedData/OnRoad-cvupkmnytuaneydhjuxztnopypjs/Build/Products/Release-iphonesimulator/GoogleMaps.framework/GoogleMaps, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
ld: warning: ignoring file /Users/kjoe/Library/Developer/Xcode/DerivedData/OnRoad-cvupkmnytuaneydhjuxztnopypjs/Build/Products/Release-iphonesimulator/GoogleMapsCore.framework/GoogleMapsCore, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture arm64:
"OBJC_CLASS$_GMSServices", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_GMSMapView", referenced from:
objc-class-ref in RastreoViewController.o
"OBJC_CLASS$_GMSCircle", referenced from:
objc-class-ref in RastreoViewController.o
"_GMSProject", referenced from:
-[GMUClusterItemQuadItem initWithClusterItem:] in GoogleMapsUtils(GMUNonHierarchicalDistanceBasedAlgorithm.o)
-[GMUNonHierarchicalDistanceBasedAlgorithm clustersAtZoom:] in GoogleMapsUtils(GMUNonHierarchicalDistanceBasedAlgorithm.o)
"OBJC_CLASS$_GMSCameraUpdate", referenced from:
objc-class-ref in TripView.o
objc-class-ref in RastreoViewController.o
objc-class-ref in TripsListTableViewCell.o
objc-class-ref in GeoZoneViewController.o
"OBJC_CLASS$_GMSPolyline", referenced from:
objc-class-ref in TripView.o
objc-class-ref in RastreoViewController.o
objc-class-ref in TripsListTableViewCell.o
"OBJC_CLASS$_GMSCoordinateBounds", referenced from:
objc-class-ref in TripView.o
objc-class-ref in RastreoViewController.o
objc-class-ref in TripsListTableViewCell.o
objc-class-ref in GeoZoneViewController.o
objc-class-ref in GoogleMapsUtils(GMUDefaultClusterRenderer.o)
"OBJC_CLASS$_GMSPolygon", referenced from:
objc-class-ref in RastreoViewController.o
objc-class-ref in GeoZoneViewController.o
"OBJC_CLASS$_GMSMarker", referenced from:
objc-class-ref in TripView.o
objc-class-ref in RastreoViewController.o
objc-class-ref in TripsListTableViewCell.o
objc-class-ref in NotificationDetailView.o
objc-class-ref in GeoZoneViewController.o
objc-class-ref in FilterViewController.o
objc-class-ref in GoogleMapsUtils(GMUDefaultClusterRenderer.o)
...
"OBJC_CLASS$_GMSCameraPosition", referenced from:
objc-class-ref in TripView.o
objc-class-ref in RastreoViewController.o
objc-class-ref in NotificationDetailView.o
"OBJC_CLASS$_GMSMutablePath", referenced from:
objc-class-ref in TripView.o
objc-class-ref in RastreoViewController.o
objc-class-ref in TripsListTableViewCell.o
objc-class-ref in GeoZoneViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the project is with Xcode 12.5
Update to the latest Google Maps 6.1.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.