小编Roc*_*s23的帖子

如何从Appdelegate展示UIAlertController

我在iOS应用程序上使用PushNotification.我想在应用收到通知时显示UIalertcontroller.

我在AppDelegate中尝试以下代码:

[self.window.rootViewController presentViewController:alert animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)

但是UIAlertcontroller正在根视图(第一个屏幕)中显示,而对于其他uiviewcontroller,我收到警告或应用程序崩溃.

iphone objective-c ios uialertcontroller swift3

30
推荐指数
4
解决办法
2万
查看次数

错误:找不到模块“grpc_node.node”

我正在使用 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。我用过这个教程

有任何想法吗?

node.js firebase google-cloud-functions

4
推荐指数
1
解决办法
7965
查看次数

在iOS 9.3.2上运行具有部署目标5.1.1的应用程序时出错(6.0之前的iOS版本不支持-fembed-bitcode.)

我尝试使用部署目标5.1.1更新旧的iOS应用程序.当我在iOS 9.3.2上运行它时,我收到以下错误:

6.0之前的iOS版本不支持-fembed-bitcode.

我该如何解决这个问题?有任何想法吗?

ios

0
推荐指数
1
解决办法
129
查看次数