GithubHelp home page GithubHelp logo

Comments (6)

justin-fiedler avatar justin-fiedler commented on June 13, 2024

Hi @omzer thanks for reaching out. We tried to reproduce the issue in a new Flutter app and in the example but have not been able to recreate it so far.

I noticed the mention of pod repo update in the error output. Could you please try this and then try again?

If that doesn't fix the issue could you please run flutter doctor and share the output.

Thank you!

from amplitude-flutter.

omzer avatar omzer commented on June 13, 2024

@justin-fiedler Tried pod repo update and made no difference.
This is the result of the flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.2, on macOS 12.0.1 21A559 darwin-arm, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
[✓] VS Code (version 1.62.3)
[✓] Connected device (1 available)

I also tried to update to the latest flutter version (2.5.3) and the issue still reproducing.

from amplitude-flutter.

omzer avatar omzer commented on June 13, 2024

@justin-fiedler I did the following:

  • Re-installed xcode.
  • Removed Podfile/Podfile.lock.
  • flutter clean.
  • flutter pub get.
  • New run.
  • Added platform :ios, '10.0' to the Podfile.

And now, the previous error is gone, however I'm getting a new one:

Running pod install...
Running Xcode build...
Xcode build done.                                            2.4s
Failed to build iOS app
Error output from Xcode build:
↳
    --- xcodebuild: WARNING: Using the first of multiple matching destinations:
    { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
    { platform:iOS Simulator, id:XXXXX3, OS:15.0, name:iPhone 13 }
    { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:XXXXE }
    { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
    { platform:iOS, id:XXXXA, name:Omar’s iPhone }
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:127:64: warning: 'logRevenue(_:quantity:price:)' is deprecated: Use `logRevenueV2` and `AMPRevenue` instead
                        Amplitude.instance(withName: instanceName).logRevenue(productIdentifier,
                                                                   ^
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:134:64: warning: 'logRevenue' is deprecated: Use `logRevenueV2` and `AMPRevenue` instead
                        Amplitude.instance(withName: instanceName).logRevenue(NSNumber(value: amount))
                                                                   ^
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:187:62: error: cannot find 'AMPServerZone' in scope
                        let ampServerZone = serverZone == "EU" ? AMPServerZone.EU : AMPServerZone.US
                                                                 ^~~~~~~~~~~~~
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:187:81: error: cannot find 'AMPServerZone' in scope
                        let ampServerZone = serverZone == "EU" ? AMPServerZone.EU : AMPServerZone.US
                                                                                    ^~~~~~~~~~~~~
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:188:64: error: value of type 'Amplitude' has no member 'setServerZone'
                        Amplitude.instance(withName: instanceName).setServerZone(ampServerZone, updateServerUrl: updateServerUrl)
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:127:64: warning: 'logRevenue(_:quantity:price:)' is deprecated: Use `logRevenueV2` and `AMPRevenue` instead
                        Amplitude.instance(withName: instanceName).logRevenue(productIdentifier,
                                                                   ^
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:134:64: warning: 'logRevenue' is deprecated: Use `logRevenueV2` and `AMPRevenue` instead
                        Amplitude.instance(withName: instanceName).logRevenue(NSNumber(value: amount))
                                                                   ^
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:187:62: error: cannot find 'AMPServerZone' in scope
                        let ampServerZone = serverZone == "EU" ? AMPServerZone.EU : AMPServerZone.US
                                                                 ^~~~~~~~~~~~~
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:187:81: error: cannot find 'AMPServerZone' in scope
                        let ampServerZone = serverZone == "EU" ? AMPServerZone.EU : AMPServerZone.US
                                                                                    ^~~~~~~~~~~~~
    /Users/omar/Desktop/3mr/programs/flutter/.pub-cache/hosted/pub.dartlang.org/amplitude_flutter-3.8.0/ios/Classes/SwiftAmplitudeFlutterPlugin.swift:188:64: error: value of type 'Amplitude' has no member 'setServerZone'
                        Amplitude.instance(withName: instanceName).setServerZone(ampServerZone, updateServerUrl: updateServerUrl)
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel

Could not build the application for the simulator.
Error launching application on iPhone 13.

I'm using the version 3.8 for amplitude.

from amplitude-flutter.

secure-code-warrior-for-github avatar secure-code-warrior-for-github commented on June 13, 2024

Micro-Learning Topic: External entity injection (Detected by phrase)

Matched on "XXE"

What is this? (2min video)

An XML External Entity attack is a type of attack against an application that parses XML input. This attack occurs when XML input containing a reference to an external entity is processed by a weakly configured XML parser. This attack may lead to the disclosure of confidential data, denial of service, server-side request forgery, port scanning from the perspective of the machine where the parser is located, and other system impacts.

Try this challenge in Secure Code Warrior

from amplitude-flutter.

yuhao900914 avatar yuhao900914 commented on June 13, 2024

@omzer Since you re-installed the Xcode, did you login into Xcode?
If not, please open the project's Runner.xcworkspace file and log into Xcode at: "Signing & Capabilities" -> "All" -> "Signing".

from amplitude-flutter.

omzer avatar omzer commented on June 13, 2024

@yuhao900914 Did that, unfortunately changed nothing.
If the issue is not reproducing in your end, then mostly it is something releated to my setup, I'll close this issue for now.

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.