Comments (6)
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.
@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.
@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.
Micro-Learning Topic: External entity injection (Detected by phrase)
Matched on "XXE"
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.
@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.
@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)
- 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]
- 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.