Background#
Before upgrading to Xcode 13.3, there were no issues with Debug and Archive. However, after upgrading to Xcode 13.3, Debug works fine but Archive throws an error. The error message is error: Abort trap: 6 (in target 'ZLPhotoBrowser' from project 'Pods')
. So, I raised an issue and it has been resolved now.
The solution is:
"You can work around this issue by replacing UI_USER_INTERFACE_IDIOM() with UIDevice.current.userInterfaceIdiom.
I am sharing this here in case anyone else encounters the same issue. You can search and see if it is also due to UI_USER_INTERFACE_IDIOM()
.