mapbox / mapbox/MapboxGeocoder.swift

Compile Error

オープン
#188 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Swift
スター
133
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

MapboxGeocoder/MBRectangularRegion.swift から始め、失敗している Bitrise Xcode 10.2 のビルドとローカル環境を比較します。CLLocationCoordinate2D の Codable エラーを再現し、テストステップが正常にコンパイルされるために必要なプロジェクトまたは依存関係の変更を特定します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, swift
領域
build-system, mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。