Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

PromiseKit/CoreLocation iOS 14 Compatibility Issues

Aperta
#1,180 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
ios, swift
Ambito
mobile-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Swift
Stelle
14.2k
Fork
1.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mxcl/PromiseKit

Tutte le issue di mxcl/PromiseKit

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.