架构的未定义符号出错

时间:2013-10-01 07:42:25

标签: ios

Undefined symbols for architecture i386:
  "_Ending_lat", referenced from:
      -[MapKitDragAndDropViewController calculator:] in MapKitDragAndDropViewController.o
      -[MapKitDragAndDropViewController viewDidLoad] in MapKitDragAndDropViewController.o
  "_Ending_log", referenced from:
      -[MapKitDragAndDropViewController calculator:] in MapKitDragAndDropViewController.o
      -[MapKitDragAndDropViewController viewDidLoad] in MapKitDragAndDropViewController.o
  "_Starting_lat", referenced from:
      -[MapKitDragAndDropViewController calculator:] in MapKitDragAndDropViewController.o
      -[MapKitDragAndDropViewController viewDidLoad] in MapKitDragAndDropViewController.o
  "_Starting_log", referenced from:
      -[MapKitDragAndDropViewController calculator:] in MapKitDragAndDropViewController.o
      -[MapKitDragAndDropViewController viewDidLoad] in MapKitDragAndDropViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我得到的错误,请帮助我。

1 个答案:

答案 0 :(得分:0)

如果您的类.m未在Compile Sources或缺少的框架下列出,则可以找到这些类型的错误。我认为您忘记将MapKit framework与您的iOS项目相关联。