-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] Can't compile iOS #776
Comments
Any estimates when this will work? |
@adrianvintu please don't ask for estimate and read this: #702 To anyone who's having problem:
Here's more details: #714 I'm able to help only if you will provide reproducible example. |
I'm pretty rusty on Swift atm but if I change:
to
It compiles fine. I also noticed in other projects (eg. the example for Better Player) I don't have this issue. FWIW My project is set to target iOS 13.0 |
Changing example project target to iOS 13.0 didn't trigger this issue on my side. In order to fix this issue I need reproducible example. |
From a Swift perspective, would it be preferred to write
as
on line 112 of CacheManager.swift ? |
Edit: revised, see below
Adding a |
@jhomlala the reason is actually what I wrote before. So our project was on Swift 4, migration to Swift 5 solved the problem. Please add some note to the package that only Swift 5 projects are supported or don't use optional try for Swift 4 support; this costs hours of debugging, especially for these guys, having no experience in swift. Solution for anyone having the same problem: What I did to upgrade to latest flutter iOS scaffold: cd projectfolder
rm -rf ios/
flutter create --platforms=ios . Just check the basic settings like package identifier, certificates and app icon (by the way, suggest the following so that you have no effort: https://pub.dev/packages/flutter_launcher_icons) and then you're ready with swift 5. Credits to @mitghi for the solution |
I've added info about Swift 5. Thanks for reporting. |
Describe the bug
Trying to build my project and I get the following error:
To Reproduce
Steps to reproduce the behavior:
Flutter doctor
Better Player version
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: