Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS ** BUILD FAILED ** #13

Closed
jianzi0307 opened this issue Aug 22, 2019 · 0 comments
Closed

IOS ** BUILD FAILED ** #13

jianzi0307 opened this issue Aug 22, 2019 · 0 comments

Comments

@jianzi0307
Copy link

flutter doctor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants