mapbox / mapbox/MapboxGeocoder.swift
Compile Error
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 133
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with MapboxGeocoder/MBRectangularRegion.swift and compare the failing Bitrise Xcode 10.2 build with the local environment. Reproduce the CLLocationCoordinate2D Codable errors and identify the project or dependency change needed for the test step to compile successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100