After adding SDWebImage dependency in the watchOS project, the app can normally archive and upload to AppStoreConnect in Xcode, but the following error message will be displayed on the AppStoreConnect web page. The relevant errors will disappear after manually branching the SDWebImage code and deleting the UIScreen and UITraitCollection related codes.
90338: Non-public API usage. The app contains or inherits from non-public classes in Watch/<YOUR_TARGET_NAME>.app/<YOUR_TARGET_NAME>: UIScreen
The app contains or inherits from non-public classes in Watch/<YOUR_TARGET_NAME>.app/<YOUR_TARGET_NAME>: UITraitCollection
After adding SDWebImage dependency in the watchOS project, the app can normally archive and upload to AppStoreConnect in Xcode, but the following error message will be displayed on the AppStoreConnect web page. The relevant errors will disappear after manually branching the SDWebImage code and deleting the UIScreen and UITraitCollection related codes.