Unity Issue Tracker - Building crashes and “No known class method for selector 'ringtoneSoundNamed:'“ error appears when building a project with the Mobile Notifications package using specific Xcode versions
Closed
UUM-23149
Building crashes and “No known class method for selector 'ringtoneSoundNamed:'“ error appears when building a project with the Mobile Notifications package using specific Xcode versions
Unity: iOS
As Designed
2023.1.X
2022.2.X
2021.3.X
2020.3.X
New versions of Mobile Notifications give access to newest iOS features. That requires newer iOS SDK, which are provided by newer versions of Xcode. As a result, older versions of Xcode are unable to compile the code due to missing APIs.
How to reproduce:
1. Build the attached “MobileNotificationsTest.zip” project for iOS
2. Open the Xcode project
3. Go to Menu > Product > Build
4. Observe the result
Expected result: App is built
Actual result: Building crashes and errors “No known class method for selector 'ringtoneSoundNamed:'” and “Property 'defaultRingtoneSound' not found on object of type 'UNNotificationSound'“ appear