[英]Can't build project with MobileVLCKit (XCode)
我正在尝试使用MobileVLCKit为iOS和tvOS制作一个单视图应用程序。
这是我的二进制文件:
imac:~ vlad$ file ~/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit
/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit: Mach-O universal binary with 5 architectures
/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit (for architecture armv7): current ar archive random library
/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit (for architecture armv7s): current ar archive random library
/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit (for architecture i386): current ar archive random library
/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit (for architecture x86_64): current ar archive random library
/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit (for architecture arm64): current ar archive random library
当我尝试构建和运行项目时,出现两种错误:
如果我正在使用AppleTV项目:
ld:在/Users/vlad/Desktop/FrameworkFolder/MobileVLCKit.framework/MobileVLCKit(VLCMediaPlayer.o)中,针对tvOS构建,但链接到针对iOS构建的对象文件(针对架构arm64)
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
如果我正在使用iOS项目:
Undefined symbols for architecture x86_64: "_AVAudioSessionCategoryPlayback", referenced from: _Start in MobileVLCKit(audiounit_ios.o) _Pause in MobileVLCKit(audiounit_ios.o) "_AVAudioSessionModeMoviePlayback", referenced from: _Start in MobileVLCKit(audiounit_ios.o) _Pause in MobileVLCKit(audiounit_ios.o) "_AudioComponentFindNext", referenced from: _Start in MobileVLCKit(audiounit_ios.o) "_AudioComponentInstanceDispose", referenced from: _Stop in MobileVLCKit(audiounit_ios.o)
—在开始时,以及:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing first 200 notices only
—在输出末尾。 与155个严重错误之间。
我也尝试过使用预编译的框架,同样的结果。
问题是:
感谢您的任何帮助!
我使用XCode构建了静态库,问题已解决!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.