简体   繁体   English

Xcode 6.4中的MPPlayableContentManagerContext错误

[英]MPPlayableContentManagerContext error in Xcode 6.4

I was working with a iOS project and Xcode 6.3.2 and the project was compiling and running perfect, but Today I have updated to Xcode 6.4 and now I can't compily the project because "MPPlayableContentManagerContext" from MediaPlayer framework are failing. 我当时使用的是iOS项目和Xcode 6.3.2,并且该项目正在编译并且运行完美,但是今天我已经更新到Xcode 6.4,现在我不能编译该项目,因为MediaPlayer框架中的“ MPPlayableContentManagerContext”失败了。 I have many errors in this framework class. 我在这个框架类中有很多错误。

Someone know the reason? 有人知道原因吗?

屏幕截图

Thank you, 谢谢,

Kind regards. 亲切的问候。

It is happening because of the use of NBUAvailability.h https://gist.github.com/rivera-ernesto/7228433 由于使用NBUAvailability.h https://gist.github.com/rivera-ernesto/7228433而发生

You have to add the version 8_4 to the list: 您必须将版本8_4添加到列表中:

#if __IPHONE_OS_VERSION_SOFT_MAX_REQUIRED < __IPHONE_8_4
#undef __AVAILABILITY_INTERNAL__IPHONE_8_4
#define __AVAILABILITY_INTERNAL__IPHONE_8_4 __NBU_AVAILABILITY_STARTING("8.4")
#define __NBU_APICHECK_8_4(_ios)            __NBU_AVAILABILITY_STARTING("8.4")
#else
#define __NBU_APICHECK_8_4(_ios)            CF_AVAILABLE_IOS(_ios)
#endif

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM