.NET MAUI stops at "--enable-serialization-discovery ~" when executing a release build for iOS.
I am building net6.0-android and net6.0-ios apps with .NET MAUI.
The development environment is Visual Studio(17.6.4) on Windows.
Mac is paired and iPad is connected.
Mac is 13.4.1 and Xcode is 14.3.1.
In the release build for iOS, after outputting the "--enable-serialization-discovery ~" log, nothing progresses even after an hour.
Please let me know if anyone else has had a similar problem and knows how to solve it.
I am trying to gather information because it is not efficient, although after several tries I sometimes succeed.
Also, even if it succeeds, it sometimes takes more than 20 minutes, so if you know how to shorten the time, please let us know as well.
(This is an automatic translation, so sorry if it doesn't make sense)
What we tried to solve:
- After closing Visual Studio on Windows, delete /Users/(user)/Library/Caches/Xamarin/XMA on Mac and start Visual Studio on Windows.
- Delete the obj and bin of the app project.
- Restart Windows and Mac.
PS:
I checked the log report in the Mac console and found a "System.Net.Sockets.SocketException" in the Broker log.
Why?
Is it due to the output of "xxxx.Broker.xxx.stderr.log" (no content) in the Broker's log?
Is AOT compilation taking a long time on a paired Mac? I can't tell if I'm making progress or not without being able to check progress.
Client 'Build16460' status changed to Disconnected. Repeatedly deleting XMA and mtbs, restarting the Mac, and restarting Visual Studio on Win, it succeeded even. (1 success out of 5 times)