title: Xcode 13 failing building with "entry point (_main) undefined. for architecture arm64"
body: <p>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:
  <a href="https://i.stack.imgur.com/8RPOJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8RPOJ.png" alt="enter image description here" /></a>
  The error I get is:</p>
  <p><strong>ld:</strong> 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</p>
  <p><strong>ld:</strong> entry point (_main) undefined. for architecture arm64</p>
  <p>I am not sure if the first warning is related to the error.
  I have a target for an archive with SDL source files.</p>
  <p>If I add arm64 to &quot;Excluded Architectures&quot; (based on other stackoverflow answers) it builds but I get a &quot;Executable Not Found&quot; error message.</p>
  <p>Any ideas?</p>