Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何访问UIViewcontroller中已安装的pod库宏字符串?_Ios_Swift_Voip_Sinch_Callkit - Fatal编程技术网

Ios 如何访问UIViewcontroller中已安装的pod库宏字符串?

Ios 如何访问UIViewcontroller中已安装的pod库宏字符串?,ios,swift,voip,sinch,callkit,Ios,Swift,Voip,Sinch,Callkit,我安装了sinch(在swift中工作) pod内文件夹“SINAPSEnvironment.h” 在UIViewcontroller.swift中,我正在使用 push = Sinch.managedPush(with: SINAPSEnvironmentAutomatic) push?.delegate = self push?.registerUserNotificationSettings() push?.setDesiredPushType(SINPushTypeVoIP) 在这里“

我安装了sinch(在swift中工作)

pod内文件夹“SINAPSEnvironment.h”

在UIViewcontroller.swift中,我正在使用

push = Sinch.managedPush(with: SINAPSEnvironmentAutomatic)
push?.delegate = self
push?.registerUserNotificationSettings()
push?.setDesiredPushType(SINPushTypeVoIP)
在这里“SINAPSEnvironmentAutomatic”获取错误。(使用未解析标识符“SINAPSEnvironmentAutomatic”)


如何解决此问题。

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

import //Module name 
在UIKit下, 在你的情况下我想是这个豆荚

SinchRTC


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

SinchRTC此pod?
import //Module name