Ios Xcode 9使用不同类型重新定义Typedef(';NSString*';vs';AVMediaType';)
升级到Xcode 9.0 final后,我无法构建我的Objective-C项目。它说:Ios Xcode 9使用不同类型重新定义Typedef(';NSString*';vs';AVMediaType';),ios,objective-c,xcode,Ios,Objective C,Xcode,升级到Xcode 9.0 final后,我无法构建我的Objective-C项目。它说: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h:14:20: Typedef redefinition w
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h:14:20: Typedef redefinition with different types ('NSString *' vs 'AVMediaType')
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriter.h:135:41: Type argument 'AVMediaType' is neither an Objective-C object nor a block type
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:513:102: Nullability specifier 'nullable' cannot be applied to non-pointer type 'AVMediaType'
您需要查看在项目中使用AVMediaType的位置,例如在使用ffmpeg库时,将“AVMediaType”重命名为ffmpeg中引用的其他内容,如在avutil.h avformat.h avcodec.h等。您需要查看在项目中使用AVMediaType的位置,例如在使用ffmpeg库和重命名时“AVMediaType”是指ffmpeg中引用的其他内容,如avutil.h avformat.h avcodec.h等