Skip to content

[Bug]: Error installing MapboxCommon #3739

@AdzeB

Description

@AdzeB

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: 403

Steps to Reproduce:

  1. Using an Expo-based project with RNMapbox.
  2. Attempted to build the project using eas cli
  3. 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

Additional links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions