Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

ios build error SwiftPhoneNumberPlugin.swift:53:11: warning: 'catch' block is unreachable #25

Closed
Xgamefactory opened this issue May 2, 2020 · 3 comments · Fixed by #27
Assignees

Comments

@Xgamefactory
Copy link

 ** BUILD FAILED **
Xcode's output:
↳
    /Users/******/.pub-cache/hosted/pub.dartlang.org/phone_number-0.6.2+1/ios/Classes/SwiftPhoneNumberPlugin.swift:53:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
            } catch {
              ^
@nashfive
Copy link
Contributor

nashfive commented May 4, 2020

Hi @Xgamefactory, and thanks for the report.
Can you post your flutter doctor output as well ?

@awhitford
Copy link

I noticed two warnings:

    /Users/anthony/flutter/.pub-cache/hosted/pub.dartlang.org/phone_number-0.6.2+2/ios/Classes/SwiftPhoneNumberPlugin.swift:53:11: warning:
    'catch' block is unreachable because no errors are thrown in 'do' block
            } catch {
              ^
    /Users/anthony/flutter/.pub-cache/hosted/pub.dartlang.org/phone_number-0.6.2+2/ios/Classes/SwiftPhoneNumberPlugin.swift:87:21: warning:
    immutable value 'error' was never used; consider replacing with '_' or removing it
            } catch let error {
                        ^~~~~

@CripyIce
Copy link

This is also happens to me...
Flutter doctor:

[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-IL)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.6)
[!] VS Code (version 1.45.1)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (2 available)

@nashfive nashfive self-assigned this May 21, 2020
@nashfive nashfive pinned this issue May 21, 2020
@nashfive nashfive linked a pull request May 21, 2020 that will close this issue
@nashfive nashfive unpinned this issue Jul 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants