skip to Main Content

I am trying to build a SDL (libsdl.org) iOS app I havent built for a few years and I am having some problem.
Have the following settings:
enter image description here
The error I get is:

ld: warning: ignoring file /Users/username/Library/Developer/Xcode/DerivedData/APPNAME-acpmwonxbccjqtaxaenqojducdea/Build/Products/Debug-iphonesimulator/libAPPNAME2.a, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64

ld: entry point (_main) undefined. for architecture arm64

I am not sure if the first warning is related to the error.
I have a target for an archive with SDL source files.

If I add arm64 to "Excluded Architectures" (based on other stackoverflow answers) it builds but I get a "Executable Not Found" error message.

Any ideas?

2

Answers


  1. Chosen as BEST ANSWER

    Removing: "VALID_ARCHS[sdk=*]" = "arm64 armv7 armv7s"; from project.pbxproj solved the problem


  2. I had a same problem. In my case there was no @main annotation in class AppDelegate.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search