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

[BUG] App does not compile on iOS for Swift 4 projects #99

Closed
kightsonsanom opened this issue Jan 19, 2022 · 3 comments
Closed

[BUG] App does not compile on iOS for Swift 4 projects #99

kightsonsanom opened this issue Jan 19, 2022 · 3 comments
Assignees
Labels
new issue New issue which has not been checked yet

Comments

@kightsonsanom
Copy link

Describe the bug
App does not compile on iOS if Swift 4 is used in the project (currently default swift version for Flutter projects). Here is related bug jhomlala/betterplayer#776 (comment)

To Reproduce
Steps to reproduce the behavior:

  1. Add package to the new flutter project,
  2. Run the app on iOS (can be simulator)

Expected behavior
App compiles and runs

Flutter doctor
Please add flutter doctor output here.

Alice version

  • Version: 0.2.5

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: 15.0
@kightsonsanom kightsonsanom added the new issue New issue which has not been checked yet label Jan 19, 2022
@kightsonsanom kightsonsanom changed the title [BUG] [BUG] App does not compile on iOS for Swift 4 projects Jan 19, 2022
@kazbeksultanov
Copy link

I have the same issue.

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.0, on macOS 11.5.2 20G95 darwin-x64, locale ru)
• Flutter version 2.8.0 at /Users/kazbek/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cf44000065 (6 weeks ago), 2021-12-08 14:06:50 -0800
• Engine revision 40a99c5951
• Dart version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/kazbek/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Users/kazbek/Library/Java/JavaVirtualMachines/corretto-1.8.0_302/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Corretto-8.302.08.1 (build 1.8.0_302-b08)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2

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

[✓] Android Studio (version 2020.3)
• 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 11.0.10+0-b96-7281165)

[!] Android Studio
• Android Studio at /Users/kazbek/Library/Android/sdk/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
✗ Android Studio not found at /Users/kazbek/Library/Android/sdk/Contents
• Try updating or re-installing Android Studio.

[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0

[✓] Connected device (2 available)
• iPhone (Kazbek) (mobile) • b0edb6b02db2d949cde254ea5efb94efaeaea98a • ios • iOS 15.1 19B74
• Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.99

! Doctor found issues in 1 category.

@kazbeksultanov
Copy link

I encountered this problem when using the package alice, but actually the problem was generated from better_player

Undefined symbols for architecture arm64: "OBJC_CLASS$__TtC13better_player12CacheManager", referenced from: objc-class-ref in BetterPlayerPlugin.o ld: symbol(s) not found for architecture arm64

Solution that helped me was number 3 is this answers. So there was no problem with package
https://stackoverflow.com/a/70280105/7816014

@jhomlala
Copy link
Owner

Please update to 0.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

3 participants