Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error installing MapboxCommon #3739

Closed
AdzeB opened this issue Jan 13, 2025 · 1 comment
Closed

[Bug]: Error installing MapboxCommon #3739

AdzeB opened this issue Jan 13, 2025 · 1 comment
Labels
bug 🪲 Something isn't working

Comments

@AdzeB
Copy link

AdzeB commented Jan 13, 2025

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

@AdzeB AdzeB added the bug 🪲 Something isn't working label Jan 13, 2025
@github-actions github-actions bot reopened this Jan 13, 2025
@AdzeB
Copy link
Author

AdzeB commented Jan 15, 2025

what I did was I made my access token only permission be download:read and it worked

@AdzeB AdzeB closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant