FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
117 stars 19 forks source link

Failed Step: Install pods / Mapbox #3723

Open B4sti3n opened 2 weeks ago

B4sti3n commented 2 weeks ago

Can we access your project?

Current Behavior

When deploying my FlutterFlow project to the Apple App Store via CodeMagic, I encounter a CocoaPods installation error specifically related to the MapboxCommon package. The error is an HTTP 401, indicating that the package could not be downloaded due to an authorization issue. My code, which is relatively simple, aims to display a Mapbox map with a few markers.

The error prevents successful deployment to the App Store, despite the map rendering correctly in the web version of FlutterFlow. I am using the latest mapbox_maps_flutter plugin version 2.1. Below is a snippet of the error:

Failed Step: Install pods

┌─────────────────────────────────────────────────────────┐ │ A new version of Flutter is available! │ │ │ │ To update to the latest version, run "flutter upgrade". │ └─────────────────────────────────────────────────────────┘

[!] Error installing MapboxCommon [!] /usr/bin/curl -f -L -o /var/folders/w2/rrf5p87d1bbfyphxc7jdnyvh0000gn/T/d20240901-1899-m0 59sp/file.zip https://api.mapbox.com/downloads/v2/mapbox-common/releases/ios/packages/24.2.0/MapboxCommon.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.14.2 cocoapods-downloader/2.0'

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 179 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 401

Expected Behavior

The application should publish to the Apple App Store without errors, and the deployment process should complete successfully without encountering any issues related to CocoaPods or Mapbox dependencies.

Steps to Reproduce

Go to Settings and Integrations. Select Mobile Deployment. Click on Deploy to App Store. This sequence results in the described error.

Reproducible from Blank

Bug Report Code (Required)

ITFXkvHq05NOmNxE+ZD2cMIxjikwGUALa+dI0tZ+TQ0jF5D4PZl/dfekSFZWXeKzaHxcG038jkkd0vTuieDyG/YEHzuZb7Z5wbt+FhPPbGG6RZSVDMyoOX8lBZlbfRWx07TRkSYmPtFfSGAB716Qetm/Yz2Cf9qOYwx5e6fDbOY=

Visual documentation

I have attached visual documentation, including screenshots and the full code, to provide further context for the error encountered.

https://www.swisstransfer.com/d/d5f826f5-a84d-4881-917d-abeff8b3b6a9

Environment

FlutterFlow Version: 4.1.85
Browser Name and Version: Google Chrome, Version 128.0.6613.85
Operating System: macOS Sonoma, Version 14.6.1

Additional Information

No response

paulperez-dev commented 2 weeks ago

Hi @B4sti3n! So sorry you are facing this issue. Are you able to make an iOS build locally?

B4sti3n commented 1 week ago

Hi Paul, unfortunatly It always worked like that. Since 1 month stopped working with the deployment in Flutterflow... I am really stuck here because i do not want to deploy it outside FF. I did a really easy code in my Custom MapBox Widget so you can see what is causing that. Did you re-produce the bug ? Is that an update that FF has to be done with their packages ?

B4sti3n commented 5 days ago

@paulperez-dev :)

paulperez-dev commented 1 day ago

Hi @B4sti3n,

The error seems to be related to an issue with your access token. Could you please review your configuration to ensure everything is set up correctly?