NativeScript / NativeScript/ios

Is react-native-maps worked with ARCore/Geospatial (iOS)

Open
#355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
150
Forks
43
Avg merge
3d 10h
Merged PRs (30d)
22

Description

There is some issue coming from reactVision and react-native-maps,

As the Geospatial need to add below code to Podfile,

use_frameworks! :linkage => :dynamic
pod 'ARCore/Geospatial', '~> 1.51.0'

and this will show the error as below

[!] The 'Pods-XXX' target has transitive dependencies that include statically linked binaries: (/Users/XXX/XXX/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework)

therefore, I have added below code to ignore verifying static or not (https://github.com/react-native-maps/react-native-maps/issues/1923)
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

however, the error message is shown below in build phase, how can I solve the undefined symbols raised?

ld: warning: Could not find or use auto-linked framework 'UIUtilities': framework 'UIUtilities' not found
Undefined symbols for architecture arm64:
"_GMSProject", referenced from:
-[GMUWeightedLatLng initWithCoordinate:intensity:] in GoogleMapsUtils26
"_GMSStyleSpans", referenced from:
-[AIRGoogleMapPolyline configureStyleSpansIfNeeded] in AIRGoogleMapPolyline.o
"OBJC_CLASS$_GMSCameraPosition", referenced from:
in RCTConvert+GMSMapViewType.o
"OBJC_CLASS$_GMSCameraUpdate", referenced from:
in AIRGoogleMap.o
"OBJC_CLASS$_GMSCircle", referenced from:
in AIRGoogleMapCircle.o
"OBJC_CLASS$_GMSCoordinateBounds", referenced from:
in AIRGoogleMap.o
"OBJC_CLASS$_GMSGroundOverlay", referenced from:
in AIRGoogleMapOverlay.o
"OBJC_CLASS$_GMSMapID", referenced from:
in AIRGoogleMap.o
"OBJC_CLASS$_GMSMapStyle", referenced from:
in AIRGoogleMap.o
"OBJC_CLASS$_GMSMapView", referenced from:
OBJC_CLASS$_AIRGoogleMap in AIRGoogleMap.o
"OBJC_CLASS$_GMSMapViewOptions", referenced from:
in AIRGoogleMap.o
"OBJC_CLASS$_GMSMarker", referenced from:
OBJC_CLASS$_AIRGMSMarker in AIRGMSMarker.o
in AIRGoogleMapMarker.o
"OBJC_CLASS$_GMSMutablePath", referenced from:
in AIRGoogleMapPolygon.o
"OBJC_CLASS$_GMSPolygon", referenced from:
OBJC_CLASS$_AIRGMSPolygon in AIRGMSPolygon.o
"OBJC_CLASS$_GMSPolyline", referenced from:
OBJC_CLASS$_AIRGMSPolyline in AIRGMSPolyline.o
"OBJC_CLASS$_GMSServices", referenced from:
in AIRGoogleMapManager.o
"OBJC_CLASS$_GMSStrokeStyle", referenced from:
in AIRGoogleMapPolyline.o
"OBJC_CLASS$_GMSStyleSpan", referenced from:
in AIRGoogleMapPolyline.o
"OBJC_CLASS$_GMSSyncTileLayer", referenced from:
OBJC_CLASS$_WMSTileOverlay in AIRGoogleMapWMSTile.o
OBJC_CLASS$_GMUHeatmapTileLayer in GoogleMapsUtils14
"OBJC_CLASS$_GMSURLTileLayer", referenced from:
in AIRGoogleMapUrlTile.o
"OBJC_METACLASS$_GMSMapView", referenced from:
OBJC_METACLASS$_AIRGoogleMap in AIRGoogleMap.o
"OBJC_METACLASS$_GMSMarker", referenced from:
OBJC_METACLASS$_AIRGMSMarker in AIRGMSMarker.o
"OBJC_METACLASS$_GMSPolygon", referenced from:
OBJC_METACLASS$_AIRGMSPolygon in AIRGMSPolygon.o
"OBJC_METACLASS$_GMSPolyline", referenced from:
OBJC_METACLASS$_AIRGMSPolyline in AIRGMSPolyline.o
"OBJC_METACLASS$_GMSSyncTileLayer", referenced from:
OBJC_METACLASS$_WMSTileOverlay in AIRGoogleMapWMSTile.o
OBJC_METACLASS$_GMUHeatmapTileLayer in GoogleMapsUtils14
"_kGMSTileLayerNoTile", referenced from:
-[GMUHeatmapTileLayer tileForX:y:zoom:] in GoogleMapsUtils14
ld: symbol(s) not found for architecture arm64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Podfile configuration shown in the report, including use_frameworks! and the pre_install hook, and compare it with react-native-maps issue 1923. Reproduce the iOS build using ARCore/Geospatial and the GoogleMaps.xcframework dependency; done means the arm64 build links without the reported Google Maps undefined symbols.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.