Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

PromiseKit/CoreLocation iOS 14 Compatibility Issues

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

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

Đánh giá

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

Hướng nghiên cứu

Start by reading CLLocatioinManager+Promises and the until: method, then reproduce the authorization flow on an iOS 14 simulator with Xcode 12.2 and the CocoaPods installation described. Done means location updates do not start before authorization is granted and the promise chain does not fail prematurely.

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

Mô tả

Using PromiseKit 6.13.1 and PromiseKit/CoreLocation 6.13.1
Building with Xcode 12.2 to iOS 14 simulator and devices
PromiseKit and CoreLocation extension installed with CocoaPods

iOS 14 introduced some changes for CoreLocation that are problematic with with the current implementation of the PromiseKit CoreLocation extension.

Specifically CLLocatioinManager+Promises is using deprecated method - locationManager:didChangeAuthorizationStatus:
And, it seems because

  • (AnyPromise *)until:(BOOL(^)(CLLocation *))block
  • (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status

Both call [manager startUpdatingLocation] before authorization has been granted, didFail:withError is called and then error block is invoked in the promise chain.

So I am wondering if there is an awareness of this issue and if so if there is a plan to fix it?

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

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của mxcl/PromiseKit

Tất cả issue của mxcl/PromiseKit

Issue tương tự

Thêm issue về Swift

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.