-
-
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
iOS fails with SWIFT_VERSION build setting must be set even after running flutter create -i swift #15
Comments
Hi! I have here: Flutter 0.11.3 and XCode 10.1 (10B61) Just have tried to create new project with -i swift and run code from InAppBrowser example: https://github.com/pichillilorenzo/flutter_inappbrowser#inappbrowser-class And it's compiling! But fails at run browser - just killing app. Then I'v removed all extra code from example:
Now it's running. And for Android too. But my main project crying about tons of errors... Looks like I need recreate it from zero. |
@ChiefRed interesting - I just get the swift version error unfortunately when adding to existing project - no other errors. Any ideas if there is a swift version file somewhere that I need to add/update? |
@alsocalledchris , already have tried this. But without success. |
So, running a brand-new fresh app from scratch using the create -i swift works and compiles fine for iOS - so odd how trying to do that to an existing app fails. However I'm seeing the same crash as you @ChiefRed when trying to view a website in inAppBrowser on iOS. @pichillilorenzo any ideas - at the moment all webview flutter plugins I've tried seem to crash with the latest flutter SDK so I don't think this is an isolated problem unfortunately. |
|
@pichillilorenzo, I have recreated my main project. Now it's working. |
Try to edit Pod file. More clear at here
|
Me too, my xcode version is also 10.1 |
Same problem |
1 similar comment
Same problem |
@ChenArno @Winner28 @Sagi363 did you try the solution of @chuongtrh?
|
It worked finally, Thank you very much! |
Ok! I will add this solution in the README.md file! |
The above solution works for me - thanks everyone! |
I think this solution only works if you have Swift as a default language, no @pichillilorenzo @alsocalledchris ? |
What worked for me was the above and then I changed the configuration in "ios/Runner.xcodeproj/project.pbxproj": SWIFT_SWIFT3_OBJC_INFERENCE=On; There are 3 instances |
…sign_applicationNameForUserAgent_to_WKWebViewConfiguration TWECACAPP-709 assign applicationNameForUserAgent to WKWebViewConfiguration
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. |
Can't build the iOS app after adding this package to my project. Fails with SWIFT_VERSION error even though I have run the 'flutter create -i swift' command on the directory the project is in.
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor.
Using Flutter 0.11.3 with latest XCode.
The text was updated successfully, but these errors were encountered: