使用NSUserDefaults时未定义的符号错误

时间:2013-04-16 14:03:30

标签: xcode armv7

我在我的项目中使用了NSUserDefaults。但是当我尝试运行我的代码时,我收到此错误消息。它是一个没有正确链接的框架吗?

    Undefined symbols for architecture armv7:
  "_userDefaults", referenced from:
      -[PlanItDelegate application:didFinishLaunchingWithOptions:] in PlanItDelegate.o
      -[PlanningViewController numberOfSectionsInTableView:] in PlanningViewController.o
      -[PlanningViewController tableView:cellForRowAtIndexPath:] in PlanningViewController.o
      -[PlanningViewController prepareForSegue:sender:] in PlanningViewController.o
      -[PlanningViewController tableView:titleForHeaderInSection:] in PlanningViewController.o
      -[InstellingenViewController tableView:cellForRowAtIndexPath:] in InstellingenViewController.o
      -[InstellingenViewController txtUserChanged:] in InstellingenViewController.o
      ...
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

0 个答案:

没有答案