Giter Site home page Giter Site logo

Comments (15)

haoliu-amp avatar haoliu-amp commented on July 20, 2024 1

@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.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

Hey, so previously it doesn't happen to you?

from amplitude-flutter.

Zazo032 avatar Zazo032 commented on July 20, 2024

No, only after migrating to new Podfile template

from amplitude-flutter.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

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.

Zazo032 avatar Zazo032 commented on July 20, 2024

The Flutter version is in the first post, CocoaPods version is 1.9.3

from amplitude-flutter.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

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.

Zazo032 avatar Zazo032 commented on July 20, 2024

This is still happening in latest 1.20 stable, did you enable bitcode in order to trigger the error?

from amplitude-flutter.

haoliu-amp avatar haoliu-amp commented on July 20, 2024

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.

ThomasKliszowski avatar ThomasKliszowski commented on July 20, 2024

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.

marcuslma avatar marcuslma commented on July 20, 2024

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.

zjamshidi avatar zjamshidi commented on July 20, 2024

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.

zjamshidi avatar zjamshidi commented on July 20, 2024

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.

zjamshidi avatar zjamshidi commented on July 20, 2024

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.

Zazo032 avatar Zazo032 commented on July 20, 2024

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.

Zazo032 avatar Zazo032 commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.