NativeScript / NativeScript/ios

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

Offen
#355 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
150
Forks
43
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
22

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der im Bericht gezeigten Podfile-Konfiguration, einschließlich use_frameworks! und des pre_install-Hooks, und vergleiche sie mit react-native-maps issue 1923. Reproduziere den iOS-Build mit ARCore/Geospatial und der Abhängigkeit GoogleMaps.xcframework; abgeschlossen ist die Aufgabe, wenn der arm64-Build ohne die gemeldeten nicht definierten Google-Maps-Symbole gelinkt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ios, javascript, react-native
Bereich
build-system, mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.