mapbox / mapbox/MapboxGeocoder.swift
Undefined Symbol Swift
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ả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với import MapboxGeocoder và lời gọi Geocoder(accessToken:) được nêu trong báo cáo, sau đó kiểm tra cách framework được liên kết cho target x86_64. Tái hiện các thông báo undefined-symbol và auto-linked-framework trong ngữ cảnh MyViewController được báo cáo; hoàn tất khi initializer liên kết thành công, kể cả khi token được cung cấp thông qua plist.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- swift
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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