Error resolving dependencies when upgrading to v10 #546
-
While trying to upgrade to v10 I am encountering issues in xCode. Failed to resolve dependencies Dependencies could not be resolved because root depends on 'maplibre-gl-native-distribution' 6.5.4..<7.0.0 and root depends on 'maplibre-gl-native-distribution' 5.13.0. I followed the installation steps here: Changed the and even added the following to the Podfile: $RCTMLN_SPM_Spec = {
url: "https://github.com/maplibre/maplibre-gl-native-distribution",
requirement: {
kind: "upToNextMajorVersion",
minimumVersion: "6.5.4"
},
product_name: "MapLibre"
} Any ideas what could be going on? Seems like something from the previous version is still hanging around somehow? Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
I fixed it by following these steps and setting the exact version to the one in the error. https://i.sstatic.net/nZ4vf.jpg Still a bit weird it was there after removing and reinstalling. |
Beta Was this translation helpful? Give feedback.
-
I am now getting the following error though: This is my {
"originHash" : "93004ae322b4ca0d0df41da4297c41af20f08ba47df8cd8af368bad1187ee8c2",
"pins" : [
{
"identity" : "geos",
"kind" : "remoteSourceControl",
"location" : "https://github.com/GEOSwift/geos.git",
"state" : {
"revision" : "f510e634c822116fca615064d889300dba40d761",
"version" : "8.1.0"
}
},
{
"identity" : "geoswift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/GEOSwift/GEOSwift",
"state" : {
"revision" : "939c9e7f19a084a425239dd8e2c744beb78da7d6",
"version" : "10.3.0"
}
},
{
"identity" : "maplibre-gl-native-distribution",
"kind" : "remoteSourceControl",
"location" : "https://github.com/maplibre/maplibre-gl-native-distribution",
"state" : {
"revision" : "abe762f1e19e03a4c6943d2aad92c219da384b29",
"version" : "6.5.4"
}
}
],
"version" : 3
} And yeah Mapbox is not being included, but its still being requested somehow In xCode If I remove Mapbox from the Linked Binaries I get the following error: |
Beta Was this translation helpful? Give feedback.
-
@KiwiKilian do you have any ideas on this one? |
Beta Was this translation helpful? Give feedback.
-
Looks quite a few individual problems with your setup. Mapbox probably shouldn't be required anymore. |
Beta Was this translation helpful? Give feedback.
-
@KiwiKilian I finally managed to solve the other errors. However, I still see an error when using This is our #import "AppDelegate.h"
#import "RNBootSplash.h" // https://github.com/zoontek/react-native-bootsplash
// react-native-firebase, https://rnfirebase.io/#configure-firebase-with-ios-credentials
#import <Firebase.h>
// https://github.com/maplibre/maplibre-react-native/blob/main/docs/CustomHttpHeaders.md#custom-http-headers
#import "MLNCustomHeaders.h"
// react-native-background-fetch. https://github.com/transistorsoft/react-native-background-fetch/blob/master/docs/INSTALL-AUTO-IOS.md#appdelegate
#import <TSBackgroundFetch/TSBackgroundFetch.h>
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"AppName";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
[FIRApp configure];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"AppName"
initialProperties:nil];
if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor systemBackgroundColor];
} else {
rootView.backgroundColor = [UIColor whiteColor];
}
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
// maplibre-react-native
[[MLNCustomHeaders sharedInstance] initHeaders];
// react-native-background-fetch
[[TSBackgroundFetch sharedInstance] didFinishLaunching];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
} Is this an issue with our configuration? |
Beta Was this translation helpful? Give feedback.
-
Please provide a minimal reproduction of your problem. Otherwise I still can only suspect your project setup. |
Beta Was this translation helpful? Give feedback.
I fixed it by following these steps and setting the exact version to the one in the error.
https://i.sstatic.net/nZ4vf.jpg
Still a bit weird it was there after removing and reinstalling.