Anyone knows how to fix this error in ios swift Cannot find 'BGTaskScheduler' in scope i am trying to run background task where i am using BGTaskScheduler
Asked
Active
Viewed 2,174 times
1 Answers
23
You need to import this
import BackgroundTasks

Raja Kishan
- 16,767
- 2
- 26
- 52
-
4Why doesn't Xcode has an auto import? Frustrating apple IDE... – Sergio Jan 19 '22 at 15:04
-
3Why don't Apple docs have this, is the biggest frustration. – Lukas Dec 09 '22 at 14:33