flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
164.62k stars 27.13k forks source link

Failed to send CA Event for app launch measurements for ca_event_type: 0 event_name: com.apple.app_launch_measurement (New Flutter App - XCode 16 Beta 4) #152418

Open rzambroni opened 1 month ago

rzambroni commented 1 month ago

Context:

Getting warning logs while testing XCode 16 Beta 4 running a blank flutter app (flutter create, flutter run). We suspect that these logs are related to XCode itself rather than flutter, but it happens on the current master version and not in stable.

Pre-requisites

Steps to reproduce

  1. Open Xcode 16.0 Beta 4.
  2. Execute the command flutter create . in the terminal.
  3. Change the directory to the project root: cd .
  4. Select the emulator in Xcode with IOS 18
  5. Run the command flutter run in the terminal.
  6. Observe the logs in XCode (no need to do anything on the app)

Expected results

The Flutter app should launch successfully on the selected emulator without errors.

Actual results

Failed to send CA Event for app launch measurements for ca_event_type: 0 event_name: com.apple.app_launch_measurement.FirstFramePresentationMetric
Failed to send CA Event for app launch measurements for ca_event_type: 1 event_name: com.apple.app_launch_measurement.ExtendedLaunchMetrics

Code sample

Code sample ```dart [Paste your code here] ```

Screenshots or Video

Screenshots / Video demonstration ![image](https://github.com/user-attachments/assets/cb886423-a8f5-4b5c-9fbf-25c8c33282d0)

Logs

Logs ```console [Paste your logs here] ```

Flutter Doctor output

Doctor output ```console [✓] Flutter (Channel master, 3.24.0-1.0.pre.302, on macOS 14.5 23F79 darwin-arm64, locale en-US) • Flutter version 3.24.0-1.0.pre.302 on channel master at /Users/josefinadiz/flutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 3a737c9a56 (11 minutes ago), 2024-07-26 17:01:56 -0300 • Engine revision e28f8755e2 • Dart version 3.6.0 (build 3.6.0-85.0.dev) • DevTools version 2.37.1 [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/josefinadiz/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 16.0) • Xcode at /Applications/Xcode-beta.app/Contents/Developer • Build 16A5211f • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2024.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 17.0.10+0-17.0.10b1087.21-11609105) [✓] VS Code (version 1.91.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.92.0 [✓] Connected device (4 available) • iPhone 15 Pro Max (mobile) • F33A1B23-4393-4D7A-8B68-107B70C55AD8 • ios • com.apple.CoreSimulator.SimRuntime.iOS-18-0 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.72 [✓] Network resources • All expected network resources are available. • No issues found! ```