mapbox / mapbox/MapboxGeocoder.swift
Undefined Symbol Swift
オープン
まだ誰も着手していません。
- 主要言語
- Swift
- スター
- 133
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello,
In my class I have import MapboxGeocoder
When I try to do `let geocoder = Geocoder(accessToken: "" I'm getting the follow errors:

And clicking into them, seeing
ld: warning: Could not find auto-linked framework 'MapboxGeocoder'
Undefined symbols for architecture x86_64:
"type metadata accessor for MapboxGeocoder.Geocoder", referenced from:
variable initialization expression of Project.MyViewController.geocoder : MapboxGeocoder.Geocoder in MyViewController.o
Project.MyViewController.init(nibName: Swift.String?, bundle: __C.NSBundle?) -> Project.MyViewController in MyViewController.o
Project.MyViewController.init(coder: __C.NSCoder) -> Project.MyViewController? in MyViewController.o
"MapboxGeocoder.Geocoder.__allocating_init(accessToken: Swift.String?) -> MapboxGeocoder.Geocoder", referenced from:
variable initialization expression of Project.MyViewController.geocoder : MapboxGeocoder.Geocoder in MyViewController.o
Project.MyViewController.init(nibName: Swift.String?, bundle: __C.NSBundle?) -> Project.MyViewController in MyViewController.o
Project.MyViewController.init(coder: __C.NSCoder) -> Project.MyViewController? in MyViewController.o
Without the init line of the geocoder, it all works.
I also tried adding the access token to my Plist instead, and get similar issues
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
レポートに示されている MapboxGeocoder の import と Geocoder(accessToken:) の呼び出しから始め、次に x86_64 ターゲット向けに framework がどのようにリンクされているかを調べます。報告された MyViewController コンテキストで undefined-symbol および auto-linked-framework のメッセージを再現します。token が plist 経由で提供される場合も含め、initializer が正常にリンクされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- swift
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100