一句话解决的事儿
pthread_setspecific 给线程设置属性参数
Error Domain=AVFoundationErrorDomain Code=-11803 "Cannot Record" UserInfo={NSLocalizedRecoverySuggestion=Try recording again., NSLocalizedDescription=Cannot Record, NSUnderlyingError=0x280ebdfe0 {Error Domain=NSOSStatusErrorDomain Code=-16409 "(null)"}}
我这里出现这个异常,是连续点击了拍照,当次拍照之后便停止了AVCaptureSession,这个不连点就OK了
[Application] The app delegate must implement the window property if it wants to use a main storyboard file.
低于iOS13的设备,安装新Xcode11创建的应用时,出现这个提醒,是因为增加了UISceneDelegate的缘故,解决办法是在AppDelegate.m中增加一行
@synthesize window;