dart_vlc
dart_vlc copied to clipboard
iOS Bitcode
Describe the bug
Building on Flutter 2.10 and Flutter 3.0 for iOS produces the Error
Error (Xcode): '/Users/nicolas.klein/development/xcollect/build/ios/Debug-iphoneos/XCFrameworkIntermediates/MobileVLCKit/MobileVLCKit.framework/MobileVLCKit' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/nicolas.klein/development/xcollect/build/ios/Debug-iphoneos/XCFrameworkIntermediates/MobileVLCKit/MobileVLCKit.framework/MobileVLCKit' for architecture arm64
I know you don't plan to support the package for iOS / MacOS any further, but maybe you have any advice. I already have disabled Bitcode in my Runner-Settings in xCode.
Minimal reproducible code Bug at compile time.
Flutter logs
[ +95 ms] Could not build the precompiled application for the device.
[ +13 ms] Error (Xcode): '/Users/nicolas.klein/development/xcollect/build/ios/Debug-iphoneos/XCFrameworkIntermediates/MobileVLCKit/MobileVLCKit.framework/MobileVLCKit' does not
contain
bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file
'/Users/nicolas.klein/development/xcollect/build/ios/Debug-iphoneos/XCFrameworkIntermediates/MobileVLCKit/MobileVLCKit.framework/MobileVLCKit' for architecture arm64
[ +1 ms] Error launching application on iPhone Makro.
[ +4 ms] "flutter run" took 32.568ms.
[ +4 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
[ +94 ms] ensureAnalyticsSent: 92ms
[ +2 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
Flutter Doctor:
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3.1 21E258 darwin-x64, locale de-DE)
• Flutter version 2.10.5 at /Users/nicolas.klein/development/sdk_flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5464c5bac7 (4 weeks ago), 2022-04-18 09:55:37 -0700
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/nicolas.klein/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Users/nicolas.klein/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/211.7628.21.2111.8193401/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Users/nicolas.klein/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/211.7628.21.2111.8193401/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.11+0-b60-7590822)
[✓] Android Studio (version 2020.3)
• Android Studio at /Users/nicolas.klein/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7784292/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)
[✓] VS Code (version 1.67.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.40.0
[✓] Connected device (3 available)
• iPhone Makro (mobile) • 00008110-001A4C623A44801E • ios • iOS 15.4.1 19E258
• macOS (desktop) • macos • darwin-x64 • macOS 12.3.1 21E258 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.64
[✓] HTTP Host Availability
• All required HTTP hosts are available
Operating system:
- Platform: iOS
Other details:
- [no] I confirm this is not a bug in the VLC app & only
dart_vlc
. - [no] I have donated / sponsored
dart_vlc
.
Screenshots
I don't have an mac & I can't help. See #242.
@hey-nicolasklein Did you try do disable BITCODE
with your Podfile?
Something like the following snippet:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
@hey-nicolasklein Just a hint: with Xcode 14 building with BITCODE
will be disabled by default.
Source: Apple Xcode 14 Release-Notes
Hey I did not go More in depth in using the package. Thank you for your help though. The project Im working on needs a player with further macOS support. And the dev of this project clearly is not interested at this moment in developing the macOS version any further.