【问题标题】:why iOS7 simulator doesn't start or start as it wants...?为什么 iOS7 模拟器无法启动或按预期启动...?
【发布时间】:2013-11-09 22:43:54
【问题描述】:

在启动 iOS 7 模拟器时遇到许多问题后(尝试了许多已发布的建议...包括重新安装 XCode5 .. 我现在正在尝试运行 Apple HelloWorld 示例 .. 这应该是测试参考..

第一次构建..它在模拟器上运行 但是一旦在模拟器控制台中可以看到很多错误,包括格式错误的 bunlde one...

https://gist.github.com/erwin/7230844的模拟器控制台日志中提取

Oct 30 08:26:37 macMini profiled[1456] <Notice>: (Note ) MC: Waiting for DataMigrator...
Oct 30 08:26:40 --- last message repeated 3 times ---
Oct 30 08:26:40 macMini SpringBoard[1460] <Error>: objc[1460]: Class AXEmojiUtilities is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/lib/libAXSpeechManager.dylib. One of the two will be used. Which one is undefined.
Oct 30 08:26:40 macMini com.apple.iphonesimulator.launchd.7e32645e[1451] (com.apple.xpc.launchd.domain.pid.SpringBoard.1460) <Error>: Failed to bootstrap path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/PrivateFrameworks/CloudServices.framework/XPCServices/com.apple.lakitu.xpc
    error: 107: Malformed bundle
Oct 30 08:26:41 macMini profiled[1456] <Notice>: (Note ) MC: Waiting for DataMigrator...

但至少它正在运行......

显然这个样本没有更新......所以我收到警告

Oct 30 08:51:26 macMini HelloWorld[1792] <Warning>: Application windows are expected to have a root view controller at the end of application launch

我因此修改了代码,添加了根视图控制器

[window addSubview:controllersView];
[window setRootViewController:myViewController];
[window makeKeyAndVisible];

我清理了 Xcode 产品,我清除并重置了模拟器,然后我关闭了它.. 新建并运行...模拟器打开,但不运行 HelloWorld 应用...

我在https://gist.github.com/erwin/7230768 的模拟器控制台日志中没有看到任何故障 但什么也没发生,模拟器似乎迷失在空中...... 并且没有明确解释如何让它从 Apple 正确运行......

【问题讨论】:

    标签: ios7 ios-simulator xcode5


    【解决方案1】:

    您可能对某些核心功能进行了不完整的更新。由于 Apple 将一切都如此封闭,因此很难做出任何真正的诊断。如果你还没有,我会把它交给苹果的“天才”(他们的术语,不是讽刺),他们可能会建议擦掉它并重新开始。

    【讨论】:

      【解决方案2】:

      也可能是安装不完整或损坏。我会擦除并重新安装,然后尝试编译并运行示例而不进行任何更改。 (我希望样本(或第一个样本)至少应该在模​​拟器上编译并运行良好。)

      【讨论】:

      • 就是这样...安装损坏。重新安装 XCode5 和模拟器(SDK 6.1 和 7)后现在运行良好...
      猜你喜欢
      • 2017-07-31
      • 2011-08-23
      • 2017-02-16
      • 2020-06-08
      相关资源
      最近更新 更多