RestKit - Lipo错误:不能在Xcode5中打开输入文件。

时间:2022-01-19 00:57:39

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.

我有一个iOS应用程序,我需要在iOS7上升级。我使用的是RestKit版本0.10.2。当归档时,我有以下错误。

/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

之前,我已经按照https://github.com/restkit/restkit/product/930的指示,修正了iOS6的错误。

But now its not working for iOS7. Here is screenshot for current RestKit.xcodeproj Architectures settings. RestKit - Lipo错误:不能在Xcode5中打开输入文件。

但是现在它不是为iOS7工作的。这里是当前RestKit的截图。xcodeproj架构设置。

Any suggestion is appreciated.

任何建议都是感激。

3 个解决方案

#1


10  

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

哈!终于找到了解决方案。如果您没有使用arm64体系结构的任何特定特性,那么就将其启动。只将构建活动架构设置为Yes。

RestKit - Lipo错误:不能在Xcode5中打开输入文件。

Repeat same for RestKit.xcodeproj

对RestKit.xcodeproj重复相同

RestKit - Lipo错误:不能在Xcode5中打开输入文件。

Clean your project and Archive. Best of Luck :)

清理你的项目和档案。祝你好运:)

#2


0  

I had the same Issue and couldn't fix it, so I just removed the restkit files and all its build settings. after that i used Cocoapods for restkit and other frameworks. its much better to work with and all these kinda errors are gone. I'm using it since iOS5 and last week I fixed my app for iOS7

我有同样的问题,无法修复它,所以我只是删除了restkit文件和它的所有构建设置。之后,我用Cocoapods作为restkit和其他框架。更好的方法是,所有这些错误都消失了。我从iOS5开始使用它,上周我为iOS7安装了应用程序。

#3


0  

If you need this fix for building from the command line - and you don't have an *.xcodeproj then this will fix it:

如果您需要从命令行构建此修复程序—并且您没有*。xcodeproj就可以解决这个问题:

Change:

变化:

(cd $BUILDDIR/i386;  "$SIM_DEV_DIR/ar" crus some.a obj/*.o; )

To:

:

# have to take ar from ARM_DEV_DIR in xcode 5
(cd $BUILDDIR/i386;  "$ARM_DEV_DIR/ar" crus some.a obj/*.o; )

IOW: In xCode5 ar has moved from $SIM_DEV_DIR/ar to $ARM_DEV_DIR/ar

IOW:在xCode5 ar中已经从$SIM_DEV_DIR/ar移动到$ARM_DEV_DIR/ar。

#1


10  

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

哈!终于找到了解决方案。如果您没有使用arm64体系结构的任何特定特性,那么就将其启动。只将构建活动架构设置为Yes。

RestKit - Lipo错误:不能在Xcode5中打开输入文件。

Repeat same for RestKit.xcodeproj

对RestKit.xcodeproj重复相同

RestKit - Lipo错误:不能在Xcode5中打开输入文件。

Clean your project and Archive. Best of Luck :)

清理你的项目和档案。祝你好运:)

#2


0  

I had the same Issue and couldn't fix it, so I just removed the restkit files and all its build settings. after that i used Cocoapods for restkit and other frameworks. its much better to work with and all these kinda errors are gone. I'm using it since iOS5 and last week I fixed my app for iOS7

我有同样的问题,无法修复它,所以我只是删除了restkit文件和它的所有构建设置。之后,我用Cocoapods作为restkit和其他框架。更好的方法是,所有这些错误都消失了。我从iOS5开始使用它,上周我为iOS7安装了应用程序。

#3


0  

If you need this fix for building from the command line - and you don't have an *.xcodeproj then this will fix it:

如果您需要从命令行构建此修复程序—并且您没有*。xcodeproj就可以解决这个问题:

Change:

变化:

(cd $BUILDDIR/i386;  "$SIM_DEV_DIR/ar" crus some.a obj/*.o; )

To:

:

# have to take ar from ARM_DEV_DIR in xcode 5
(cd $BUILDDIR/i386;  "$ARM_DEV_DIR/ar" crus some.a obj/*.o; )

IOW: In xCode5 ar has moved from $SIM_DEV_DIR/ar to $ARM_DEV_DIR/ar

IOW:在xCode5 ar中已经从$SIM_DEV_DIR/ar移动到$ARM_DEV_DIR/ar。