2

我有个问题。我从( http://code.videolan.org/videolan/VLCKit.git )克隆了 VLCKit,并尝试编译为 tvOS 的静态框架(参数 -f -t)。但我找不到已编译的框架(期待 .framework 文件)。它在哪里?

4

2 回答 2

1

编译过程似乎被破坏了,因为 tvOS 和 iOS 版本不匹配:使用 tvOS 9.1 编译后,它抱怨缺少 9.0 SDK:

[info] Building MobileVLCKit (MobileVLCKit, Release, iphoneos)
xcodebuild: error: SDK "iphoneos9.0" cannot be located.

我对理解编译价格不是很有信心,但似乎最后阶段必须对编译目录进行硬编码,并且显然设置了一个错误的目标,但也将此信息用作基本 SDK,因此我添加了一个新参数,如下所示:

buildxcodeproj MobileVLCKit“TVVLCKit”手机appletvos9.0

buildxcodeproj MobileVLCKit "TVVLCKit" iphonesimulator appletvsimulator9.0

替换 buildxcodeproj 中 xcodebuild 的 --sdk 的值

此外,最终 lipo 命令中的路径是错误的

希望有帮助

于 2015-10-05T10:56:04.607 回答
1

框架标志目前不适用于 tvOS。对于 tvOS,我们只提供带有头文件的通用静态库 (*.a)(通用的意思是它包括模拟器和设备的切片)。

于 2015-09-29T11:19:02.877 回答