Open dawid-niedzwiecki opened 1 year ago
I managed to track down the issue a little further. The command flutter build ios-framework
for some weird reason doesn't generate all neccessary frameworks. My empty Flutter module project with only the mapbox_maps_flutter depndency added, compiled to ios frameworks, outputs the following frameworks:
Here I found that I can downlaod Mapbox SDK that contains the following frameworks:
So what I think is going on, is that the Mapbox Maps SDK isn't being downloaded properly during flutter build phase, but I have no idea why.
I have added the following 3 missing frameworks from the Mapbox website to my Xcode project and it worked!!!!!!
Any idea on what's going on? I actually don't know what I am doing, but would be great if someone with native iOS experience would have a look at this.
Sure it is downloaded properly?
I get below error on trying to build:
` -> Installing MapboxCommon (23.5.0)
Http download $ /usr/bin/curl -f -L -o /var/folders/y2/4x76yp_x4y79vgt87tcphxj80000gn/T/d20231116-92428-rujdj1/file.zip https://api.mapbox.com/downloads/v2/mapbox-common/releases/ios/packages/23.5.0/MapboxCommon.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.14.2 cocoapods-downloader/2.0'
[!] Error installing MapboxCommon
[!] /usr/bin/curl -f -L -o /var/folders/y2/4x76yp_x4y79vgt87tcphxj80000gn/T/d20231116-92428-rujdj1/file.zip https://api.mapbox.com/downloads/v2/mapbox-common/releases/ios/packages/23.5.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
`
curl: (22) The requested URL returned error: 401
@cpuell what do you do to get this output?
@cpuell what do you do to get this output?
My bad,.. i think this is probably due to missing authentication with below instructions:
@cpuell what do you do to get this output?
My bad,.. i think this is probably due to missing authentication with below instructions:
did you manage to solve this?
@cpuell what do you do to get this output?
My bad,.. i think this is probably due to missing authentication with below instructions: https://docs.mapbox.com/ios/maps/guides/install/
did you manage to solve this?
did you manage to solve this?
Can someone please have a look at this issue?
bump
I am trying to embed a Flutter module in a native iOS app by following Option B - Embed frameworks in Xcode.
I created two empty projects (one iOS app and one Flutter app). I managed to build my iOS frameworks (by running
flutter build ios-framework
) and I've embedded them in the native project in Xcode. It worked perfectly 😄I then added a dependency on
mapbox_maps_flutter
to my na Flutter project and generated the frameworks again. Now when I run the native iOS app, I get an error in Xcode console: