2

我对 xcode 和 ios 开发有疑问。去年我决定安装 xcode 和 ios sdks 来学习如何构建一个 ios 应用程序。一切正常。

时间过去了,我决定格式化我的 mac 以在全新的 SSD 上安装新的 MacOS。

昨天,我下载了带有 ios SDK 的 Xcode 4.2 并安装了它。我开始了一个新项目,然后开始它而不进行任何编辑。

它失败并显示此错误消息:

CompileXIB exemple/en.lproj/FirstView.xib
cd /Users/karlcosse/iosDevs/exemple
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Developer/usr/bin/..
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/karlcosse/Library/Developer/Xcode/DerivedData/exemple-fdgpmxhwzhcpnydzkgzelaqeaxnh/Build/Products/Debug-iphonesimulator/exemple.app/en.lproj/FirstView.nib /Users/karlcosse/iosDevs/exemple/exemple/en.lproj/FirstView.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk

dyld: Symbol not found: _CFXMLNodeGetInfoPtr
   Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
ibtoold(932,0x7fff712b6cc0) malloc: *** auto malloc[932]: error: auto_zone_set_associative_ref: object should point to a GC block or a global address, otherwise associations will leak. Break on auto_zone_association_error() to debug.

我浏览了网页,但没有找到任何答案,所以......你是我最后的机会 :D

(我目前正在下载 MacOS Lion 以尝试升级是否可以解决我的问题……我们拭目以待。

非常感谢你的帮助 !

4

1 回答 1

0

我会使用可用的最新稳定版本的 Xcode。如果您使用的是 Snow Leopard,请使用 Xcode 4.0.2。如果您使用的是 Lion,请使用 Xcode 4.1。

Xcode 4.2 仍处于开发者预览版中。

于 2011-08-28T14:25:54.053 回答