Xcode转换为ARC,创建通用二进制文件失败,错误为“无法确定”的体系结构类型。 [英] Xcode Convert to ARC, Create universal binary fails with error of "can't figure out the architecture type of"

查看:164
本文介绍了Xcode转换为ARC,创建通用二进制文件失败,错误为“无法确定”的体系结构类型。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将iOS(纯Objective-C)项目转换为ARC。转换在octest目标CreateUniversalBinary阶段失败,并出现以下错误。项目和目标架构构建设置对我来说是正确的,所以我很难理解为什么会失败:

I'm attempting to convert an iOS (pure Objective-C) project to ARC. The conversion fails at the octest target CreateUniversalBinary stage with the following error. The project and target architecture build settings look correct to me so I am struggling to understand why this is failing:


/Applications/Xcode.app /Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo:无法弄清楚架构类型:/ Users / andybowskill / Library / Developer / Xcode / DerivedData / Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc / Build /中间体/化妆Kit.build/Debug-iphoneos/Make-Up KitTests.build/Objects-normal/armv7/Make-Up KitTests
命令/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS。 platform / Developer / usr / bin / lipo失败,退出代码为1

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: can't figure out the architecture type of: /Users/andybowskill/Library/Developer/Xcode/DerivedData/Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc/Build/Intermediates/Make-Up Kit.build/Debug-iphoneos/Make-Up KitTests.build/Objects-normal/armv7/Make-Up KitTests Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo failed with exit code 1

前面提到的CreateUniversalBinary命令如下:

The aforementioned CreateUniversalBinary command is as follows:


CreateUniversalBinary/ Users / andybowskill / Library / Developer / Xcode / DerivedData / Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc / Build / Products / Debug-iphoneos / Make-Up KitTests .octest / Make-Up KitTests正常armv7 armv7s
cd/ Users / andybowskill / Development / iOS / Make-Up Kit
setenv PATH/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/ Applications / Xcode.app / Contents / Developer / usr / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin
lipo -create/ Users / andybowskill / Library / Developer / Xcode / DerivedData / Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc / Build / Intermediates / Make-Up Kit.build/Debug-iphoneos/Make-Up KitTests.build/Objects-normal/armv7/Make-Up KitTests/ Users / andybowskill / Library / Developer / Xcode / DerivedData / Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc / Build / Intermediates / Make-Up Kit.build/Debug-iphoneos/Make-Up KitTests.build/Objects-normal/armv7s/Make-Up KitTests-output/ Users / andybowskill / Library / Developer / Xcode / DerivedData / Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc / Build / Products / Debug-iphoneos / Make-Up KitTests.octest / Make-Up KitTests

CreateUniversalBinary "/Users/andybowskill/Library/Developer/Xcode/DerivedData/Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc/Build/Products/Debug-iphoneos/Make-Up KitTests.octest/Make-Up KitTests" normal "armv7 armv7s" cd "/Users/andybowskill/Development/iOS/Make-Up Kit" setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" lipo -create "/Users/andybowskill/Library/Developer/Xcode/DerivedData/Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc/Build/Intermediates/Make-Up Kit.build/Debug-iphoneos/Make-Up KitTests.build/Objects-normal/armv7/Make-Up KitTests" "/Users/andybowskill/Library/Developer/Xcode/DerivedData/Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc/Build/Intermediates/Make-Up Kit.build/Debug-iphoneos/Make-Up KitTests.build/Objects-normal/armv7s/Make-Up KitTests" -output "/Users/andybowskill/Library/Developer/Xcode/DerivedData/Make-Up_Kit-axtbxqtkmnlfmlcafkoetwqmeufc/Build/Products/Debug-iphoneos/Make-Up KitTests.octest/Make-Up KitTests"

有人可以帮忙解释一下这个错误吗?非常感谢提前!

Please could someone help to explain the error? Many thanks in advance!

推荐答案

我再次搜索了我的项目构建设置并注意到我已经删除了armv6架构支持但仍然有部署目标设置为小于4.3的iOS版本。将部署目标更新到iOS 4.3或更高版本可以解决问题。

I trawled my project build settings again and noticed that I had removed armv6 architecture support but still had the deployment target set to an iOS version less than 4.3. Updating the deployment target to iOS 4.3 or above resolved the problem.

这篇关于Xcode转换为ARC,创建通用二进制文件失败,错误为“无法确定”的体系结构类型。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆