我刚刚从 Xcode 4 升级到 Xcode 4.2,现在在为模拟器构建时出现以下错误:
ld: in /Users/rstaicut/Library/Developer/Xcode/DerivedData/iphone/Build/Intermediates/iphone.build/QA Server-iphonesimulator/Project iPhone Debug.build/Objects-normal/i386/CartController.o, could not parse object file
/Users/rstaicut/Library/Developer/Xcode/DerivedData/iphone/Build/Intermediates/iphone.build/QA Server-iphonesimulator/Project iPhone Debug.build/Objects-normal/i386/CartController.o:
**Malformed metadata record for architecture i386**
**Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1**
需要注意的一点是,我已将编译器更改为 LLVM GCC 4.2 以进行此次升级,并且我将 armv6 和 armv7 用于架构。我只收到模拟器的这个错误,设备的构建完成。
任何想法格式错误的元数据记录可能意味着什么?