mac osx 数据库访问/崩溃
我有一个应用程序,当我在 xcode 上运行时,它会与数据库连接并完美检索所需的值。
但是当我在 Debug 文件夹中运行实际应用程序时,它不仅不访问数据库,而且也没有进入我的代码中的任何函数。
为什么应用程序会显示这种类型的行为?我以前从未发生过这种情况。我有一份旧的代码副本,可以正常工作。我已经明确了目标并构建了大约 10 次,但仍然在 xcode 上完美运行,但该应用程序单独运行不太正常。
提前感谢您的帮助。
我没有想法,也没有方向,因为从编程的角度来看,代码完成了它的工作。
i have an app that when i run on xcode connects with the database and retrieves the required values PERFECTLY.
But when i run the actual application in the Debug folder, it not only does not access the database , it also does not go into any of the functions in my code.
Why can an application show this type of behaviour? It never happened before to me. I have an old copy of the code which works fine. I have clear the targets and built it like 10 times but still runs perfectly on xcode but the app individually isnt quite working..
Thanks in advance for any help .
I am out of ideas and i have no direction to go to as from a programming perspective the code does its work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
内存管理问题...一定要记住[数据库释放]而不是自动释放,它在 xcode 上运行良好,但在 mac os 中会使应用程序崩溃
memory management issues... be sure to remember [database release] instead of autorelease which works fine on the xcode but crashes the app in mac os