Xcode 6.4 中的 MPPlayableContentManagerContext 错误 [英] MPPlayableContentManagerContext error in Xcode 6.4

查看:26
本文介绍了Xcode 6.4 中的 MPPlayableContentManagerContext 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个 iOS 项目和 Xcode 6.3.2,该项目正在编译和运行完美,但今天我已更新到 Xcode 6.4,现在我无法编译该项目,因为 MediaPlayer 框架中的MPPlayableContentManagerContext"失败.我在这个框架类中有很多错误.

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. I have many errors in this framework class.

有人知道原因吗?

谢谢,

亲切的问候.

推荐答案

这是因为使用了 NBUAvailability.h https://gist.github.com/rivera-ernesto/7228433

It is happening because of the use of NBUAvailability.h https://gist.github.com/rivera-ernesto/7228433

您必须将版本 8_4 添加到列表中:

You have to add the version 8_4 to the list:

#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

这篇关于Xcode 6.4 中的 MPPlayableContentManagerContext 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆