用于_NTP_Logging的架构armv7的未定义符号

时间:2012-10-24 21:18:48

标签: ios xcode

首先,有很多问题询问如何解决导入lib /文件时似乎发生的编译错误。任何人都可以解释“架构armv7的未定义符号”的含义首先。我导入了ntp客户端的文件,用于iso(http://code.google.com/p/ios-ntp/source/checkout),它在自己的Xcode项目中工作,但当我移动到我的项目时,它失败并出现以下错误和警告。任何的想法 ?

    Undefined symbols for architecture armv7:
     "_NTP_Logging", referenced from:
      -[NetAssociation evaluatePacket] in NetAssociation-586077E517B5DC42.o
      -[NetworkClock associationTrue:] in NetworkClock-496336397AA5FC44.o
      -[NetworkClock associationFake:] in NetworkClock-496336397AA5FC44.o
    "_DEFINE_SHARED_INSTANCE_USING_BLOCK", referenced from:
     +[NetworkClock sharedInstance] in NetworkClock-496336397AA5FC44.o
    "_LogInProduction", referenced from:
     -[NetAssociation enable] in NetAssociation-586077E517B5DC42.o
     -[NetAssociation finish] in NetAssociation-586077E517B5DC42.o
     -[NetAssociation onUdpSocketDidClose:] in NetAssociation-586077E517B5DC42.o
     -[NetworkClock createAssociations] in NetworkClock-496336397AA5FC44.o
     -[NetworkClock applicationBack:] in NetworkClock-496336397AA5FC44.o
     -[NetworkClock applicationFore:] in NetworkClock-496336397AA5FC44.o
  ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)


  Warning: no rule to process file '$(PROJECT_DIR)/SwapViews_3/NetAssociation.h' of type   
 sourcecode.c.h for architecture armv7

1 个答案:

答案 0 :(得分:2)

您不应该在要编译的.c文件中包含.h文件。 转到目标的“构建阶段”选项卡。然后检查“编译源”部分并删除.h文件。