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

Swift Compiler Error (Xcode): Stored properties cannot be marked potentially unavailable with '@available' #2128

Open
Fayis2021 opened this issue May 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Fayis2021
Copy link

Fayis2021 commented May 7, 2024

Xcode build done.
Failed to build iOS app
Swift Compiler Error (Xcode): Stored properties cannot be marked potentially unavailable with '@available'
/Users/mgggf/my-app/ios/Pods/LocationPicker/LocationPicker/LocationPickerViewController.swift:59:5
LocationPickerViewController.swift:59

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

am using external dependency - https://github.com/almassapargali/LocationPicker/tree/master

flutter doctor -v

[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4 23E214 darwin-arm64, locale en-IN)
• Flutter version 3.19.5 on channel stable at /Users/muhammed/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (6 weeks ago), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/muhammed/Library/Android/sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.13.0

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
• VS Code at /Users/muhammed/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.88.0

[✓] VS Code (version 1.89.0)
• VS Code at /Users/muhammed/Downloads/Visual Studio Code 2.app/Contents
• Flutter extension version 3.88.0

@Fayis2021 Fayis2021 added the bug Something isn't working label May 7, 2024
Copy link

github-actions bot commented May 7, 2024

👋 @Fayis2021

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant