需要按照Flutter 1.20的插件调整插件方案
↳
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:14: warning: non-breaking space (U+00A0) used instead of regular space
let infoDictionary = Bundle.main.infoDictionary!
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:32: warning: non-breaking space (U+00A0) used instead of regular space
let infoDictionary = Bundle.main.infoDictionary!
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:14:14: warning: non-breaking space (U+00A0) used instead of regular space
let majorVersion = infoDictionary["CFBundleShortVersionString"]//主程序版本号
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:49: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
map["packageName"] = bundleIdentifier as! String
^
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:51: note: use 'as?' to perform a conditional downcast to 'String'
map["packageName"] = bundleIdentifier as! String
^
?
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:32: note: add parentheses around the cast to silence this warning
map["packageName"] = bundleIdentifier as! String
^
( )
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:45: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
map["versionName"] = majorVersion as! String
^
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:47: note: use 'as?' to perform a conditional downcast to 'String'
map["versionName"] = majorVersion as! String
^
?
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:32: note: add parentheses around the cast to silence this warning
map["versionName"] = majorVersion as! String
^
( )
需要按照Flutter 1.20的插件调整插件方案 ↳ /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:14: warning: non-breaking space (U+00A0) used instead of regular space let infoDictionary = Bundle.main.infoDictionary! /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:32: warning: non-breaking space (U+00A0) used instead of regular space let infoDictionary = Bundle.main.infoDictionary! /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:14:14: warning: non-breaking space (U+00A0) used instead of regular space let majorVersion = infoDictionary["CFBundleShortVersionString"]//主程序版本号 /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:49: warning: treating a forced downcast to 'String' as optional will never produce 'nil' map["packageName"] = bundleIdentifier as! String ^ /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:51: note: use 'as?' to perform a conditional downcast to 'String' map["packageName"] = bundleIdentifier as! String ^ ? /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:32: note: add parentheses around the cast to silence this warning map["packageName"] = bundleIdentifier as! String ^ ( ) /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:45: warning: treating a forced downcast to 'String' as optional will never produce 'nil' map["versionName"] = majorVersion as! String ^ /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:47: note: use 'as?' to perform a conditional downcast to 'String' map["versionName"] = majorVersion as! String ^ ? /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:32: note: add parentheses around the cast to silence this warning map["versionName"] = majorVersion as! String ^ ( )