接https://blog.csdn.net/leek5533/article/details/103830152
1、拷贝自己的podfile文件到本项目工程下,和项目工程同级别LFLiveKittest4.xcodeproj,
podfile内容如下:()
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
platform :ios,'13.0'
target “LFLiveKittest4" do
pod 'LFLiveKit'
end
2、终端运行pod install ,
可以发现文件夹下有pod文件夹和pod.lock文件生成。
3、直接打开LFLiveKittest4.xcworkspace,而不是LFLiveKittest4.xcodeproj;
(记得把LFLiveKittest4.xcodeproj关掉,重新启动xcode)
4、可以引入
#import <LFLiveKit.h>了