Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Doesn't build for latest XCode (11.4)
#58
Good news everyone: Apple has confirmed this is a bug in XCode, and suggested a potential workaround:

Quote:Engineering has provided the following information regarding this issue:

The libOni.a library contains bitcode files, therefore we must do LTO in order to build this project.

Breaking into the process as it’s hung, it seems to be stuck on this function:
_ZN3Oni25CookedSkinConstraintBatch18EvaluateConstraintEPNS_22BatchedConstraintGroupINS_18SkinConstraintDataEEEiif

You may be able to work around this issue if you can add the following attribute to the function:
__attribute__((optnone))
void examplefunction() { return; }

This will prevent the link-time optimizer from trying to process the function and hopefully avoid the hang.

We are working to resolve this in a future release.

In other words, the culprit is indeed link-time optimization (LTO), which I tried to disable before without success. Since the library contains bitcode files (to be able to deploy to the store), LTO is mandatory. However the linker gets stuck trying to optimize a specific function. The workaround they propose is flagging that function with (optnone), to prevent the linker from attempting to optimize it and getting stuck.

They also mention they're working to fix the linker in an upcoming update. In the meantime, I will try their workaround and see if it actually works.
Reply


Messages In This Thread
RE: Doesn't build for latest XCode (11.4) - by josemendez - 08-05-2020, 08:44 AM