3

我正在开发一个使用 twitter API 的应用程序。

该应用程序在连接到 IOS 设备时运行良好,但是当我将架构从 armv6 更改为 i386 以使其在模拟器上运行时,我收到此错误:

  ld: warning: ignoring file       /Users/username/Desktop/tweetsAloud/tweets2/tweetsAloud/Src/NeoSpeech/lib-i iphoneos/libvt_eng_julie.a, missing required architecture i386 in file
Undefined symbols for architecture i386:
  "_VT_LOADTTS_ENG", referenced from:
      -[TweetsViewController viewWillAppear:] in TweetsViewController.o
  "_VT_UNLOADTTS_ENG", referenced from:
      -[TweetsViewController viewWillDisappear:] in TweetsViewController.o
  "_VT_TextToFile_ENG", referenced from:
      -[TweetsViewController readyStringToPlay:] in TweetsViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

所以我已经阅读了很多建议,并尝试了其中的大部分,但运气不佳。

我首先确保我拥有所有的框架,然后我尝试编辑 project.pbxproj,但仍然没有工作。

我已经尝试清理和更改构建设置。

有人知道为什么我会收到此错误消息吗?

4

1 回答 1

5

您可能正在将您的 i386 项目与库 NeoSpeech/lib-i iphoneos/libvt_eng_julie.a 的 arm 构建链接。这就是警告的意思。

如果这个库有 i386 版本,则更改链接器设置以指向该版本。如果你没有这个lib的i386版本,那么你必须从作者那里得到它,或者如果你有源代码,你自己编译它。

祝你好运。

于 2011-09-18T22:46:54.363 回答