Closed gebsl closed 3 years ago
Why is there no SystemCapabilities
attribute in this file project.pbxproj
in my project?
I have just verified this ticket can be closed - please see the Xcode screenshots:
And the resulting console logs after pressing that one:
Therefore closing this issue. Please open single, separate issues for specific questions or problems.
Version
Describe the error
When running the example app on a real iOS device through XCode (by pressing the "Run" icon), the app throws an exception when pressing the "Start the Flutter background service" button. Subsequently, background fetch won't work and the dispatch method is never called.
The exception in XCode's console is:
Unfortunately I can not provide any debug information, when starting the app through
flutter run
, as there seems to be a bug with iOS hiding important exceptions from frameworks like flutter (see https://github.com/flutter/flutter/issues/41133), so the only way to fetch information (at least the one I know about) is through XCode.Except from running
flutter pub get
andflutter build ios
(to resolve initial build error in XCode) I didn't changed anything in the example app.Though, there is one thing I noticed that's different from the iOS setup guide: After unchecking and re-checking the capability "Background fetch" in XCode, following block is not added to file
project.pbxproj
(which, as I understood, should be added automatically by XCode):Unfortunately, adding it manually does not seem to have any effect.
Output of
flutter doctor -v