【发布时间】:2015-07-11 09:49:05
【问题描述】:
问题:
- Xcode 6.3 没有 8.0 模拟器;
- 我使用的是 swift 1.2,所以无法在早期版本的 Xcode 下编译项目;
- 我在 iOS 8.0 设备上遇到了很多 sprite kit 崩溃(崩溃报告不是很有帮助,它们与 sprite kit 本身有关);
- 它在 iOS 7.1 和 8.1+ 上运行良好
有没有办法在 Xcode 6.3 的 8.0 或 8.0.2 模拟器上安装构建?
崩溃报告示例:
Thread : Crashed: com.apple.main-thread
0 SpriteKit 0x0000000188ee72c8 SKCSprite::update(double) + 404
1 SpriteKit 0x0000000188ee72d4 SKCSprite::update(double) + 416
2 SpriteKit 0x0000000188ee72d4 SKCSprite::update(double) + 416
3 SpriteKit 0x0000000188e9fb10 -[SKScene _update:] + 140
4 SpriteKit 0x0000000188eba110 -[SKView(Private) _update:] + 568
5 SpriteKit 0x0000000188eb7728 -[SKView renderCallback:] + 764
6 SpriteKit 0x0000000188eb4794 __29-[SKView setUpRenderCallback]_block_invoke + 60
7 SpriteKit 0x0000000188ee1724 -[SKDisplayLink _callbackForNextFrame:] + 272
8 QuartzCore 0x00000001889e964c CA::Display::DisplayLinkItem::dispatch() + 32
9 QuartzCore 0x00000001889e94e4 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 324
10 IOKit 0x0000000185a05d84 IODispatchCalloutFromCFMessage + 376
11 CoreFoundation 0x0000000184864f34 __CFMachPortPerform + 180
12 CoreFoundation 0x0000000184879b38 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
13 CoreFoundation 0x0000000184879a98 __CFRunLoopDoSource1 + 436
14 CoreFoundation 0x0000000184877a18 __CFRunLoopRun + 1640
15 CoreFoundation 0x00000001847a5664 CFRunLoopRunSpecific + 396
16 GraphicsServices 0x000000018d8e75a4 GSEventRunModal + 168
17 UIKit 0x00000001890aa4f8 UIApplicationMain + 1488
18 Hedgehog 0x000000010012fd3c main (AppDelegate.swift:14)
19 libdyld.dylib 0x0000000195516a08 start + 4
【问题讨论】:
-
尝试设置“所有异常”断点。这应该会告诉您错误发生在代码中的哪个位置。
-
此错误只能在 iOS 8.0 和 iOS 8.0.2 上重现,我没有具有这些操作系统版本的真实设备,无法从 xCode 6.3 安装在这些模拟器上...
-
哪些真实用户会安装 8.0 而不会更新到 8.1 或 8.2 或 8.3?你不应该对这样的人负责。更新是 Apple 修复 Cocoa 错误的方式;如果这些错误在以后的更新中得到修复,那么解决这些错误不是您的工作。
-
@matt 这是一个相当狭隘的观点。有许多用户没有升级,而是保留了他们使用手机时所拥有的东西。有了闪亮的新 iPhone 6 设备,我们将在一段时间内拥有大量 8.0 用户。
-
@LeoNatan 你是说如果我今天购买 iPhone 6,它会附带 8.0?这太疯狂了。 - 让我发疯的是 Apple 在更新中引入 错误。 iOS 8.3 有一些在 iOS 8.1 和 8.2 中修复的 Cocoa 错误,现在又回来了。你不能指望任何事情......
标签: ios swift xcode6 sprite-kit