Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.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 Xcode 9使用不同类型重新定义Typedef(';NSString*';vs';AVMediaType';)_Ios_Objective C_Xcode - Fatal编程技术网

Ios Xcode 9使用不同类型重新定义Typedef(';NSString*';vs';AVMediaType';)

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

升级到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 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等