When attempting to Publish a library, I am getting the following error logs from Studio:
18:23:25.5837 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [42] The assembly compilation returned the following errors:
* Failed to emit module 'lib_name'.
18:23:25.5843 => [ERROR] [UiPath.Studio.exe] [42] The assembly compilation returned the following errors:
* Failed to emit module 'lib_name'.
During troubleshooting I found that if I remove the “For Each Ui Element” activity(s) being used, then Publish would work again.
In case it helps anyone, I replaced “For Each Ui Element” with “Find Children” and a “For Each”. A little bit more manual setup, but functionally the same.