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

cannot find type 'Style' in scope and method does not override any method from its superclass #3770

Open
XFAISAL opened this issue Feb 11, 2025 · 0 comments

Comments

@XFAISAL
Copy link

XFAISAL commented Feb 11, 2025

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  {
                              ^~~~~
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant