简体   繁体   English

升级XCode时应用崩溃

[英]App crashing when upgraded xcode

I have this problem of my app crashing (only when press a certain UIButton) after i upgraded my xcode to the latest 3.2.5 and iPhone simulator 4.2. 我将我的xcode升级到最新的3.2.5和iPhone模拟器4.2后,出现了我的应用程序崩溃的问题(仅当按下某个UIButton时)。 It works fine in my friend laptop, who hasn't upgraded yet. 在我尚未升级的朋友笔记本电脑上,它可以正常工作。 I googled for answers, but most of them faces problem only crashing in simulator but not device. 我用谷歌搜索了答案,但大多数都只在模拟器中崩溃,而在设备中崩溃。 Mine crashes for both. 我的都崩溃了。

Anyone has any idea about this issue? 有人对这个问题有任何想法吗? I cant seem to find any solution. 我似乎找不到任何解决方案。

UPDATE: Got this error only when run application on device. 更新:仅当在设备上运行应用程序时才得到此错误。

warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148a)/Symbols/usr/lib/info/dns.so (file not found). 警告:无法读取/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1(8C148a)/Symbols/usr/lib/info/dns.so的符号(找不到文件)。 Program received signal: “EXC_BAD_ACCESS”. 程序接收信号:“ EXC_BAD_ACCESS”。 warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148a)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found). 警告:无法读取/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1(8C148a)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib的符号(找不到文件)。 (gdb) (gdb)

Delete the app from your device, run a "Clean" in Xcode, and then try again. 从您的设备中删除该应用,在Xcode中运行“清理”,然后重试。 Sometimes things just get messed up. 有时事情变得一团糟。

Double-check your project settings; 仔细检查您的项目设置; more specifically, those that set directories. 更具体地说,是那些设置目录的目录。 Also, make sure the appropriate files are in their respective build phases. 另外,请确保相应的文件处于其各自的构建阶段。

Solved this! 解决了这个! Due to some duplicate codings. 由于一些重复的编码。 Thanks everyone for your help! 谢谢大家的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM