簡體   English   中英

如何在{name} .framework中添加架構armv7,armv7s?

[英]How to add architecture armv7, armv7s to {name}.framework?

我在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支持? 請幫忙..

您將需要再次構建iOS SDK框架。 它具有不同的項目文件結構,並且SDK支持完全不同的功能集:OSX支持的許多方法和類在iOS中均不支持。 您可以嘗試從頭開始為iOS創建項目文件,但這將是一項艱巨的任務,由於SDK不兼容,因此無法保證成功。 也許您可以向框架的作者尋求幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM