ThumbWorks / sf-ios

An app for iOS social events in SF
MIT License
19 stars 13 forks source link

use new BackgroundTasks APIs #141

Closed zadr closed 3 years ago

rodericj commented 5 years ago

Wow awesome!

rodericj commented 5 years ago

So of course this build fails.

Users/vagrant/git/SF iOS/SF iOS/Helpers/UserNotification/BackgroundFetchScheduler.m:11:9: module 'BackgroundTasks' not found
@import BackgroundTasks;
                          ^~~~
jerrytdev commented 5 years ago

I got an assertion error further down, approximately line 39.

rodericj commented 5 years ago

Can you show the assertion and/or provide the link? I’m not going to be at a computer for a bit

jerrytdev commented 5 years ago

This in the simulator. *** Assertion failure in -[BGTaskScheduler _unsafe_registrationForIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/Duet_Sim/Duet-811.0.0.112.1/BackgroundTasks/BackgroundTasks/BGTaskScheduler.m:273

rodericj commented 5 years ago

Re #137

zadr commented 5 years ago

fixed the assertion. forgot to commit an Info.plist change