【问题标题】:Apps don't run on iPhone after upgrading to Xcode 4.2 and iOS5升级到 Xcode 4.2 和 iOS5 后,应用程序无法在 iPhone 上运行
【发布时间】:2011-12-14 10:35:15
【问题描述】:

自从升级到 Xcode 4.2 和 iOS 5 后,我无法再在我的 iPhone 上运行我的应用程序。他们仍然在模拟器中运行良好。 我正在使用带有 4.2 的 Snow Leopard,并认为这可能是问题,所以升级到 Lion,然后将 Xcode 升级到 4.2.1 Lion 版本。然而这并没有解决问题。 我已经通过许多线程试图找到类似的东西但不能。我还尝试了不同的构建设置、编译器、部署目标等。 我很确定这不是配置问题,因为应用程序加载到设备上,只是它们永远不会正确启动,如果应用程序有启动图像,这就是它锁定的地方。我也试过只运行默认的 Xcode 模板,但无济于事。 我尝试删除派生数据、清理项目、删除然后从项目中重新导入框架,但没有任何变化。

这些是我遇到的错误

warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols from "Foundation" (not yet mapped into memory).
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
warning: Unable to read symbols from "libSystem.B.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "CoreFoundation" (not yet mapped into memory).
warning: Unable to read symbols from "libobjc.A.dylib" (not yet mapped into memory).

然后我得到一堆这些,它们持续了 15 行

warning: No copy of <No file name> found locally, reading from memory on remote device.   This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.

然后我得到了一堆这些你可能会想到的框架,然后是一些

warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit (file not found).
warning: No copy of UIKit.framework/UIKit found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/Foundation.framework/Foundation (file not found).
warning: No copy of Foundation.framework/Foundation found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (file not found).
warning: No copy of CoreGraphics.framework/CoreGraphics found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/libSystem.B.dylib (file not found).
warning: No copy of libSystem.B.dylib found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (file not found).
warning: No copy of CoreFoundation.framework/CoreFoundation found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/libobjc.A.dylib (file not found).
warning: No copy of libobjc.A.dylib found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/PrivateFrameworks/IOSurface.framework/IOSurface (file not found).
warning: No copy of IOSurface.framework/IOSurface found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (file not found).
warning: No copy of IOKit.framework/Versions/A/IOKit found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/liblockdown.dylib (file not found).
warning: No copy of liblockdown.dylib found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag (file not found).
warning: No copy of MobileKeyBag.framework/MobileKeyBag found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/libicucore.A.dylib (file not found).
warning: No copy of libicucore.A.dylib found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreImage.framework/CoreImage (file not found).
warning: No copy of CoreImage.framework/CoreImage found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/Security.framework/Security (file not found).

所以我的猜测是(我可能是错的)看起来 Xcode 不知道框架在哪里,但只有在我的设备连接时才知道。我不知道如何解决这个问题,非常感谢任何帮助或想法 谢谢

【问题讨论】:

  • 我会检查目录/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0.1 (9A405)是否存在。
  • 谢谢我今晚去查,如果不是怎么办?
  • 那你安装有问题。在这种情况下,我会尝试重新安装 Xcode 和最新的 SDK。
  • 嘿 Dasdom 那个文件夹存在,它包含一个名为 Symbols 的文件夹,它应该包含更多吗? Symbols 里面还有两个文件夹“Developer”和“System”和“usr”。它是否应该包含实际文件。我已经重新安装了两次最新的 SDK,一次是给 Leopard,一次是给 Lion,但我会再试一次,我别无选择。
  • 嘿,谢谢你的帮助 Dasdom,虽然事实证明我需要完全卸载,而不是像我一直在做的那样重新安装,你建议

标签: iphone ios5 xcode4.2


【解决方案1】:

我遇到了同样的问题,重新安装 Xcode 并没有纠正它。最后,我关闭了 xcode 并将文件夹 developer/platforms/ipho eps.platform/device support/5.0.1 (9a334) 重命名为旧文件夹,然后重新连接设备。此文件夹已重建,一切都恢复正常。

【讨论】:

  • 嘿,我在开始卸载 XCode 后 2 分钟阅读了您的回答,因此无法确认它是否有效,但感谢您的帮助
【解决方案2】:

嘿,我最终在终端中完全卸载,然后重新安装 Xcode。事实证明,仅在先前版本之上安装并不能纠正错误。它需要先完全卸载。现在一切正常

【讨论】:

  • 只需要等 8 小时哟
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-01-16
  • 1970-01-01
  • 2012-06-22
  • 1970-01-01
  • 1970-01-01
  • 2015-07-15
  • 1970-01-01
相关资源
最近更新 更多