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)
这是我得到的错误,请帮助我。
答案 0 :(得分:0)
如果您的类.m
未在Compile Sources
或缺少的框架下列出,则可以找到这些类型的错误。我认为您忘记将MapKit framework
与您的iOS
项目相关联。