PiratePig can't compile with XCode 11.3

Hi

I’m trying to build the PiratePig sample with Catalina(10.15.2) and xcode(11.3) testing on emulator and using openfl-8,9,5 and lime-7,6,3 . Running the following command:

openfl update ios -clean -xcode

Here is the project : https://drive.google.com/file/d/1gKypkjN6tM7Y5H-DjRoNnMNLV7d8yx3n/view

I get the following error

2020-01-04 20:34:57.276623+0200 PiratePig[14516:405131] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000cd2da0> F8BB1C28-BAE8-11D6-9C31-00039315CD46**
2020-01-04 20:34:57.585709+0200 PiratePig[14516:398100] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x7f91490171a0>.
2020-01-04 20:34:57.585979+0200 PiratePig[14516:398100] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x7f91490171a0>.
2020-01-04 20:34:57.586116+0200 PiratePig[14516:398100] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x7f91490171a0>.
2020-01-04 20:34:57.586254+0200 PiratePig[14516:398100] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x7f91490171a0>.

Called from piratepig.PiratePigGame.newGame (piratepig/PiratePigGame.hx line 437)
Called from piratepig.PiratePigGame.new (piratepig/PiratePigGame.hx line 70)
Called from piratepig.PiratePig.initialize (piratepig/PiratePig.hx line 50)
Called from piratepig.PiratePig.new (piratepig/PiratePig.hx line 26)
Called from DocumentClass.new (ApplicationMain.hx line 286)
Null Object Reference
libc++abi.dylib: terminating with uncaught exception of type Dynamic
(lldb)

It seem that all assets are null

Assets.getBitmapData returns null
Assets.getSound also returns null

At example this is what return the following code ( test on Mac / iOS )

trace("exists:" + Assets.exists("assets/openfl.png"));
trace("get:" + Assets.getBitmapData ("assets/openfl.png"));

…/…/…/…/Source/Main.hx:19: exists:true
…/…/…/…/Source/Main.hx:20: get:null

Thanks for the heads up!

We haven’t tested against Catalina yet (due to no 32-bit support for other dev tools we use) but I’ll try and increase its priority

This fix ( replacing
rootPath = (defaultRootPath != "" ? defaultRootPath + "/" : "") + Path.directory(path);
with
rootPath = Path.directory(path);
)
from https://github.com/haxelime/lime/issues/1350 is working solution.

Maybe similiar to https://github.com/haxelime/lime/issues/1346 and https://github.com/haxelime/lime/issues/1347