-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot build in iOS #103
Comments
Did you specify SWIFT_VERSION to 4.0, right? However, I think I need to update my code to Swift 4.2 |
Ugh. I did try 4.0 but I must have been experiencing error message fatigue. Sorry about that. After trying that version again and looking more closely at the errors I see it was another plugin causing problems there. This plugin appears to be building fine now after resolving that other plugin's issues. However now while using it I am running into another issue which has already been reported: https://github.com/pichillilorenzo/flutter_inappbrowser/issues/78#issue-430487861 This issue can be closed. Thanks! |
@rrarey02 Hi man, how did you solve this at last, which plugin you have been resolved to fix this issue? I'm facing this issue too. |
@AlexVincent525 - I am still using flutter_inappbrowser. The SWIFT_VERSION issue was a problem with the url_launcher plugin, if I recall correctly. So I upgraded the url_launcher plugin and then my app would build. At the time there was still an iOS bug in flutter_inappbrowser that would cause the app to crash, but that was fixed in v1.2.1. Everything is working for me now. |
@rrarey02 I found another solution for this issue, and i'm using flutter_inappbrowser too with v1.2.1, my conflict was with multi_image_picker, which is they are using different version of swift, makes thoes APIs conflicted, so I specified swift version for each of them, and thing works fine now. |
Hi Alex, |
@qeehong Hi, I don't have macOS environment now, so I can't provide more information about how I done this, but what I can remember is it's located in something related to pod configuration itself. |
@AlexVincent525 Hi, I can specify Swift version only for flutter_inappbrowser along with this way. https://stackoverflow.com/questions/40501440/how-to-set-the-legacy-swift-version-for-each-pod-in-podfile-xcode-9-0-swift-3-2 In the Podfile,
|
@hrsma2i Thanks for providing a better solution 😄 , and this repo hasn't been maintain for a while, I've just switch to other package. |
@AlexVincent525 Thanks for your advice! I'm finding in-app browser packages for Flutter and tried |
@hrsma2i For now those packages both displayed keyboard normally. You can upgrade your flutter version to latest stable and try again. The |
@AlexVincent525 Thank you. Maybe But I'll use |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
I am using this plugin in Android and it works great, but I cannot get my app to build in iOS. I receive a lot of errors.
I've created my Flutter project with the Swift dependencies, updated my Podfile to use frameworks, specify the SWIFT_VERSION, and done everything else I can think of. Errors persist.
Any help is greatly appreciated!
Flutter doctor:
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-US)
• Flutter version 1.5.4-hotfix.2 at /flutter
• Framework revision 7a4c33425d (4 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/r/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 35.3.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] Connected device (1 available)
• iPhone Xʀ • 9A4E48A2-2726-481D-A07C-7C7235E4754C • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)
• No issues found!
flutter run output:
/Users/r/.pub-cache/hosted/pub.dartlang.org/flutter_inappbrowser-1.2.0/ios/Classes/FlutterWebViewController.swift:34:17: warning: result of call to 'parse(options:)' is unused
options.parse(options: initialOptions)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/r/.pub-cache/hosted/pub.dartlang.org/flutter_inappbrowser-1.2.0/ios/Classes/FlutterWebViewController.swift:50:46: warning: conditional downcast from 'String?' to 'String' does nothing
let data = (initialData!["data"] as? String)!
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
The text was updated successfully, but these errors were encountered: