在我的应用程序中添加一个信号后,flutter无法启动我的应用程序。我已经遵循了这一点。在处理了所有问题之后,我得到了这个。
当我这样做时,我看到下面的错误:
ProcessException: Process "/usr/bin/xcrun" exited abnormally:
<your-app>.OneSignalNotificationServiceExtension: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "<your-app>.OneSignalNotificationServiceExtension" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application
"<your-app>.OneSignalNotificationServiceExtension" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "<your-app>.OneSignalNotificationServiceExtension" is unknown to
FrontBoard.
Application "<your-app>.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
Command: /usr/bin/xcrun simctl launch 26CD3C41-B2F7-4B59-9360-97C9688ABE38
<your-app>.OneSignalNotificationServiceExtension --enable-dart-profiling --enable-checked-mode --observatory-port=0
Error launching application on iPhone 8.
我试过的:
重新启动模拟器
删除仿真器上的所有数据
正在清理生成文件夹
单信号版本:1.0.5
flutter --version
Flutter 1.1.8 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 985ccb6d14 (6 weeks ago) • 2019-01-08 13:45:55 -0800
Engine • revision 7112b72cc2
Tools • Dart 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)
最佳答案
转到iOS/Runner/Info.plist
并在部分中设置您的bundleId
您的包裹ID在这里。复制它。
将CFBundleIdentifier
粘贴到bundleId
中
在CFBundleIdentifier
我希望这有帮助。至少对我有用。
注:
OneSignalNotificationServiceExtension的bundleID的ID稍有不同。请在Xcode中检查它,然后将其添加到OneSignalNotificationServiceExtension的.plist中。
关于flutter - 添加OneSignal后,Flutter不会启动应用程序。 OneBignalNotificationServiceExtension对于FrontBoard是未知的,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54801863/