简体   繁体   English

XCode SDL应用程序在主循环后崩溃

[英]XCode SDL app crashes after main loop

I compiled my SDL app using XCode, and when I "Build & Run", it works fine. 我使用XCode编译了我的SDL应用,当我“构建并运行”时,它可以正常工作。 But when I click on the .app file outside of XCode, the application crashes after I click the "Start" button. 但是,当我单击XCode外部的.app文件时,单击“开始”按钮后,应用程序崩溃。

I've included the images, sounds, and font in the same folder as my .app, but is there anything else that I need to put in that folder? 我已经将图像,声音和字体包含在与.app相同的文件夹中,但是我还需要在该文件夹中放入其他内容吗? I am using SDL_image, SDL_ttf, and SDL_mixer. 我正在使用SDL_image,SDL_ttf和SDL_mixer。

Here's a tutorial, with (I believe) the answer to your question: 这是一个教程,带有(我相信)您问题的答案:

http://www.noquarterarcade.com/xcode-sdl-development-setup http://www.noquarterarcade.com/xcode-sdl-development-setup

(edit) you may also find this link helpful (编辑)您可能还会发现此链接有用

http://blog.onesadcookie.com/2007/12/finding-your-apps-files.html http://blog.onesadcookie.com/2007/12/finding-your-apps-files.html

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

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