cannot find type 'Style' in scope and method does not override any method from its superclass
Environment
- Dev OS: [e.g. OSX 15.3]
- @rnmapbox/maps version: [10.1.33]
- React Native version: [0.75.3]
i was using default Mapbox version in pod file but after upgrading to XCode to v.16 i got Bitcode error so i upgrade RNMapboxMapsVersion to $RNMapboxMapsVersion = '= 11.6.0' and after that i got these errors :
`/Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCircleLayer.swift:8:34: cannot find type 'Style' in scope
override func makeLayer(style: Style) throws -> Layer { ~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCircleLayer.swift:8:17: method does not override any method from its superclass
override func makeLayer(style: Style) throws -> Layer { ^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCircleLayer.swift:68:31: cannot find type 'Style' in scope
override func apply(style : Style) throws {
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCircleLayer.swift:68:17: method does not override any method from its superclass
override func apply(style : Style) throws {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCustomLocationProvider.swift:48:52: cannot find type 'Style' in scope
public func addToMap(_ map: RNMBXMapView, style: Style) {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCustomLocationProvider.swift:231:46: no type named 'LocationProviderDelegate' in module 'MapboxMaps'
var locationProviderDelegate: MapboxMaps.LocationProviderDelegate?
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCustomLocationProvider.swift:233:45: no type named 'LocationProviderDelegate' in module 'MapboxMaps'
func setDelegate(_ delegate: MapboxMaps.LocationProviderDelegate) {
^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXCustomLocationProvider.swift:219:7: type 'CustomLocationProvider' does not conform to protocol 'LocationProvider'
class CustomLocationProvider: LocationProvider {
^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillExtrusionLayer.swift:7:34: cannot find type 'Style' in scope
override func makeLayer(style: Style) throws -> Layer {
^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillExtrusionLayer.swift:7:17: method does not override any method from its superclass
override func makeLayer(style: Style) throws -> Layer {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillExtrusionLayer.swift:66:31: cannot find type 'Style' in scope
override func apply(style : Style) throws {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillExtrusionLayer.swift:66:17: method does not override any method from its superclass
override func apply(style : Style) throws {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillLayer.swift:7:34: cannot find type 'Style' in scope
override func makeLayer(style: Style) throws -> Layer {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillLayer.swift:7:17: method does not override any method from its superclass
override func makeLayer(style: Style) throws -> Layer {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillLayer.swift:67:31: cannot find type 'Style' in scope
override func apply(style : Style) throws {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillLayer.swift:67:17: method does not override any method from its superclass
override func apply(style : Style) throws {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXHeatmapLayer.swift:7:34: cannot find type 'Style' in scope
override func makeLayer(style: Style) throws -> Layer {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXHeatmapLayer.swift:7:17: method does not override any method from its superclass
override func makeLayer(style: Style) throws -> Layer {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXHeatmapLayer.swift:23:31: cannot find type 'Style' in scope
override func apply(style : Style) throws {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXHeatmapLayer.swift:23:17: method does not override any method from its superclass
override func apply(style : Style) throws {
^~~~~
⚠️ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImageQueue.swift:1:7: class 'RNMBXImageQueueOperation' must restate inherited '@unchecked Sendable' conformance
class RNMBXImageQueueOperation : Operation {
~~~~~~~~ ^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:7:22: cannot find type 'Style' in scope
func hasImage(style: Style, name: String) -> Bool {
^
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:23:19: cannot find type 'Style' in scope
weak var style: Style? = nil
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:82:52: cannot find type 'Style' in scope
public func addToMap(_ map: RNMBXMapView, style: Style) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:113:25: cannot find type 'Style' in scope
func addImages(style: Style, images: [String: Any], oldImages: [String:Any]) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:149:37: cannot find type 'Style' in scope
private func addImageViews(style: Style, imageViews: [RNMBXImage]) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:155:47: cannot find type 'Style' in scope
internal func addMissingImageToStyle(style: Style, imageName: String) -> Bool {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:168:67: cannot find type 'StyleImageMissingPayload' in scope
internal func sendImageMissingEvent(imageName: String, payload: StyleImageMissingPayload) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:258:31: cannot find type 'Style' in scope
func addNativeImages(style: Style, nativeImages: [NativeImageInfo]) {
^~~~~~~~~~~~~~~~~~~~~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImageSource.swift:54:27: cannot find type 'Style' in scope
func doUpdate(_ update:(Style) -> Void) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXInteractiveElement.swift:49:52: cannot find type 'Style' in scope
public func addToMap(_ map: RNMBXMapView, style: Style) {
^~~~~
⚠️ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:3:32: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
protocol RNMBXSourceConsumer : class {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:8:32: cannot find type 'Style' in scope
func styleLayerExists(_ style: Style, id: String) -> Bool {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:38:14: cannot find type 'Style' in scope
var style: Style? = nil
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:223:52: cannot find type 'Style' in scope
public func addToMap(_ map: RNMBXMapView, style: Style) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:152:25: cannot find type 'Style' in scope
func makeLayer(style: Style) throws -> Layer {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:156:25: cannot find type 'Style' in scope
func findLayer(style: Style, id: String) throws -> Layer {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:164:22: cannot find type 'Style' in scope
func apply(style : Style) throws {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:168:33: cannot find type 'Style' in scope
final func loggedApply(style: Style) {
^~~~~
❌ /Users/XXX/Projects/XXX/node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:209:48: cannot find type 'Style' in scope
func layerWithSourceID<T : Source>(in style: Style) throws -> T {
^~~~~
`
Any news ??
Sounds like same as https://github.com/rnmapbox/maps/issues/4030
Not sure what's going on here. Style should be in MapboxMaps with we do import. Can't do much until we have repro
same issue
`❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXFillLayer.swift:67:31)
65 | } 66 |
67 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 68 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout FillLayer) in 69 | if self.styleLayer != nil { 70 | self.setOptions(&self.styleLayer!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXHeatmapLayer.swift:7:34)
5 | typealias LayerType = HeatmapLayer 6 |
7 | override func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 8 | let _ : VectorSource = try self.layerWithSourceID(in: style) 9 | #if RNMBX_11 10 | var layer: Layer = LayerType(id: self.id!, source: self.sourceID!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXHeatmapLayer.swift:23:31)
21 | } 22 |
23 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 24 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout HeatmapLayer) in 25 | if let styleLayer = self.styleLayer as? LayerType { 26 | layer = styleLayer
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:7:22)
5 | } 6 |
7 | func hasImage(style: Style, name: String) -> Bool { | ^ cannot find type 'Style' in scope 8 | #if RNMBX_11 9 | return style.imageExists(withId: name) 10 | #else
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:23:19)
21 | @objc public weak var bridge : RCTBridge! = nil 22 |
23 | weak var style: Style? = nil | ^ cannot find type 'Style' in scope 24 | 25 | var imageManager: ImageManager? = nil 26 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:82:52)
80 | } 81 |
82 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 83 | self.style = style 84 | imageManager = map.imageManager 85 | map.images.append(self)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:113:25)
111 | } 112 |
113 | func addImages(style: Style, images: [String: Any], oldImages: [String:Any]) { | ^ cannot find type 'Style' in scope 114 | var missingImages : [String:Any] = [:] 115 |
116 | // Add image placeholder for images that are not yet available in the style. This way
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:149:37)
147 | } 148 |
149 | private func addImageViews(style: Style, imageViews: [RNMBXImage]) { | ^ cannot find type 'Style' in scope 150 | imageViews.forEach { imageView in 151 | imageView.images = self 152 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:155:47)
153 | } 154 |
155 | internal func addMissingImageToStyle(style: Style, imageName: String) -> Bool { | ^ cannot find type 'Style' in scope 156 | if let nativeImage = nativeImageInfos.first(where: { $0.name == imageName }) { 157 | addNativeImages(style: style, nativeImages: [nativeImage]) 158 | return true
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:168:67)
166 | } 167 |
168 | internal func sendImageMissingEvent(imageName: String, payload: StyleImageMissingPayload) { | ^ cannot find type 'StyleImageMissingPayload' in scope 169 | let payload = ["imageKey":imageName] 170 | let event = RNMBXEvent(type: .imageMissing, payload: payload) 171 | if let onImageMissing = onImageMissing {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImages.swift:258:31)
256 | } 257 |
258 | func addNativeImages(style: Style, nativeImages: [NativeImageInfo]) { | ^ cannot find type 'Style' in scope 259 | for imageInfo in nativeImages { 260 | let imageName = imageInfo.name 261 | if !hasImage(style: style, name: imageName) {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXImageSource.swift:54:27)
52 | } 53 |
54 | func doUpdate(_ update:(Style) -> Void) { | ^ cannot find type 'Style' in scope 55 | guard let map = self.map, 56 | let _ = self.source, 57 | map.mapboxMap.style.sourceExists(withId: id) else {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXInteractiveElement.swift:49:52)
47 |
48 | // MARK: - RNMBXMapComponent
49 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 50 | if (self.id == nil) { 51 | Logger.log(level: .error, message: "id is required on (self) but not specified") 52 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:8:32)
6 | } 7 |
8 | func styleLayerExists(_ style: Style, id: String) -> Bool { | ^ cannot find type 'Style' in scope 9 | #if RNMBX_11 10 | return style.layerExists(withId: id) 11 | #else
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:38:14)
36 | } 37 |
38 | var style: Style? = nil | ^ cannot find type 'Style' in scope 39 | 40 | @objc public var filter : Array<Any>? = nil { 41 | didSet { optionsChanged() }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:223:52)
221 | } 222 |
223 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 224 | self.map = map 225 | self.style = style 226 | guard let id = id else {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:152:25)
150 | } 151 |
152 | func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 153 | fatalError("Subclasses need to implement the
makeLayer(style:)method.") 154 | } 155 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:156:25)
154 | } 155 |
156 | func findLayer(style: Style, id: String) throws -> Layer { | ^ cannot find type 'Style' in scope 157 | return try style.layer(withId: id) 158 | } 159 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:164:22)
162 | } 163 |
164 | func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 165 | fatalError("Subclasses need to implement the
applymethod.") 166 | } 167 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:168:33)
166 | } 167 |
168 | final func loggedApply(style: Style) { | ^ cannot find type 'Style' in scope 169 | logged("updateLayer", info: { "(self.layerType()).(optional: self.id)" }) { 170 | try apply(style: style) 171 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:209:48)
207 | } 208 |
209 | func layerWithSourceID<T : Source>(in style: Style) throws -> T { | ^ cannot find type 'Style' in scope 210 | let result = try style.source(withId: self.sourceID!, type: T.self) 211 | return result 212 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:214:49)
212 | } 213 |
214 | func sourceWithSourceID<T : Source>(in style: Style) throws -> T { | ^ cannot find type 'Style' in scope 215 | let result = try style.source(withId: self.sourceID!, type: T.self) 216 | return result 217 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:257:50)
255 | } 256 |
257 | func removeFromMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 258 | removeFromMap(style) 259 | } 260 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:329:39)
327 | } 328 |
329 | private func removeFromMap(_ style: Style) { | ^ cannot find type 'Style' in scope 330 | if let waitingForID = waitingForID { 331 | Logger.log(level:.warn, message: "RNMBXLayer.removeFromMap - unmetPositionDependency: layer: (optional: id) was waiting for layer: (optional: waitingForID) but it hasn't added to map") 332 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:341:24)
339 | } 340 |
341 | func insert(_ style: Style, layerPosition: LayerPosition, onInsert: (() -> Void)? = nil) { | ^ cannot find type 'Style' in scope 342 | var idToWaitFor: String? 343 | switch layerPosition { 344 | case .above(let aboveId):
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLayer.swift:366:39)
364 | } 365 |
366 | private func attemptInsert(_ style: Style, layerPosition: LayerPosition, onInsert: (() -> Void)? = nil) { | ^ cannot find type 'Style' in scope 367 | guard let styleLayer = self.styleLayer else { 368 | return 369 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLight.swift:23:21)
21 | } 22 |
23 | func apply(light: Light) { | ^ cannot find type 'Light' in scope 24 | let lightData = try! JSONEncoder().encode(light) 25 | let lightDictionary = try! JSONSerialization.jsonObject(with: lightData) 26 | logged("RNMBXLight.apply") {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLight.swift:58:52)
56 | } 57 |
58 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 59 | self.map = map.mapboxMap 60 | if (reactStyle != nil) { 61 | addStyles()
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLineLayer.swift:7:34)
5 | typealias LayerType = LineLayer 6 |
7 | override func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 8 | let vectorSource : VectorSource = try self.layerWithSourceID(in: style) 9 | #if RNMBX_11 10 | var layer = LayerType(id: self.id!, source: sourceID!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLineLayer.swift:66:31)
64 | } 65 |
66 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 67 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout LineLayer) in 68 | if self.styleLayer != nil { 69 | self.setOptions(&self.styleLayer!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:36:47)
34 | /// This implementation of LocationProviderDelegate is used by LocationManager to work around
35 | /// the fact that the LocationProvider API does not allow the delegate to be set to nil.
36 | internal class EmptyLocationProviderDelegate: LocationProviderDelegate { | ^ cannot find type 'LocationProviderDelegate' in scope 37 | func locationProvider(_ provider: LocationProvider, didFailWithError error: Error) {} 38 | func locationProvider(_ provider: LocationProvider, didUpdateHeading newHeading: CLHeading) {} 39 | func locationProvider(_ provider: LocationProvider, didUpdateLocations locations: [CLLocation]) {}
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:52:78)
50 | private var privateLocationProviderOptions: LocationOptions { 51 | didSet {
52 | locationProvider.distanceFilter = privateLocationProviderOptions.distanceFilter | ^ 'distanceFilter' is unavailable: Use AppleLocationProvider.Options.distanceFilter instead 53 | locationProvider.desiredAccuracy = privateLocationProviderOptions.desiredAccuracy 54 | locationProvider.activityType = privateLocationProviderOptions.activityType 55 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:53:79)
51 | didSet { 52 | locationProvider.distanceFilter = privateLocationProviderOptions.distanceFilter
53 | locationProvider.desiredAccuracy = privateLocationProviderOptions.desiredAccuracy | ^ 'desiredAccuracy' is unavailable: Use AppleLocationProvider.Options.desiredAccuracy instead 54 | locationProvider.activityType = privateLocationProviderOptions.activityType 55 | } 56 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:54:76)
52 | locationProvider.distanceFilter = privateLocationProviderOptions.distanceFilter 53 | locationProvider.desiredAccuracy = privateLocationProviderOptions.desiredAccuracy
54 | locationProvider.activityType = privateLocationProviderOptions.activityType | ^ 'activityType' is unavailable: Use AppleLocationProvider.Options.activityType instead 55 | } 56 | } 57 | private weak var delegate: LocationProviderDelegate?
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:57:32)
55 | } 56 | }
57 | private weak var delegate: LocationProviderDelegate? | ^ cannot find type 'LocationProviderDelegate' in scope 58 | 59 | public var headingOrientation: CLDeviceOrientation { 60 | didSet { locationProvider.headingOrientation = headingOrientation }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:98:41)
96 | } 97 |
98 | public func setDelegate(_ delegate: LocationProviderDelegate) { | ^ cannot find type 'LocationProviderDelegate' in scope 99 | self.delegate = delegate 100 | } 101 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:72:1)
70 | } 71 |
72 | extension RNMBXAppleLocationProvider: LocationProvider { | ^ type 'RNMBXAppleLocationProvider' does not conform to protocol 'LocationProvider' 73 | public var locationProviderOptions: LocationOptions { 74 | get { privateLocationProviderOptions } 75 | set { privateLocationProviderOptions = newValue }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:163:56)
161 | } 162 |
163 | internal protocol CalibratingLocationProviderDelegate: LocationProviderDelegate { | ^ cannot find type 'LocationProviderDelegate' in scope 164 | func locationProviderShouldDisplayHeadingCalibration(_ locationProvider: LocationProvider) -> Bool 165 | } 166 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:170:31)
168 | /// So it can be source of Mapbox locationProduces (which updates location pluck and viewport if configured) as well as source to updates 169 | /// to RNMBXLocationModules.
170 | class LocationProviderRNMBX : LocationProviderDelegate { | ^ cannot find type 'LocationProviderDelegate' in scope 171 | enum LocationUpdateType { 172 | case heading 173 | case location
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:183:36)
181 |
182 | weak var delegate: LocationProviderRNMBXDelegate?
183 | weak var locationProviderDelage: LocationProviderDelegate? | ^ cannot find type 'LocationProviderDelegate' in scope 184 |
185 | var headingSimulator: Timer? = nil 186 | var simulatedHeading: Double = 0.0
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:344:32)
342 | } 343 |
344 | func setDelegate(_ delegate: LocationProviderDelegate) { | ^ cannot find type 'LocationProviderDelegate' in scope 345 | provider.setDelegate(self) 346 | locationProviderDelage = delegate 347 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXLocationModule.swift:316:1)
314 | // MARK: LocationProvider 315 |
316 | extension LocationProviderRNMBX: LocationProvider { | ^ type 'LocationProviderRNMBX' does not conform to protocol 'LocationProvider' 317 | var locationProviderOptions: LocationOptions { 318 | get { 319 | provider.locationProviderOptions
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMapView.swift:851:40)
849 | } 850 |
851 | private func addFeaturesToMap(style: Style) { | ^ cannot find type 'Style' in scope 852 | features.forEach { entry in 853 | if (!entry.addedToMap) { 854 | entry.feature.addToMap(self, style: style)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMapView.swift:864:49)
862 | } 863 |
864 | func refreshComponentsAfterStyleChange(style: Style) { | ^ cannot find type 'Style' in scope 865 | addFeaturesToMap(style: style) 866 | } 867 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMapView.swift:955:40)
953 | } 954 | #else
955 | private func onEvery<Payload>(event: MapEvents.Event<Payload>, handler: @escaping (RNMBXMapView, MapEvent<Payload>) -> Void) { | ^ cannot find type 'MapEvents' in scope 956 | let eventListener = self.mapView.mapboxMap.onEvery(event: event) { weak self in 957 | guard let self = self else { return } 958 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMapView.swift:955:101)
953 | } 954 | #else
955 | private func onEvery<Payload>(event: MapEvents.Event<Payload>, handler: @escaping (RNMBXMapView, MapEvent<Payload>) -> Void) { | ^ cannot find type 'MapEvent' in scope 956 | let eventListener = self.mapView.mapboxMap.onEvery(event: event) { weak self in 957 | guard let self = self else { return } 958 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMapView.swift:967:39)
965 | } 966 |
967 | private func onNext<Payload>(event: MapEvents.Event<Payload>, handler: @escaping (RNMBXMapView, MapEvent<Payload>) -> Void) { | ^ cannot find type 'MapEvents' in scope 968 | self.mapView.mapboxMap.onNext(event: event) { weak self in 969 | guard let self = self else { return } 970 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMapView.swift:967:100)
965 | } 966 |
967 | private func onNext<Payload>(event: MapEvents.Event<Payload>, handler: @escaping (RNMBXMapView, MapEvent<Payload>) -> Void) { | ^ cannot find type 'MapEvent' in scope 968 | self.mapView.mapboxMap.onNext(event: event) { weak self in 969 | guard let self = self else { return } 970 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXMarkerView.swift:99:52)
97 | // MARK: - RNMBXMapComponent methods 98 |
99 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 100 | self.map = map 101 | add() 102 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXModelLayer.swift:7:34)
5 | typealias LayerType = ModelLayer 6 |
7 | override func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 8 | let vectorSource : VectorSource = try self.layerWithSourceID(in: style) 9 | #if RNMBX_11 10 | var layer = LayerType(id: self.id!, source: sourceID!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXModelLayer.swift:66:31)
64 | } 65 |
66 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 67 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout ModelLayer) in 68 | if self.styleLayer != nil { 69 | self.setOptions(&self.styleLayer!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXModels.swift:33:52)
31 | } 32 |
33 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 34 | modelIdToUrl.forEach { (id, uri) in 35 | logged("Models.addStyleModel") { 36 | if let link = URL(string: uri), let scheme = link.scheme, let host = link.host,
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXModule.swift:22:9)
20 | #else 21 | if let token = accessToken {
22 | ResourceOptionsManager.default.resourceOptions.accessToken = token | ^ cannot find 'ResourceOptionsManager' in scope 23 | } 24 | #endif 25 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXNativeUserLocation.swift:203:52)
201 | } 202 |
203 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 204 | self.map = map 205 |
206 | _fetchImages(map)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/Offline/RNMBXOfflineModule.swift:37:45)
35 | return OfflineManager() 36 | #else
37 | return OfflineManager(resourceOptions: .init(accessToken: RNMBXModule.accessToken!)) | ^ argument passed to call that takes no arguments 38 | #endif 39 | }() 40 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/Offline/RNMBXOfflineModule.swift:37:45)
35 | return OfflineManager() 36 | #else
37 | return OfflineManager(resourceOptions: .init(accessToken: RNMBXModule.accessToken!)) | ^ cannot infer contextual base in reference to member 'init' 38 | #endif 39 | }() 40 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/Offline/RNMBXOfflineModule.swift:45:51)
43 | return OfflineRegionManager() 44 | #else
45 | return OfflineRegionManager(resourceOptions: .init(accessToken: RNMBXModule.accessToken!)) | ^ argument passed to call that takes no arguments 46 | #endif 47 | }() 48 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/Offline/RNMBXOfflineModule.swift:45:51)
43 | return OfflineRegionManager() 44 | #else
45 | return OfflineRegionManager(resourceOptions: .init(accessToken: RNMBXModule.accessToken!)) | ^ cannot infer contextual base in reference to member 'init' 46 | #endif 47 | }() 48 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/Offline/RNMBXOfflineModuleLegacy.swift:12:51)
10 | return OfflineRegionManager() 11 | #else
12 | return OfflineRegionManager(resourceOptions: .init(accessToken: RNMBXModule.accessToken!)) | ^ argument passed to call that takes no arguments 13 | #endif 14 | }() 15 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/Offline/RNMBXOfflineModuleLegacy.swift:12:51)
10 | return OfflineRegionManager() 11 | #else
12 | return OfflineRegionManager(resourceOptions: .init(accessToken: RNMBXModule.accessToken!)) | ^ cannot infer contextual base in reference to member 'init' 13 | #endif 14 | }() 15 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXPointAnnotation.swift:253:61)
251 | // MARK: - RNMBXMapComponent 252 |
253 | public override func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 254 | super.addToMap(map, style: style) 255 | self.map = map 256 | addIfPossible()
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXRasterLayer.swift:7:34)
5 | typealias LayerType = RasterLayer 6 |
7 | override func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 8 | // let source : ImageSource = try self.sourceWithSourceID(in: style) 9 | #if RNMBX_11 10 | var layer = LayerType(id: self.id!, source: sourceID!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXRasterLayer.swift:61:31)
59 | } 60 |
61 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 62 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout RasterLayer) in 63 | if self.styleLayer != nil { 64 | self.setOptions(&self.styleLayer!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXShapeSource.swift:155:27)
153 | } 154 |
155 | func doUpdate(_ update:(Style) -> Void) { | ^ cannot find type 'Style' in scope 156 | guard let map = self.map, 157 | let _ = self.source, 158 | map.mapboxMap.style.sourceExists(withId: id) else {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXShapeSource.swift:58:61)
56 | } 57 |
58 | public override func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 59 | super.addToMap(map, style: style) 60 | } 61 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSingletonLayer.swift:8:14)
6 | @objc public weak var bridge : RCTBridge? = nil 7 | weak var map : RNMBXMapView? = nil
8 | var style: Style? = nil | ^ cannot find type 'Style' in scope 9 |
10 | var oldReactStyle: [String:Any]? 11 | @objc public var reactStyle : Dictionary<String, Any>? = nil {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSingletonLayer.swift:36:45)
34 | } 35 |
36 | func update(_ map: RNMBXMapView, _ style: Style) { | ^ cannot find type 'Style' in scope 37 | logged("LayerLike (self)") { 38 | try apply(style: style) 39 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSingletonLayer.swift:48:21)
46 |
47 | /// apply changes in layer like component to the map
48 | func apply(style: Style) throws { | ^ cannot find type 'Style' in scope 49 | fatalError("Subclasses should overrride") 50 | } 51 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSkyLayer.swift:7:34)
5 | typealias LayerType = SkyLayer 6 |
7 | override func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 8 | let layer = LayerType(id: self.id!) 9 | return layer 10 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSkyLayer.swift:34:31)
32 | } 33 |
34 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 35 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout SkyLayer) in 36 | if self.styleLayer != nil { 37 | self.setOptions(&self.styleLayer!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSource.swift:79:61)
77 | // MARK: - RNMBXInteractiveElement 78 |
79 | public override func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 80 | self.map = map 81 | 82 | if style.sourceExists(withId: self.id) {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:7:15)
5 | 6 | class RNMBXStyle {
7 | var style : Style | ^ cannot find type 'Style' in scope 8 | weak var bridge : RCTBridge? 9 | 10 | init(style: Style) {
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:10:15)
8 | weak var bridge : RCTBridge? 9 |
10 | init(style: Style) { | ^ cannot find type 'Style' in scope 11 | self.style = style; 12 | } 13 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:908:30)
906 | } 907 |
908 | func lightLayer(layer: inout Light, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout Light)->Void)->Void, isValid: @escaping () -> Bool) | ^ cannot find type 'Light' in scope 909 | { 910 | guard self._hasReactStyle(reactStyle) else { 911 | Logger.log(level:.error, message: "Invalid style: (reactStyle)")
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:908:146)
906 | } 907 |
908 | func lightLayer(layer: inout Light, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout Light)->Void)->Void, isValid: @escaping () -> Bool) | ^ cannot find type 'Light' in scope 909 | { 910 | guard self._hasReactStyle(reactStyle) else { 911 | Logger.log(level:.error, message: "Invalid style: (reactStyle)")
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3477:31)
3475 | 3476 |
3477 | func setAnchor(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3478 | { 3479 |
3480 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3486:33)
3484 | } 3485 |
3486 | func setPosition(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3487 | { 3488 | layer.position = styleValue.getSphericalPosition(); 3489 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3491:43)
3489 | } 3490 |
3491 | func setPositionTransition(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3492 | { 3493 | layer.positionTransition = styleValue.getTransition(); 3494 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3496:30)
3494 | } 3495 |
3496 | func setColor(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3497 | { 3498 |
3499 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3505:40)
3503 | } 3504 |
3505 | func setColorTransition(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3506 | { 3507 | layer.colorTransition = styleValue.getTransition(); 3508 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3510:34)
3508 | } 3509 |
3510 | func setIntensity(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3511 | { 3512 |
3513 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyle.swift:3519:44)
3517 | } 3518 |
3519 | func setIntensityTransition(_ layer: inout Light, styleValue: RNMBXStyleValue) | ^ cannot find type 'Light' in scope 3520 | { 3521 | layer.intensityTransition = styleValue.getTransition(); 3522 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyleImport.swift:27:52)
25 | } 26 |
27 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 28 | mapView = map.mapView 29 | apply(mapView: map.mapView) 30 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXStyleValue.swift:501:12)
499 | func setImage( 500 | bridge: RCTBridge,
501 | style: Style, | ^ cannot find type 'Style' in scope 502 | oldValue: Any?, 503 | setImageOnLayer: (_: RNMBXStyleValue) -> Void, 504 | isLayerStillValid: @escaping () -> Bool, // check if layer/map still valid in case we try to set the image after downloaded
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSymbolLayer.swift:8:34)
6 | typealias LayerType = SymbolLayer 7 |
8 | override func makeLayer(style: Style) throws -> Layer { | ^ cannot find type 'Style' in scope 9 | let _ : VectorSource = try self.layerWithSourceID(in: style) 10 | #if RNMBX_11 11 | var layer = LayerType(id: self.id!, source: sourceID!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXSymbolLayer.swift:67:31)
65 | } 66 |
67 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 68 | try style.updateLayer(withId: id, type: LayerType.self) { (layer : inout SymbolLayer) in 69 | if self.styleLayer != nil { 70 | self.setOptions(&self.styleLayer!)
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXTerrain.swift:16:52)
14 | } 15 |
16 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 17 | self.map = map 18 | self.style = style 19 |
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXTerrain.swift:41:50)
39 | } 40 |
41 | func removeFromMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 42 | logged("RNMBXTerrain.removeFromMap") { 43 | style.removeTerrain() 44 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXTerrain.swift:88:31)
86 | } 87 |
88 | override func apply(style : Style) throws { | ^ cannot find type 'Style' in scope 89 | if let terrain = terrain { 90 | try style.setTerrain(terrain) 91 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXUtils.swift:11:55)
9 | } 10 |
11 | static func fetchImages(_ bridge: RCTBridge, style: Style, objects: [String:Any], forceUpdate: Bool, loaded: @escaping (String, UIImage) -> Void) { | ^ cannot find type 'Style' in scope 12 | guard !objects.isEmpty else { 13 | return 14 | }
❌ (node_modules/@rnmapbox/maps/ios/RNMBX/RNMBXViewport.swift:59:52)
57 | } 58 |
59 | public func addToMap(_ map: RNMBXMapView, style: Style) { | ^ cannot find type 'Style' in scope 60 | mapView = map.mapView 61 | applyHasStatusChanged(mapView: mapView!) 62 | apply(mapView: map.mapView)
› Compiling react-native-worklets Pods/RNWorklets » WorkletsModule.mm › Compiling react-native-screens Pods/RNScreens » UIViewController+RNScreens.mm › Compiling GameClub Pods/ReactCodegen » safeareacontextJSI-generated.cpp › Compiling GameClub Pods/ReactCodegen » rnworkletsJSI-generated.cpp Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods') Run script build phase '[Expo Autolinking] Run Codegen with autolinking' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReactCodegen' from project 'Pods')
› 113 error(s), and 2 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.`
Please, please give information. What is the Xcode version? What is the mapbox version.
Hello @mfazekas I have the same error on Xcode 26.1 and @rnmapbox/maps 10.2.6.
Downgrading to @rnmapbox/map 10.1.44 fixed it though.
I have the same error on IOS only: Xcode version 26.1 @rnmapbox/maps version 10.2.6
I
did you distrubute app success to app store connect ?, i got error contain bitcode in mapbox core and dependecies of mapbox
This error happens if you don't follow the install instructions, and forget about post_install https://rnmapbox.github.io/docs/install?configure-module=ios
post_install do |installer|
$RNMapboxMaps.post_install(installer)
# ... other post install hooks
end