架构armv7的未定义符号:homeViewController1

时间:2016-02-18 13:55:36

标签: ios xcode linker armv7

您好我面对"链接器命令失败,退出代码为1(使用-v查看调用)"问题。

Undefined symbols for architecture armv7:
"_voiceLoad", referenced from:
  -[HomeViewController1 setVoiceName:] in HomeViewController1.o
"_channelGetSpeakingRate", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelCloseInputTextQueue", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelPollPhraseQueueBlocking", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelSetVoice", referenced from:
  -[HomeViewController1 setVoiceName:] in HomeViewController1.o
"_phraseGetSampleCount", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_phraseGetSamples", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelFlush", referenced from:
  -[HomeViewController1 stopSpeak1] in HomeViewController1.o
"_channelOpen", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
"_channelSetPlaying", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
"_channelWriteRegistry", referenced from:
  -[HomeViewController1 setVoiceName:] in HomeViewController1.o
"_channelUsePhraseQueue", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
"_channelSetInputText", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelLoadRegistry", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
"_channelSetSpeakingRate", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelGetVoice", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
"_phraseMarkForDeletion", referenced from:
  -[HomeViewController1 speakModelTalker:] in HomeViewController1.o
"_channelStart", referenced from:
  -[HomeViewController1 actionDidSpeakOrPublish:] in HomeViewController1.o
  -[HomeViewController1 textTapped:] in HomeViewController1.o
"_channelStop", referenced from:
  -[HomeViewController1 stopSpeak1] in HomeViewController1.o
  -[HomeViewController1 actionDidSpeakOrPublish:] in HomeViewController1.o
  -[HomeViewController1 setVoiceName:] in HomeViewController1.o
"_channelListVoices", referenced from:
  -[HomeViewController1 voices] in HomeViewController1.o
"_channelSetPitch", referenced from:
  -[HomeViewController1 setUpModelTalkerVoice:] in HomeViewController1.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我在下面的步骤中完成了这一步。

  1. 清理项目。
  2. 删除了衍生数据和垃圾文件。
  3. 退出Xcode并重新打开。
  4. 构建活动架构仅设置为'否'。
  5. 但我还是面对这个链接器错误。有没有人使用过这个程序并可以帮助我?

    谢谢。

1 个答案:

答案 0 :(得分:1)

HomeViewController1.o

这个.o显示了两件事

  
      
  1. 文件HomeViewController1添加了两次,在Project中搜索它,看看它是否为双

  2.   
  3. 您正在导入两个类中的文件,例如A类导入B类,B类导入A类。因此,如果导入两次,请创建一个   @class,而不是import。

  4.   

感谢。