当我将 iPhone
项目转换为 Objective - c ARC
时,我总是遇到相同的错误:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: can't figure out the architecture type of: /Users/user/Library/Developer/Xcode/DerivedData/TestApp-fktzngidcyimjibgdosyphgbuzpe/Build/Intermediates/TestApp.build/Debug-iphoneos/TestApp.build/Objects-normal/armv7/TestAppCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo failed with exit code 1
请问有人可以建议我如何解决这个问题吗?
最佳答案
如果您使用不支持 ARC 的第 3 方库,您应该将此标志添加到构建阶段/编译源中的相关文件中(仅在这些文件上防止 ARC)。这应该可以帮助您确定问题是您的代码还是您正在使用的库(如果是这种情况)。
-fno-objc-arc
关于iphone - 将非 ARC 项目转换为 ARC 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16917893/