4

当我在 iPhone 5.1模拟器上运行我的应用程序时,我有以下失败的代码。在我将 Facebook Connect 添加到我的应用程序之前,我的应用程序运行顺利。

Undefined symbols for architecture i386:
  "_FBCreateNonRetainingArray", referenced from:
      -[FBSession initWithKey:secret:getSessionProxy:] in FBSession.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我可以知道我能做些什么来摆脱这个吗?

谢谢

4

1 回答 1

0

2 things that usually get rid of that error.

1) go to: target > build phases > link binary with library -- make sure you've added the correct framework 2) go to: target > build phases > compile sources -- add any implementation files that are in your program but do not appear in that list.

Those two steps usually fix that kind of error.

于 2013-08-01T11:54:34.187 回答