0

我是 Xcode 的新手。

我在旧的(iOS 3.2)xcode 游戏项目上添加了一些功能。在我接触之前,这段代码已经有一年多没有接触过了。在我尝试制作 .iap 文件之前,它运行良好。它运行正常,我的所有更改都没有出错。所以我从 iPhone 6.0 Simulator -> iOS Device 更改了目标设备,并尝试存档。不幸的是,它产生了一堆错误:

ld: warning: ignoring file lib/libegn_neutron_http_Release_iphoneos.a, file was built for archive which is not the architecture being linked (armv7): lib/libegn_neutron_http_Release_iphoneos.a
Undefined symbols for architecture armv7:
  "_EGN_setPollingInMenu", referenced from:
      ExitGamesCreateSession(sLibraryData*) in exitgames.o
  "_EGN_Neutron_New", referenced from:
      ExitGamesInit(sLibraryData*) in exitgames.o
  "_EGN_setServerUrl", referenced from:
      ExitGamesCreateSession(sLibraryData*) in exitgames.o

......类似的34个错误继续

  "_EGN_NeutronCls_Release", referenced from:
      ExitGamesShutDown(sLibraryData*) in exitgames.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这个项目使用了一些支持社交功能的“exitgames”库。这个项目也有一些“Brew”c++代码的包装部分。不知道哪个部位有问题。试图弄清楚并搜索了一整天,但仍然无法获得线索。

有人可以给我一个建议吗?谢谢你。

4

1 回答 1

1

尝试从命令行运行 lipo -info exitgames.a,它应该会告诉您该框架支持哪些架构。

于 2013-02-22T22:01:48.530 回答