我在iOS应用程序上使用PushNotification.我想在应用收到通知时显示UIalertcontroller.
我在AppDelegate中尝试以下代码:
[self.window.rootViewController presentViewController:alert animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)
但是UIAlertcontroller正在根视图(第一个屏幕)中显示,而对于其他uiviewcontroller,我收到警告或应用程序崩溃.
我正在使用 Firebase 托管和云功能。当我执行时,firebase serve --only functions我收到此错误:
无法启动模拟器。错误:找不到模块“/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node”
我安装了所需的所有依赖项,例如 firebase-tools。我用过这个教程
有任何想法吗?
我尝试使用部署目标5.1.1更新旧的iOS应用程序.当我在iOS 9.3.2上运行它时,我收到以下错误:
6.0之前的iOS版本不支持-fembed-bitcode.
我该如何解决这个问题?有任何想法吗?