With @capacitor/app 8.1.1 on Xcode 27.0 (Swift 6.4), ios/Sources/AppPlugin/AppPlugin.swift produces:
Expression implicitly coerced from 'String?' to 'Any'
at getAppLanguage:
call.resolve([
"value": Bundle.main.preferredLocalizations.first
])
preferredLocalizations.first is String?. Unwrapping it (e.g. ?? "en", or as Any if nil is intended) would silence the warning without changing behavior. Happy to send a PR.
With
@capacitor/app8.1.1 on Xcode 27.0 (Swift 6.4),ios/Sources/AppPlugin/AppPlugin.swiftproduces:at
getAppLanguage:preferredLocalizations.firstisString?. Unwrapping it (e.g.?? "en", oras Anyif nil is intended) would silence the warning without changing behavior. Happy to send a PR.