-
-
Notifications
You must be signed in to change notification settings - Fork 933
Closed
Labels
bug 🪲Something isn't workingSomething isn't working
Description
Mapbox Implementation
Mapbox
Mapbox Version
11.3.0
React Native Version
0.74.3
Platform
iOS
@rnmapbox/maps version
v10.1.20
Standalone component to reproduce
import React, { useState } from 'react';
import Mapbox, { MapView, StyleImport, Camera, MarkerView } from '@rnmapbox/maps';
const MapScreen = () => {
const [defaultCoordinate, setDefaultCoordinate] = useState([
28.047304, -26.204103,
]);
return (
<MapView
style={{ flex: 1 }}
styleURL={"mapbox://styles/mapbox/standard-beta"}
>
<StyleImport
id="basemap"
existing
config={{
lightPreset: "day",
}}
/>
<Camera
zoomLevel={8}
animationMode="moveTo"
animationDuration={2000}
maxZoomLevel={20}
centerCoordinate={defaultCoordinate}
/>
</MapView>
);
}Observed behavior and steps to reproduce
When attempting to build my project, I encountered the following error during the CocoaPods installation phase for MapboxCommon:
[INSTALL_PODS] Installing MapboxCommon (24.4.0)
[INSTALL_PODS] [!] Error installing MapboxCommon
[INSTALL_PODS] [!] /usr/bin/curl -u mapbox:sk.xxxxxxxx -f -L -o /var/folders/d6/w6272hfj1tj2vtb1bztsd0m80000gn/T/d20250113-10177-66r8o4/file.zip https://api.mapbox.com/downloads/v2/mapbox-common/releases/ios/packages/24.4.0/MapboxCommon.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.16.2 cocoapods-downloader/2.1'
[INSTALL_PODS] % Total % Received % Xferd Average Speed Time Time Time Current
[INSTALL_PODS] Dload Upload Total Spent Left Speed
0 236 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
[INSTALL_PODS] curl: (22) The requested URL returned error: 403Steps to Reproduce:
- Using an Expo-based project with RNMapbox.
- Attempted to build the project using eas cli
- Encountered a 403 error while downloading MapboxCommon (24.4.0) via CocoaPods.
Expected behavior
The build process should be completed without errors, and the MapboxCommon dependency should be installed as expected. This was working without issue before this error
Notes / preliminary analysis
- The error suggests a permissions issue with the provided token (curl: (22) The requested URL returned error: 403).
- The URL appears to be correct: https://api.mapbox.com/downloads/v2/mapbox-common/releases/ios/packages/24.4.0/MapboxCommon.zip.
- The issue might be related to:
- Recent changes in how RNMapbox or Mapbox handles dependency installation.
- A misconfiguration or recent update in CocoaPods.
Additional links and references
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug 🪲Something isn't workingSomething isn't working