After many experiments I was able to build a masDev
build which works fine and then I tried to build for mas
which I know cannot run it directly on my computer without signing by Apple but the right way is to use TestFlight which uses the same channel as the app store distribution. I can see and install my app in TestFlight but when I open it’s icon shows for a while in the dock and then it disappears.
To find the actual issue I tried to run the app from a Terminal and then I saw some logs:
[info] Application <my-app> launched.
[35659:0426/175510.483630:ERROR:process_singleton_posix.cc(1170)] Failed to bind() /var/folders/w_/hbw1r9d110q3xlxw5g9ct23h0000gn/T/my.app/S/SingletonSocket: Operation not permitted (1)
I searched for some solution, I found a similar issue on Apple Developer Forums: https://forums.developer.apple.com/forums/thread/712997
But it did not help that much.