Restkit on Xcode 4.5 GM does not work on iOS 6 device - file was created for an archive that is not related to architecture

I am using Xcode 4.4.1, and Restkit works fine on Simulator and Device. Since I upgraded to Xcode 4.5 yesterday, Restkit works fine on Simulator, but when I try to run iOS 6 on my device, I get compilation 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 can I fix this problem? Help is appreciated.

+6
source share
4 answers

I moved the branch to the RestKit Github repository, which should solve build problems using the iOS 6 SDK. I was not able to duplicate build errors in my project (I was spending a lot on the main branch), but I think the fix is โ€‹โ€‹accurate.

Can someone experience the problem, please switch to the bugfix/930-arm7s-compatibility branch and let bugfix/930-arm7s-compatibility know if the fix is โ€‹โ€‹good on Github? There is a Github issue tracking this: https://github.com/RestKit/RestKit/issues/930

+5
source

You may need to recompile the RestKit Framework using the iOS6 SDK , and then add the libRestKit.a project to the project.

EDIT:

It has been fixed. You must make changes to your project files from here.

+2
source

I had the same problem

this topic solved my problem fooobar.com/questions/925283 / ... and, most importantly, make sure that "Build Active Architecture Only" is set to "No" in the build settings of both the "Restkit" project and your own project .

+1
source

Restkit is compiled for armv6 / armv7, so it cannot work on armv7s, many of the third Lib will answer the same question.

0
source

Source: https://habr.com/ru/post/925282/


All Articles