【问题标题】:How to connect to local Parse Server from the Parse iOS SDK?如何从 Parse iOS SDK 连接到本地 Parse Server?
【发布时间】:2016-06-23 14:34:56
【问题描述】:

如何从运行 Parse iOS SDK 的 iOS 设备连接到本地安装的 Parse Server?我尝试输入本地服务器的 IP 地址,但一直收到 Network connection failed 错误。

[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
        configuration.applicationId = @"myAppId";
        configuration.clientKey = @"";
        configuration.server = @"http://10.0.1.26:1337";
    }]];

我的开发环境只需要这个。

【问题讨论】:

    标签: ios parse-platform parse-server


    【解决方案1】:

    您可以使用ngrok。如果您使用的是 Mac,则可以使用 brew install ngrok

    一旦安装,只需使用ngrok http 1337,其中 1337 是本地安装解析服务器的端口号。 ngrok 将为您提供一个随机生成的 url,例如 https://8ccea37e.ngrok.io。使用此 url 更新本地安装的解析服务器和 iOS 应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-06
      • 2016-06-28
      • 1970-01-01
      • 2015-05-21
      • 1970-01-01
      • 1970-01-01
      • 2021-04-02
      • 1970-01-01
      相关资源
      最近更新 更多