Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RestKit - Lipo Error: can't open input file in Xcode5

I have an iOS application that i need to upgrade on iOS7. I am using RestKit version 0.10.2. While archiving i get following error.

/Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/khawarshahzad/Library/Developer/Xcode/DerivedData/MyAPP-fcvmsuowvnqkdseskmuetssnxoww/Build/Intermediates/ArchiveIntermediates/MyAPP/IntermediateBuildFilesPath/MyAPP.build/Release-iphoneos/MyAPP.build/Objects-normal/armv7s/MyAPP (No such file or directory)

Previously i had fixed this error for iOS6 by following instructions on https://github.com/RestKit/RestKit/issues/930

But now its not working for iOS7. Here is screenshot for current RestKit.xcodeproj Architectures settings. enter image description here

Any suggestion is appreciated.

like image 742
Khawar Avatar asked Dec 26 '22 17:12

Khawar


1 Answers

Huh! finally found the solution. If you are not using any specific feature of arm64 architecture, then just kick it off. Go to project -> target (your project name) -> build settings and change architectures to standard architectures (armv7, armv7s), and valid architectures to armv7, armv7s. Set Build Active Architecture Only to Yes

enter image description here

Repeat same for RestKit.xcodeproj

enter image description here

Clean your project and Archive. Best of Luck :)

like image 197
Khawar Avatar answered Dec 28 '22 06:12

Khawar