You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.9.3-pre.56, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)
• No issues found!
flutter run
Launching lib/main_test.dart on iPhone 5s in debug mode...
Running pod install... 7.0s
Running Xcode build...
Xcode build done. 18.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:58:121: error: 'UIApplicationWillEnterForeground' has been renamed
to 'UIApplication.willEnterForegroundNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterForeground), name: NSNotification.Name.UIApplicationWillEnterForeground, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willEnterForegroundNotification
UIKit.NSNotification.Name:7:23: note: 'UIApplicationWillEnterForeground' was obsoleted in Swift 4.2
public static let UIApplicationWillEnterForeground: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:59:121: error: 'UIApplicationWillResignActive' has been renamed to
'UIApplication.willResignActiveNotification'
NotificationCenter.default.addObserver(self, selector: #selector(appEnterBackground), name: NSNotification.Name.UIApplicationWillResignActive, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.willResignActiveNotification
UIKit.NSNotification.Name:13:23: note: 'UIApplicationWillResignActive' was obsoleted in Swift 4.2
public static let UIApplicationWillResignActive: NSNotification.Name
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/CrossView.swift:94:40: error: 'kCAFillRuleEvenOdd' has been renamed to
'CAShapeLayerFillRule.evenOdd'
backgroundMaskLayer.fillRule = kCAFillRuleEvenOdd
^~~~~~~~~~~~~~~~~~
CAShapeLayerFillRule.evenOdd
QuartzCore.kCAFillRuleEvenOdd:3:12: note: 'kCAFillRuleEvenOdd' was obsoleted in Swift 3
public let kCAFillRuleEvenOdd: CAShapeLayerFillRule
^
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
/Users/jianzi0307/Documents/development/sdks/flutter/.pub-cache/hosted/pub.flutter-io.cn/majascan-0.3.2/ios/Classes/MAJAScannerController.swift:329:58: error: 'UIApplicationOpenSettingsURLString' has
been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.openURL(URL(string: UIApplicationOpenSettingsURLString)!)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
Could not build the application for the simulator.
Error launching application on iPhone 5s.
The text was updated successfully, but these errors were encountered:
flutter doctor
flutter run
The text was updated successfully, but these errors were encountered: