【问题标题】:MPPlayableContentManagerContext error in Xcode 6.4Xcode 6.4 中的 MPPlayableContentManagerContext 错误
【发布时间】:2015-07-01 16:19:15
【问题描述】:
我正在使用 iOS 项目和 Xcode 6.3.2,该项目正在编译和运行完美,但今天我已更新到 Xcode 6.4,现在我无法编译该项目,因为 MediaPlayer 框架中的“MPPlayableContentManagerContext”失败.我在这个框架类中有很多错误。
有人知道原因吗?
谢谢,
亲切的问候。
【问题讨论】:
标签:
ios
objective-c
xcode
【解决方案1】:
这是因为使用了 NBUAvailability.h https://gist.github.com/rivera-ernesto/7228433
您必须将版本 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