我在我的 iOS 应用程序中使用libmusicxml2.framework 。她是为 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 支持?请帮忙..