iOS 5.0 Simulator总是退出:“模拟应用程序退出”

时间:2011-11-08 10:23:19

标签: ios5 osx-lion ios-simulator

我正在使用Mac App Store中的Xcode 4.2 final Build 4D199。当我想在iOS 5模拟器中启动任何应用程序时,它会退出,告诉我我可以退出,切换SDK或重新启动。我另外下载了4.3 SDK / Simulator,它在那里工作。我在测试期间使用了iOS 5的构建版,但最终使用/ Developer / Library中的uninstall-devtools删除了所有其他开发人员安装,但它没有解决问题。

控制台说:


Process:         SpringBoard [4764]
Path:            /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier:      SpringBoard
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  iPhone Simulator [4748]

Date/Time:       2011-10-31 14:45:25.541 +0100
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Crashed Thread:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: 0x000000000000000a, 0x000000000bf33000

VM Regions Near 0xbf33000:
__LINKEDIT             000000000bf29000-000000000bf33000 [   40K] r--/rwx SM=COW  /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
--> mapped file            000000000bf33000-000000000bf42000 [   60K] r--/r-x SM=PRV  /Network/*/*.cpbitmap
__TEXT                 000000000bf42000-000000000bf8f000 [  308K] r-x/rwx SM=COW  /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib

Application Specific Information:
iPhone Simulator 272, iPhone OS 5.0 (iPhone/9A334)

Thread 6 Crashed:
0   QuartzCore                    0x01ce06b5 void CA::OGL::SW::image_sampler<CA::OGL::SW::Format::ARGB8_Host, false, false, false, false>(CA::OGL::SW::SamplerData const*, unsigned int, unsigned int*) + 64
1   QuartzCore                    0x01cda0fa CA::OGL::SW::sample_texture(CA::OGL::SW::Texture const*, int, unsigned int, CA::OGL::SW::Poly::Vertex const*, CA::OGL::SW::Poly::Vertex const*, CA::OGL::SW::Poly::Vertex const*, CA::OGL::SW::Poly::Vertex const*, unsigned char, unsigned int, unsigned int*) + 686
2   QuartzCore                    0x01cdbc4b CA::OGL::SW::scanline(CA::OGL::SW::ScanState const*, int, int, int, CA::OGL::SW::Poly::Vertex*, CA::OGL::SW::Poly::Vertex const*, CA::OGL::SW::Poly::Vertex*, CA::OGL::SW::Poly::Vertex const*, unsigned int) + 1172
3   QuartzCore                    0x01cdd3bd CA::OGL::SW::scan_convert_thread(void*, void*) + 3009
4   QuartzCore                    0x01cff92f CA::DispatchGroup::dispatch(bool) + 191
5   QuartzCore                    0x01cff969 CA::DispatchGroup::callback_1(void*) + 25
6   libdispatch.dylib             0x047944e6 _dispatch_worker_thread2 + 284
7   libsystem_c.dylib             0x9930db24 _pthread_wqthread + 346
8   libsystem_c.dylib             0x9930f6fe start_wqthread + 30

3 个答案:

答案 0 :(得分:0)

我在4.3和5.0的模拟器上遇到了类似的问题。我终于能够通过在UIView的子类的[self setNeedsDisplay]选择器中删除对setFrame的不必要的调用来压缩它,该子类被设置为返回CATiledLayer以响应其类方法{ {1}}。

答案 1 :(得分:0)

这是CATiledLayer中的一个问题,其中调用静态方法(Class)的layerClass。特别是在初始化函数中,您可以在其中设置tileSize的大小。确保它不是0;

答案 2 :(得分:0)

转到Xcode - &gt;偏好 - &gt;下载 确保您在项目中设置的目标SDK已安装在Xcode中。