升级到Xcode 4.2和iOS5后,应用程序无法在iPhone上运行

时间:2011-12-14 10:35:16

标签: iphone ios5 xcode4.2

自升级到Xcode 4.2和iOS 5后,我无法在iPhone上运行我的应用程序。他们仍然在模拟器中运行良好。 我正在使用Snow Leopard 4.2并认为这可能是问题,因此升级到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不知道框架在哪里,但只有当我的设备连接时。我不知道如何解决这个问题,非常感谢任何帮助或想法 感谢

2 个答案:

答案 0 :(得分:3)

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

答案 1 :(得分:1)

嘿我最终在终端中进行了完全卸载,然后重新安装了Xcode。事实证明,只安装在以前版本的顶部不能纠正错误。它需要先完全卸载。现在一切正常,