Comments (15)
@zjamshidi Thank you very much! I've put this into our documentation under FAQ section.
https://developers.amplitude.com/docs/flutter-setup#faq
from amplitude-flutter.
Hey, so previously it doesn't happen to you?
from amplitude-flutter.
No, only after migrating to new Podfile
template
from amplitude-flutter.
So you regenerate the Podfile for your project, right? What is your current Cocoapods and Flutter version? Knowing these will help me get it reproduced locally.
from amplitude-flutter.
The Flutter version is in the first post, CocoaPods version is 1.9.3
from amplitude-flutter.
I tried it locally, but can't get it reproduced.
However, the versions for each tools I am using are
cocoapods: 1.9.1
flutter: Flutter 1.18.0-11.0.pre
Would you like to try to switch same versions and give it a shot?
from amplitude-flutter.
This is still happening in latest 1.20 stable, did you enable bitcode in order to trigger the error?
from amplitude-flutter.
I did enable it. Would you mind sending me an example app so I can try it out on my end if possible?
from amplitude-flutter.
I have the same problem.
If I remove the Podfile in order to make the new one, I get this bitcode issue.
$ pod --version
1.9.1
$ flutter --version
Flutter 1.20.2 • channel stable • https://github.com/flutter/flutter
Framework • revision bbfbf1770c (4 days ago) • 2020-08-13 08:33:09 -0700
Engine • revision 9d5b21729f
Tools • Dart 2.9.1
from amplitude-flutter.
Same problem here,
I reverted flutter version to make it work.
The error started after migrating to new stable version 1.20.
I opened the issue #15
from amplitude-flutter.
I have the same problem. I wanted to reduce the app size, so I enabled the bitcode flag. Then the project failed to build:
ld: '/Users/zahra/FlutterProjects/motiveex_fluttter/build/ios/Release-iphoneos/Amplitude/Amplitude.framework/Amplitude'
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/zahra/FlutterProjects/motiveex_fluttter/build/ios/Release-iphoneos/Amplitude/Amplitude.framework/Amplitude' for
architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: '/Users/zahra/FlutterProjects/motiveex_fluttter/build/ios/Release-iphoneos/Amplitude/Amplitude.framework/Amplitude'
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/zahra/FlutterProjects/motiveex_fluttter/build/ios/Release-iphoneos/Amplitude/Amplitude.framework/Amplitude' for
architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
from amplitude-flutter.
here is the output of flutter doctor:
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.5 19F101, locale en-LK)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
I'm using amplitude_flutter: ^2.0.0
in my project
from amplitude-flutter.
I solved my issue. According to flutter documentation:
You should also remove config.build_settings['ENABLE_BITCODE'] = 'NO' from the Podfile
https://github.com/flutter/flutter/wiki/Creating-an-iOS-Bitcode-enabled-app
from amplitude-flutter.
This will probably have to be updated too: https://github.com/amplitude/Amplitude-Flutter/search?q=ENABLE_BITCODE&unscoped_q=ENABLE_BITCODE
Example: https://github.com/flutter/flutter/pull/39851/files
from amplitude-flutter.
As this plugin is now using the iOS pod natively, maybe bitcode should be enabled there?
ld: '/Users/cristianzazo/sample/build/ios/Release-iphoneos/Amplitude/Amplitude.framework/Amplitude' 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/cristianzazo/sample/build/ios/Release-iphoneos/Amplitude/Amplitude.framework/Amplitude' for architecture arm64
clang: error: linker command failed with exit code 1
from amplitude-flutter.
Related Issues (20)
- Test Issue ticket creation in AMP
- IP and location are transmitted even though CoppaControl is activated HOT 5
- Nested event_properties maps only serialize the top level on web HOT 1
- amplitude_flutter plugin not install my .yaml file HOT 1
- Can you make your account a verified publisher?
- Build failed on iOS with 'dart:js' error HOT 2
- Amplitude is logging wrong User properties for flutter SDK HOT 8
- Unusually Long Sessions HOT 1
- DefaultTrackingOptions configuration is missing on Flutter SDK HOT 4
- Support Kotlin 1.8 HOT 5
- Same '$identify' event being sent on every app background, even after opt-out/not updating user properties
- Version Conflict for 'Amplitude' in amplitude_flutter on CodeMagic Builds
- Execution failed for task ':amplitude_flutter:compileDebugKotlin'. (Android Gradle 8) HOT 3
- Access hidden method error HOT 1
- Session Reply [Web] HOT 1
- Urgent need of a migration guide/documentation for `amplitude_flutter 4.0.0` HOT 4
- Using with encrypted db
- Only complete initialization after userId is properly set
- Missing NSPrivacyTracking in PrivacyInfo.xcprivacy HOT 4
- How to add VersionCode in amplitude events HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplitude-flutter.