Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start an iosApp #38

Open
3 tasks done
BadChoice opened this issue Oct 10, 2023 · 1 comment
Open
3 tasks done

Can't start an iosApp #38

BadChoice opened this issue Oct 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@BadChoice
Copy link

Bug Description

I just created a new project, added the SDL Dependency, created the main.swift file, and when launching the app I get this error

sdlenginetest/main.swift:5: Fatal error: SDL could not initialize! SDL_Error: Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?

I'm using the minimal example you provide

Information

  • Package version: 1.4.1
  • Platform version: mac/ios
  • Swift version: swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
    Target: x86_64-apple-macosx14.0

Checklist

  • If possible, I've reproduced the issue using the main/master branch of this package.
  • I've searched for existing issues under the issues tab.
  • The bug is reproducible

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a new XCode project (single app)
  2. Add the package dependency
  3. Copy the minimal example to main.swift file (create the new main file)
  4. comment out the appdelegate
  5. run the app

Expected behavior

To not crash

Actual behavior

Crash with the following error

sdlenginetest/main.swift:5: Fatal error: SDL could not initialize! SDL_Error: Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?

@BadChoice BadChoice added the bug Something isn't working label Oct 10, 2023
@johnboiles
Copy link

I'm getting the same thing!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants