mapbox / mapbox/MapboxGeocoder.swift
Compile Error
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Swift
- Estrellas
- 133
- Forks
- 46
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I am using Bitrise for my CI/CD pipeline and during the xcode test step I get the following errors:
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:44:40: instance method 'decode(_:forKey:)' requires that 'CLLocationCoordinate2D' conform to 'Decodable'
self.southWest = try container.decode(CLLocationCoordinate2D.self, forKey: .southWest)
^
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:45:40: instance method 'decode(_:forKey:)' requires that 'CLLocationCoordinate2D' conform to 'Decodable'
self.northEast = try container.decode(CLLocationCoordinate2D.self, forKey: .northEast)
^
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:51:30: argument type 'CLLocationCoordinate2D' does not conform to expected type 'Encodable'
try container.encode(southWest, forKey: .southWest)
^
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:52:30: argument type 'CLLocationCoordinate2D' does not conform to expected type 'Encodable'
try container.encode(northEast, forKey: .northEast)
^
▸ Linking MapboxMobileEvents
▸ Generating 'MapboxMobileEvents.framework.dSYM'
▸ Compiling GoogleUtilities_vers.c
▸ Compiling GoogleUtilities-dummy.m
▸ Compiling GULUserDefaults.m
▸ Compiling GULSwizzler.m
▸ Compiling GULReachabilityChecker.m
▸ Compiling Polyline.swift
▸ Compiling Solar.swift
▸ Processing nanopb-Info.plist
▸ Processing WillowTreeScrollingTabController-Info.plist
▸ Generating 'nanopb.framework.dSYM'
▸ Processing Turf-Info.plist
▸ Processing Solar-Info.plist
▸ Generating 'Turf.framework.dSYM'
▸ Copying /Users/vagrant/git/Pods/MapboxMobileEvents/MapboxMobileEvents/Resources/logger.html
▸ Compiling Solar_vers.c
▸ Compiling Solar-dummy.m
▸ Compiling Polyline_vers.c
▸ Compiling Polyline-dummy.m
▸ Linking Solar
▸ Generating 'Solar.framework.dSYM'
▸ Linking Polyline
▸ Generating 'Polyline.framework.dSYM'
▸ Processing MapboxGeocoder.swift-Info.plist
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:44:40: instance method 'decode(_:forKey:)' requires that 'CLLocationCoordinate2D' conform to 'Decodable'
self.southWest = try container.decode(CLLocationCoordinate2D.self, forKey: .southWest)
^
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:45:40: instance method 'decode(_:forKey:)' requires that 'CLLocationCoordinate2D' conform to 'Decodable'
self.northEast = try container.decode(CLLocationCoordinate2D.self, forKey: .northEast)
^
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:51:30: argument type 'CLLocationCoordinate2D' does not conform to expected type 'Encodable'
try container.encode(southWest, forKey: .southWest)
^
❌ /Users/vagrant/git/Pods/MapboxGeocoder.swift/MapboxGeocoder/MBRectangularRegion.swift:52:30: argument type 'CLLocationCoordinate2D' does not conform to expected type 'Encodable'
try container.encode(northEast, forKey: .northEast)
^
Here is a link to information about the machine running the xcode build tools: https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-10.2.x.log.
I can't recreate this problem on my local machine. Any ideas?
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con MapboxGeocoder/MBRectangularRegion.swift y compara la compilación fallida de Bitrise Xcode 10.2 con el entorno local. Reproduce los errores de Codable de CLLocationCoordinate2D e identifica el cambio en el proyecto o en la dependencia necesario para que el paso de prueba compile correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- ios, swift
- Área
- build-system, mobile-dev
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100