mapbox / mapbox/MapboxGeocoder.swift

Compile Error

Đang mở
#188 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Swift
Star
133
Fork
46
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với MapboxGeocoder/MBRectangularRegion.swift và so sánh bản build Bitrise Xcode 10.2 đang bị lỗi với môi trường cục bộ. Tái hiện các lỗi Codable của CLLocationCoordinate2D và xác định thay đổi cần thiết trong project hoặc dependency để bước kiểm thử biên dịch thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ios, swift
Lĩnh vực
build-system, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.