SINAPSEnvironmentAutomatic

SINAPSEnvironmentAutomatic

我安装了Sinch(快速运行)

在Pod文件夹“SINAPSEnvironment.h”中

#ifndef SINAPSEnvironmentAutomatic
#ifdef NDEBUG
#define SINAPSEnvironmentAutomatic SINAPSEnvironmentProduction
#else
#ifdef DEBUG
#define SINAPSEnvironmentAutomatic SINAPSEnvironmentDevelopment
#else
#define SINAPSEnvironmentAutomatic SINAPSEnvironmentProduction
#endif  // ifdef DEBUG
#endif  // ifdef NDEBUG
#endif  // ifndef SINAPSEnvironmentAutomatic

在UIViewcontroller.swift中,我正在使用
push = Sinch.managedPush(with: SINAPSEnvironmentAutomatic)
push?.delegate = self
push?.registerUserNotificationSettings()
push?.setDesiredPushType(SINPushTypeVoIP)

在这里“SINAPSEnvironmentAutomatic”得到错误。 (使用未解析的标识符“SINAPSEnvironmentAutomatic”)

我该如何解决此问题。

最佳答案

在顶部的ViewController中,
确保您添加了模块

import //Module name

在UIKit下
就您而言,我认为它是这个豆荚,

SinchRTC

只需确保其已导入,以及如何使用它即可阅读文档here

07-27 23:13