我正在开发一个 iPhone 应用程序,但我遇到了一些编译器问题。这是低调:
- 我正在使用 Xcode 3.2.3 进行编译,目标是 iOS 4.0:我的设备是运行 iOS 4.0 的第二代 iPod touch。
- 使用 GCC 4.2 编译:适用于模拟器和设备
- 使用 LLVM 编译器 1.5 进行编译:适用于模拟器,但不适用于设备。
- 使用 LLVM GCC 4.2 编译:与 LLVM 编译器 1.5 相同的问题。
当它失败时,应用程序甚至永远不会完成加载。这是日志的样子:
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue
Program received signal: “EXC_BAD_ACCESS”.
warning: check_safe_call: could not restore current frame
warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
我不知道这是怎么回事。我真的很想更新我的代码以使用 WWDC 上宣布的最新功能(隐式@synthesize
、在类别中添加实例变量的能力等),但 Clang 是必要的。