Bug Issue: Can't compile iOS games with Xcode versions before 11.4


Pages: 1

Justin

  • Master Stencyler
  • *
September 02, 2020, 08:52:48 pm
When compiling an iOS game with Xcode versions prior to 11.4, you'll get an error like this.

Code: [Select]
[haxelib] Undefined symbols for architecture arm64:
[haxelib]   "___darwin_check_fd_set_overflow", referenced from:
[haxelib]       _Curl_socket_check in liblime.a(929c1deb_select.o)
[haxelib]       _Curl_poll in liblime.a(929c1deb_select.o)
[haxelib] ld: symbol(s) not found for architecture arm64
[haxelib] ** BUILD FAILED **

Notably, this cuts off macOS versions before Mojave from being able to compile for iOS, since you need Mojave to install Xcode 11.
« Last Edit: September 02, 2020, 08:53:38 pm by Justin »


Issue updated by Justin - September 02, 2020, 08:53:56 pm
  • Tags added: 4.0.4


Lamberts

  • Junior Stencyler
September 07, 2020, 12:41:48 am
I'm using Mojave and Xcode 11, but have had the same problem, started few days ago, after updating stencyl to 4.0.3.
« Last Edit: September 07, 2020, 12:42:28 am by Lamberts »


Justin

  • Master Stencyler
  • *
September 07, 2020, 02:30:38 am
Is it 11.4? If so, what about 11.4.1?

11.4.1 is known to work, but I expected that 11.4 would work as well. Any version of Xcode 11 prior to 11.4 is not expected to work until this bug is fixed.
« Last Edit: September 07, 2020, 02:32:12 am by Justin »


Lamberts

  • Junior Stencyler
September 07, 2020, 11:34:20 am
After upgrade to Catalina everything is ok!


Justin

  • Master Stencyler
  • *
September 08, 2020, 02:13:51 am
Hm. Maybe there are more moving parts here than I realized. Do you know what version of Xcode you were running before/after updating to Catalina? Again, there is a difference between, for example, 11.3 and 11.4. Just "Xcode 11" doesn't tell me enough, unfortunately.


Lamberts

  • Junior Stencyler
September 08, 2020, 04:24:32 am
I used Xcode 11.2 . Only way to upgrade to higher version was instalation of Catalina. My efforts to manually upgrade were unsuccessful.  Now I have Xcode 11,7
« Last Edit: September 08, 2020, 04:41:50 am by Lamberts »


Justin

  • Master Stencyler
  • *
September 08, 2020, 09:20:01 am
Ah, I see. So this bug cuts off everything before Catalina, not everything before Mojave. Thank you.


andyvene

  • Subscriber - Stencyl Studio
  • *
September 16, 2020, 05:23:45 am
Some updated information about Stencyl 4.0.3 for iOS compile.

Using Mac OS High Sierra, v10.13.6 , was working fine with Stencyl 4.0.2 (build 10468)and also build 10543, using  Xcode 10.1 and 10.2.1.

Now updated to Stencyl 4.0.3(10568) and also with build b10610 nothing works with High Sierra (Xcode v10.1, 10.2.1).

So i think the only solutions is to update to Catalina, as Xcode 11.4.1 works, as Justin says above.
Xcode 11.4.1 needs Catalina.


Updated info about minimun Xcode versions that developers must use to submit an iOS app using App Store Connect for distribution to the App Store:

Xcode 10.1 and later for iOS app in the building process.


https://help.apple.com/app-store-connect/#/devb1c185036

Starting April 2021, all iOS and iPadOS apps submitted to the App Store must be built with Xcode 12 and the iOS 14 SDK.
https://developer.apple.com/news/?id=itpt8dkc
« Last Edit: September 16, 2020, 06:30:03 am by andyvene »


Justin

  • Master Stencyler
  • *
September 28, 2020, 01:16:18 am
We do plan to keep supporting older versions of macOS/Xcode as long as they're supported by Apple.

So, the problem was that I had mistakenly rebuilt lime's native code with Xcode 11. This introduces some symbols into the binary which can't be resolved if you try linking with Xcode 10. I had to make some unrelated changes to lime while I was looking into this, so it took a while, but this is ready now.

I have not been able to test on a version of macOS other than Catalina; however, I've testing compiling games with Xcode 10, and I believe that's the key differentiator, not OS version. If you could test that this works on an older OS, I'd appreciate it a lot.

This is fixed in private build 10616.
  • Status changed from New to Need Info
  • Issue Assigned from (none) to Justin


Justin

  • Master Stencyler
  • *
September 28, 2020, 09:35:48 pm
I got confirmation from andyvene in a private message that things are working ok here again, so closing this issue. This fix will be available in public release 4.0.4.
  • Status changed from Need Info to Resolved


Pages: 1

Details

  • Reported
    September 02, 2020, 08:52:48 pm
  • Updated
    September 28, 2020, 09:35:48 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags