我正在尝试使用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 < / p>
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之间的关键错误。
我也试过使用预先编译的框架,结果相同。
问题是:
感谢您的帮助!
答案 0 :(得分:0)
我使用XCode构建了静态库,问题已经解决了!