gpt4 book ai didi

iphone - 如何将架构armv7、armv7s添加到{name}.framework?

转载 作者:行者123 更新时间:2023-11-29 04:06:15 25 4
gpt4 key购买 nike

我正在使用libmusicxml2.framework在我的 iOS 应用程序中。她是为 Mac OSX 构建的,当我在模拟器上运行它时一切正常。但是当我在设备上运行时,我收到以下错误:

    Undefined symbols for architecture armv7:
"vtable for MusicXML2::xmlreader", referenced from:
MusicXML2::xmlreader::~xmlreader() in TransposerLibXML.o
MusicXML2::xmlreader::xmlreader() in TransposerLibXML.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"MusicXML2::xmlreader::read(char const*)", referenced from:
+[TransposerLibXML transposeFileAtPath:interval:] in TransposerLibXML.o
+[TransposerLibXML currentKeyInrevalForFile:] in TransposerLibXML.o
+[TransposerLibXML moodForFile:] in TransposerLibXML.o
+[TransposerLibXML songNameForFile:] in TransposerLibXML.o
+[TransposerLibXML composerNameForFile:] in TransposerLibXML.o
"MusicXML2::TXMLFile::print(std::ostream&)", referenced from:
+[TransposerLibXML transposeFileAtPath:interval:] in TransposerLibXML.o
"MusicXML2::transposition::transposition(int)", referenced from:
+[TransposerLibXML transposeFileAtPath:interval:] in TransposerLibXML.o
"vtable for MusicXML2::xml_tree_browser", referenced from:
MusicXML2::xml_tree_browser::xml_tree_browser(MusicXML2::basevisitor*) in TransposerLibXML.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"MusicXML2::xmlelement::getAttributeValue(std::string const&) const", referenced from:
composernamevisitor::visitStart(MusicXML2::SMARTP<MusicXML2::musicxml<52> >&) in TransposerLibXML.o
"MusicXML2::xml_tree_browser::browse(MusicXML2::xmlelement&)", referenced from:
+[TransposerLibXML transposeFileAtPath:interval:] in TransposerLibXML.o
+[TransposerLibXML currentKeyInrevalForFile:] in TransposerLibXML.o
+[TransposerLibXML moodForFile:] in TransposerLibXML.o
+[TransposerLibXML songNameForFile:] in TransposerLibXML.o
+[TransposerLibXML composerNameForFile:] in TransposerLibXML.o
"MusicXML2::transposition::~transposition()", referenced from:
+[TransposerLibXML transposeFileAtPath:interval:] in TransposerLibXML.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如何添加对 libmusicxml2.framework 的 armv7 支持?请帮忙..

最佳答案

您需要根据 iOS SDK 构建框架。它具有不同的项目文件结构,并且 SDK 支持完全不同的功能集:OSX 中支持的许多方法和类在 iOS 中不支持。您可以尝试从头开始创建 iOS 项目文件,但这将是一项具有挑战性的任务,并且由于 SDK 不兼容,无法保证成功。也许您可以向该框架的作者寻求帮助。

关于iphone - 如何将架构armv7、armv7s添加到{name}.framework?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15152969/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com