启动拍摄器crash
查看系统权限是否开启,工程info.plist添加一下权限
* Privacy - Media Library Usage Description
* Privacy - Camera Usage Description
* Privacy - Microphone Usage Description
* Privacy - Photo Library Additions Usage Description
* Privacy - Photo Library Usage Description
* App Transport Security Settings
- 手动引入framework,framework没放在根目录,编译报错:not found **.framework
target -> Build Settings -> Search Paths -> Framework Search Paths里添加对应framework路径
- 编译报错 does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor
配置target -> Build Settings —> Build Options —> Enable Bitcode, 设置为NO
- 编译报错如下:
clang: error: no such file or directory: 'fon-objc-arc'
解决:
target -> Build Settings -> Search Paths -> Compile Sources
为JSONKit.m,MDSelectedImageItem.m,MDImagePreviewViewController三个文件标记为 -fno-objc-arc
编译报错如下
执行以下命令 brew install git-lfs ,git lfs install 。然后删除~/Library/Caches/CocoaPods/Pods/Release下的ffmpeg。删除本地pods文件夹,重新pod install