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

Fails to compile for ios #11

Open
vHanda opened this issue Feb 16, 2023 · 1 comment
Open

Fails to compile for ios #11

vHanda opened this issue Feb 16, 2023 · 1 comment

Comments

@vHanda
Copy link

vHanda commented Feb 16, 2023

Hi. I tried to compile GitJournal and got the following error -

Swift Compiler Error (Xcode): Stored properties cannot be marked potentially unavailable with
'@available'
/Users/vishesh/.pub-cache/hosted/pub.dev/flutter_tex_js_ios-1.0.7/ios/Classes/SwiftFlutterTexJsPlugi
n.swift:16:5

However, if I try to remove the @available, I get the following error -

Swift Compiler Error (Xcode): 'TexRenderer' is only available in iOS 11.0 or newer
/Users/vishesh/.pub-cache/hosted/pub.dev/flutter_tex_js_ios-1.0.7/ios/Classes/SwiftFlutterTexJsPlugi
n.swift:17:24

My Podfile says 11.0, and changing it to 14.0 also does not help. Do you have any suggestions on how I could fix this? I'm on an m2 macbook air.

@amake
Copy link
Owner

amake commented Feb 17, 2023

I cloned GitJournal and tried to reproduce, but fixing up the code signing to work with my accounts was too annoying so I gave up.

Recent Flutter seems to only support iOS 11.0+: when I tried to set it to an earlier version (9.0) to reproduce the issue, the tooling always forced the version back to 11.0.

(With 11.0+ the issue is probably moot because the stored properties are unconditionally available.)

I'm not sure why you are not also being forced to 11.0, except that I note this line in your Podfile:
https://github.com/GitJournal/GitJournal/blob/0af82e2cc0675b0be9f22c997dbad576edc70094/ios/Podfile#L70

You might try regenerating your Podfile.

Regardless, it seems iOS 10 and earlier are dead and buried in the Flutter ecosystem, so I have put out new releases of flutter_tex_js_ios, flutter_tex_js, and org_flutter that require iOS 11.0+. Try bumping your org_flutter version to ^3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants