Problem description
I am creating new app from scratch with Flutter 2.x.y and adding Adjust plugin to it. After attempt to build the app in Xcode in Debug configuration, following compile time error happens:
ld: bitcode bundle could not be generated because '/Users/uerceg/Development/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Flutter' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/uerceg/Development/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Flutter'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce
- Create new Flutter app (I created it with Android Studio new project wizard, but I assume this makes no difference in comparison to CLI).
- Add the Adjust SDK plugin to this app like advised in this chapter.
- Make use of Adjust SDK in your app. Example Flutter app doing that can be found in here.
- Try to build app from Xcode with having Debug configuration selected and above mentioned error occurs (same error happens if one tries to run the app on iOS device from Android Studio).
Expected outcome
App should be built successfully in Debug configuration and run on the iOS device.
Actual outcome
Building the app fails with error from Problem description chapter above.
Additional info
flutter doctor -v output
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-GB)
• Flutter version 2.0.2 at /Users/uerceg/Development/flutter
• Framework revision 8962f6dc68 (7 days ago), 2021-03-11 13:22:20 -0800
• Engine revision 5d8bf811b3
• Dart version 2.12.1
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/uerceg/Development/android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/uerceg/Development/android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6915495)
[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 53.1.5
• Dart plugin version 203.6912
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.1
[✓] Connected device (3 available)
• Pixel 4a 5G (mobile) • 0B061JECB12057 • android-arm64 • Android 11 (API 30)
• Uglješa’s iPhone (mobile) • 00008030-0011104A228B802E • ios • iOS 14.5
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
! Error: Living Room is not connected. Xcode will continue when Living Room is connected. (code -13)
• No issues found!
- Asked this in unrelated issue and @jmagman was unable to reproduce the error from example Flutter app I made and mentioned in step 3 of Steps to reproduce chapter.
- (copy / paste from there) In case I switch configuration to Release, app builds and runs successfully.
In case you need any additional info, feel free to ping.
Cheers
Problem description
I am creating new app from scratch with Flutter 2.x.y and adding Adjust plugin to it. After attempt to build the app in Xcode in Debug configuration, following compile time error happens:
Steps to reproduce
Expected outcome
App should be built successfully in Debug configuration and run on the iOS device.
Actual outcome
Building the app fails with error from Problem description chapter above.
Additional info
flutter doctor -v output
In case you need any additional info, feel free to ping.
Cheers