本文介绍了Restkit on Xcode 4.5 GM在iOS 6设备上不起作用 - 文件是为存档而构建的,而不是被链接的体系结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Xcode 4.4.1,而Restkit一直在模拟器和设备上完美运行。自从我昨天升级到Xcode 4.5以来,Restkit在模拟器上工作正常,但是当我尝试在我的iOS 6设备上运行时,我遇到了编译错误;

I have been using Xcode 4.4.1 and Restkit has been working perfectly on Simulator and Device. Since I upgraded to Xcode 4.5 yesterday, Restkit works fine on the Simulator, but when I try to run on my iOS 6 device, I get compile errors;

d: warning: ignoring file /Developer/Xcode/DerivedData/App-Name/Build/Products/Debug-iphoneos/libRestKit.a, file was built for archive which is not the architecture being linked (armv7s): /Developer/Xcode/DerivedData/App-Name/Build/Products/Debug-iphoneos/libRestKit.a
Undefined symbols for architecture armv7s:

  "_OBJC_CLASS_$_RKObjectManager", referenced from:
      objc-class-ref in AppDelegate.o

这是什么意思,我该怎么办?解决这个问题?感谢帮助。

What does this mean and how do I fix this issue? Help is appreciated.

推荐答案

我已将分支推送到RestKit Github存储库,该存储库应解决iOS 6 SDK的构建问题。我无法复制项目中的构建错误(我与主分支显着不同),但相信修复是准确的。

I have pushed a branch to the RestKit Github repository that should address the build issues with the iOS 6 SDK. I was not able to duplicate the build errors in my project (I am diverged from the master branch significantly), but believe the fix is accurate.

是否有人遇到此问题请切换到 bugfix / 930-arm7s-compatibility 分支,并告知Github上的修复是否正常?有一个Github问题跟踪此问题:

Could someone experiencing the issue please switch to the bugfix/930-arm7s-compatibility branch and advise if the fix is good on Github? There is a Github issue tracking this at: https://github.com/RestKit/RestKit/issues/930

这篇关于Restkit on Xcode 4.5 GM在iOS 6设备上不起作用 - 文件是为存档而构建的,而不是被链接的体系结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 23:05