'shared' is unavailable in application extensions for iOS: Xcode 13 beta 3 Using UIApplication.shared in Swift Package produce compile time error: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. Error shows after update to Xcode 13 beta 3. Developer Tools & Services Xcode Xcode 3 0 7.7k Jul ’21