1

我正在尝试在我的计算机上编译我同事的项目。该项目正在他的计算机中编译。当我复制并编译时,出现以下错误:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_DefaultSHKConfigurator", referenced from:
      _OBJC_CLASS_$_ShareKitConfiguration in ShareKitConfiguration.o
  "_OBJC_CLASS_$_SHK", referenced from:
      objc-class-ref in AppDelegate.o
      objc-class-ref in VideoDetails.o
  "_OBJC_CLASS_$_SHKActionSheet", referenced from:
      objc-class-ref in VideoDetails.o
  "_OBJC_CLASS_$_SHKConfiguration", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_SHKFacebook", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_SHKItem", referenced from:
      objc-class-ref in VideoDetails.o
  "_OBJC_METACLASS_$_DefaultSHKConfigurator", referenced from:
      _OBJC_METACLASS_$_ShareKitConfiguration in ShareKitConfiguration.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

1

您可能将 ShareKit 作为子模块并导入 XCode 项目。在您的 git 存储库中,调用以下命令:

git submodule init
git submodule update

然后重新启动 XCode 并尝试构建它。如果您仍有问题,请确保您的项目已按照此处的 ShareKit 安装说明进行配置:https ://github.com/ShareKit/ShareKit/wiki/Installing-sharekit

于 2012-11-20T16:38:54.830 回答