使用Xcode 6.1和unity 4.6的Apple Mach-O链接器错误

时间:2014-12-04 07:04:09

标签: ios unity3d xcode6.1

尝试在Xcode中构建一个统一项目。它给了我这个错误。无法弄清楚。我正在使用unity 4.6 and Xcode 6.1

Undefined symbols for architecture armv7:
  "UnityGetGLViewController()", referenced from:
      +[GameCenterManager showViewControllerModallyInWrapper:] in libGameCenterPlugin.a(GameCenterManager.o)
      +[GameCenterManager dismissWrappedController:] in libGameCenterPlugin.a(GameCenterManager.o)
      +[GameCenterManager unityViewController] in libGameCenterPlugin.a(GameCenterManager.o)
      -[StoreKitManager displayStoreWithProductId:] in libStoreKit.a(StoreKitManager.o)
      ___45-[StoreKitManager displayStoreWithProductId:]_block_invoke in libStoreKit.a(StoreKitManager.o)
      -[StoreKitManager productViewControllerDidFinish:] in libStoreKit.a(StoreKitManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

打开正确目标的构建阶段,展开编译源并添加UnityGetGLViewController.m文件。转到Build Phases选项卡,然后编译源并确保将类拖到列表中