fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.56k stars 940 forks source link

[Bug]: Sensors_plus 3.1.0 example fails with "channel sent a message from native to Flutter on a non-platform thread." #2342

Closed wjmetcalfiiii closed 10 months ago

wjmetcalfiiii commented 10 months ago

Platform

iOS 17.0.3

Plugin

sensors_plus

Version

3.1.0

Flutter SDK

3.16.0-0.3.pre

Steps to reproduce

The sensors_plus 3.1.0 example located at https://pub.dev/packages/sensors_plus/example

produces the same error seen in https://github.com/fluttercommunity/plus_plugins/issues/2315

though this time all of the sensors are throwing this error instead of just two in #2315

Syncing files to device William’s iPhone... [ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/user_accel' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

[ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/accelerometer' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

[ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/gyroscope' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

[ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/magnetometer' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

Code Sample

Here is Main.Dart

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: public_member_api_docs

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:sensors_plus/sensors_plus.dart';

import 'snake.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations(
    [
      DeviceOrientation.portraitUp,
      DeviceOrientation.portraitDown,
    ],
  );

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Sensors Demo',
      theme: ThemeData(
        useMaterial3: true,
        colorSchemeSeed: const Color(0x9f4376f8),
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, this.title}) : super(key: key);

  final String? title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  static const int _snakeRows = 20;
  static const int _snakeColumns = 20;
  static const double _snakeCellSize = 10.0;

  List<double>? _userAccelerometerValues;
  List<double>? _accelerometerValues;
  List<double>? _gyroscopeValues;
  List<double>? _magnetometerValues;
  final _streamSubscriptions = <StreamSubscription<dynamic>>[];

  @override
  Widget build(BuildContext context) {
    final userAccelerometer = _userAccelerometerValues
        ?.map((double v) => v.toStringAsFixed(1))
        .toList();
    final accelerometer =
        _accelerometerValues?.map((double v) => v.toStringAsFixed(1)).toList();
    final gyroscope =
        _gyroscopeValues?.map((double v) => v.toStringAsFixed(1)).toList();
    final magnetometer =
        _magnetometerValues?.map((double v) => v.toStringAsFixed(1)).toList();

    return Scaffold(
      appBar: AppBar(
        title: const Text('Sensors Plus Example'),
        elevation: 4,
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: <Widget>[
          Center(
            child: DecoratedBox(
              decoration: BoxDecoration(
                border: Border.all(width: 1.0, color: Colors.black38),
              ),
              child: SizedBox(
                height: _snakeRows * _snakeCellSize,
                width: _snakeColumns * _snakeCellSize,
                child: Snake(
                  rows: _snakeRows,
                  columns: _snakeColumns,
                  cellSize: _snakeCellSize,
                ),
              ),
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(16.0),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text('UserAccelerometer: $userAccelerometer'),
              ],
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(16.0),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text('Accelerometer: $accelerometer'),
              ],
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(16.0),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text('Gyroscope: $gyroscope'),
              ],
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(16.0),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text('Magnetometer: $magnetometer'),
              ],
            ),
          ),
        ],
      ),
    );
  }

  @override
  void dispose() {
    super.dispose();
    for (final subscription in _streamSubscriptions) {
      subscription.cancel();
    }
  }

  @override
  void initState() {
    super.initState();
    _streamSubscriptions.add(
      userAccelerometerEvents.listen(
        (UserAccelerometerEvent event) {
          setState(() {
            _userAccelerometerValues = <double>[event.x, event.y, event.z];
          });
        },
        onError: (e) {
          showDialog(
              context: context,
              builder: (context) {
                return const AlertDialog(
                  title: Text("Sensor Not Found"),
                  content: Text(
                      "It seems that your device doesn't support Accelerometer Sensor"),
                );
              });
        },
        cancelOnError: true,
      ),
    );
    _streamSubscriptions.add(
      accelerometerEvents.listen(
        (AccelerometerEvent event) {
          setState(() {
            _accelerometerValues = <double>[event.x, event.y, event.z];
          });
        },
        onError: (e) {
          showDialog(
              context: context,
              builder: (context) {
                return const AlertDialog(
                  title: Text("Sensor Not Found"),
                  content: Text(
                      "It seems that your device doesn't support Gyroscope Sensor"),
                );
              });
        },
        cancelOnError: true,
      ),
    );
    _streamSubscriptions.add(
      gyroscopeEvents.listen(
        (GyroscopeEvent event) {
          setState(() {
            _gyroscopeValues = <double>[event.x, event.y, event.z];
          });
        },
        onError: (e) {
          showDialog(
              context: context,
              builder: (context) {
                return const AlertDialog(
                  title: Text("Sensor Not Found"),
                  content: Text(
                      "It seems that your device doesn't support User Accelerometer Sensor"),
                );
              });
        },
        cancelOnError: true,
      ),
    );
    _streamSubscriptions.add(
      magnetometerEvents.listen(
        (MagnetometerEvent event) {
          setState(() {
            _magnetometerValues = <double>[event.x, event.y, event.z];
          });
        },
        onError: (e) {
          showDialog(
              context: context,
              builder: (context) {
                return const AlertDialog(
                  title: Text("Sensor Not Found"),
                  content: Text(
                      "It seems that your device doesn't support Magnetometer Sensor"),
                );
              });
        },
        cancelOnError: true,
      ),
    );
  }
}

Logs

Partial log.

Build settings for action build and target Flutter:
                        ACTION = build
                        AD_HOC_CODE_SIGNING_ALLOWED = YES
                        ALLOW_TARGET_PLATFORM_SPECIALIZATION = NO
                        ALTERNATE_GROUP = staff
                        ALTERNATE_MODE = u+w,go-w,a+rX
                        ALTERNATE_OWNER = wjmetcalfiii
                        ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO
                        ALWAYS_SEARCH_USER_PATHS = NO
                        ALWAYS_USE_SEPARATE_HEADERMAPS = NO
                        APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
                        APPLE_INTERNAL_DIR = /AppleInternal
                        APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
                        APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library
                        APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools
                        APPLICATION_EXTENSION_API_ONLY = NO
                        APPLY_RULES_IN_COPY_FILES = NO
                        APPLY_RULES_IN_COPY_HEADERS = NO
                        APP_SHORTCUTS_ENABLE_FLEXIBLE_MATCHING = YES
                        ARCHS = arm64 x86_64
                        ARCHS_STANDARD = arm64 x86_64
                        ARCHS_STANDARD_32_64_BIT = arm64 i386 x86_64
                        ARCHS_STANDARD_32_BIT = i386
                        ARCHS_STANDARD_64_BIT = arm64 x86_64
                        ARCHS_STANDARD_INCLUDING_64_BIT = arm64 x86_64
                        ARCHS_UNIVERSAL_IPHONE_OS = arm64 i386 x86_64
                        ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
                        ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor
                        AUTOMATICALLY_MERGE_DEPENDENCIES = NO
                        AVAILABLE_PLATFORMS = appletvos appletvsimulator driverkit iphoneos iphonesimulator macosx watchos watchsimulator
                        BITCODE_GENERATION_MODE = marker
                        BUILD_ACTIVE_RESOURCES_ONLY = NO
                        BUILD_COMPONENTS = headers build
                        BUILD_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios
                        BUILD_LIBRARY_FOR_DISTRIBUTION = NO
                        BUILD_ROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/build
                        BUILD_STYLE = 
                        BUILD_VARIANTS = normal
                        BUILT_PRODUCTS_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter
                        BUNDLE_CONTENTS_FOLDER_PATH_deep = Contents/
                        BUNDLE_EXECUTABLE_FOLDER_NAME_deep = MacOS
                        BUNDLE_EXTENSIONS_FOLDER_PATH = Extensions
                        BUNDLE_FORMAT = shallow
                        BUNDLE_FRAMEWORKS_FOLDER_PATH = Frameworks
                        BUNDLE_PLUGINS_FOLDER_PATH = PlugIns
                        BUNDLE_PRIVATE_HEADERS_FOLDER_PATH = PrivateHeaders
                        BUNDLE_PUBLIC_HEADERS_FOLDER_PATH = Headers
                        CACHE_ROOT = /var/folders/4_/67dc1rf56fs1gpsjr30xrf6r0000gn/C/com.apple.DeveloperTools/15.0-15A240d/Xcode
                        CCHROOT = /var/folders/4_/67dc1rf56fs1gpsjr30xrf6r0000gn/C/com.apple.DeveloperTools/15.0-15A240d/Xcode
                        CHMOD = /bin/chmod
                        CHOWN = /usr/sbin/chown
                        CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES
                        CLANG_ANALYZER_NONNULL = YES
                        CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE
                        CLANG_CXX_LANGUAGE_STANDARD = gnu++14
                        CLANG_CXX_LIBRARY = libc++
                        CLANG_ENABLE_EXPLICIT_MODULES = NO
                        CLANG_ENABLE_MODULES = YES
                        CLANG_ENABLE_OBJC_ARC = YES
                        CLANG_ENABLE_OBJC_WEAK = NO
                        CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES
                        CLANG_WARN_BOOL_CONVERSION = YES
                        CLANG_WARN_COMMA = YES
                        CLANG_WARN_CONSTANT_CONVERSION = YES
                        CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
                        CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
                        CLANG_WARN_DOCUMENTATION_COMMENTS = YES
                        CLANG_WARN_EMPTY_BODY = YES
                        CLANG_WARN_ENUM_CONVERSION = YES
                        CLANG_WARN_INFINITE_RECURSION = YES
                        CLANG_WARN_INT_CONVERSION = YES
                        CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES
                        CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
                        CLANG_WARN_OBJC_LITERAL_CONVERSION = YES
                        CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
                        CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
                        CLANG_WARN_RANGE_LOOP_ANALYSIS = YES
                        CLANG_WARN_STRICT_PROTOTYPES = YES
                        CLANG_WARN_SUSPICIOUS_MOVE = YES
                        CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
                        CLANG_WARN_UNREACHABLE_CODE = YES
                        CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
                        CLASS_FILE_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/JavaClasses
                        CLEAN_PRECOMPS = YES
                        CLONE_HEADERS = NO
                        CODESIGNING_FOLDER_PATH = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter/
                        CODE_SIGNING_ALLOWED = NO
                        CODE_SIGNING_REQUIRED = YES
                        CODE_SIGN_CONTEXT_CLASS = XCiPhoneSimulatorCodeSignContext
                        CODE_SIGN_IDENTITY = -
                        CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES
                        COLOR_DIAGNOSTICS = NO
                        COMBINE_HIDPI_IMAGES = NO
                        COMPILER_INDEX_STORE_ENABLE = Default
                        COMPOSITE_SDK_DIRS = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/CompositeSDKs
                        COMPRESS_PNG_FILES = YES
                        CONFIGURATION = Release
                        CONFIGURATION_BUILD_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter
                        CONFIGURATION_TEMP_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator
                        COPYING_PRESERVES_HFS_DATA = NO
                        COPY_HEADERS_RUN_UNIFDEF = NO
                        COPY_PHASE_STRIP = NO
                        CORRESPONDING_DEVICE_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
                        CORRESPONDING_DEVICE_PLATFORM_NAME = iphoneos
                        CORRESPONDING_DEVICE_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk
                        CORRESPONDING_DEVICE_SDK_NAME = iphoneos17.0
                        CP = /bin/cp
                        CREATE_INFOPLIST_SECTION_IN_BINARY = NO
                        CURRENT_ARCH = x86_64
                        CURRENT_VARIANT = normal
                        DEAD_CODE_STRIPPING = YES
                        DEBUGGING_SYMBOLS = YES
                        DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
                        DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0
                        DEFAULT_DEXT_INSTALL_PATH = /System/Library/DriverExtensions
                        DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions
                        DEFINES_MODULE = NO
                        DEPLOYMENT_LOCATION = NO
                        DEPLOYMENT_POSTPROCESSING = NO
                        DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET
                        DEPLOYMENT_TARGET_SUGGESTED_VALUES = 12.0 12.1 12.2 12.3 12.4 13.0 13.1 13.2 13.3 13.4 13.5 13.6 14.0 14.1 14.2 14.3 14.4 14.5 14.6 14.7 15.0 15.1 15.2 15.3 15.4 15.5 15.6 16.0 16.1
                        16.2 16.3 16.4 16.5 16.6 17.0
                        DERIVED_FILES_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/DerivedSources
                        DERIVED_FILE_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/DerivedSources
                        DERIVED_SOURCES_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/DerivedSources
                        DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications
                        DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin
                        DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer
                        DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks
                        DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks
                        DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library
                        DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
                        DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools
                        DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr
                        DEVELOPMENT_LANGUAGE = en
                        DIFF = /usr/bin/diff
                        DONT_GENERATE_INFOPLIST_FILE = NO
                        DO_HEADER_SCANNING_IN_JAM = NO
                        DSTROOT = /tmp/Pods.dst
                        DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
                        DWARF_DSYM_FILE_NAME = .dSYM
                        DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO
                        DWARF_DSYM_FOLDER_PATH = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter
                        EAGER_LINKING = NO
                        EFFECTIVE_PLATFORM_NAME = -iphonesimulator
                        EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
                        EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO
                        ENABLE_APP_SANDBOX = NO
                        ENABLE_BITCODE = NO
                        ENABLE_CODE_COVERAGE = YES
                        ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES
                        ENABLE_DEFAULT_SEARCH_PATHS = YES
                        ENABLE_HARDENED_RUNTIME = NO
                        ENABLE_HEADER_DEPENDENCIES = YES
                        ENABLE_NS_ASSERTIONS = NO
                        ENABLE_ON_DEMAND_RESOURCES = NO
                        ENABLE_STRICT_OBJC_MSGSEND = YES
                        ENABLE_TESTABILITY = NO
                        ENABLE_TESTING_SEARCH_PATHS = NO
                        ENABLE_USER_SCRIPT_SANDBOXING = NO
                        ENTITLEMENTS_DESTINATION = __entitlements
                        ENTITLEMENTS_REQUIRED = YES
                        EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS
                        EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj
                        EXPANDED_CODE_SIGN_IDENTITY = 
                        EXPANDED_CODE_SIGN_IDENTITY_NAME = 
                        EXPANDED_PROVISIONING_PROFILE = 
                        FILE_LIST = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/Objects/LinkFileList
                        FIXED_FILES_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/FixedFiles
                        FRAMEWORK_VERSION = A
                        FUSE_BUILD_PHASES = YES
                        FUSE_BUILD_SCRIPT_PHASES = NO
                        GCC3_VERSION = 3.3
                        GCC_C_LANGUAGE_STANDARD = gnu11
                        GCC_NO_COMMON_BLOCKS = YES
                        GCC_OBJC_LEGACY_DISPATCH = YES
                        GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++
                        GCC_PREPROCESSOR_DEFINITIONS = POD_CONFIGURATION_RELEASE=1  COCOAPODS=1
                        GCC_TREAT_WARNINGS_AS_ERRORS = NO
                        GCC_VERSION = com.apple.compilers.llvm.clang.1_0
                        GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0
                        GCC_WARN_64_TO_32_BIT_CONVERSION = YES
                        GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR
                        GCC_WARN_UNDECLARED_SELECTOR = YES
                        GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE
                        GCC_WARN_UNUSED_FUNCTION = YES
                        GCC_WARN_UNUSED_VARIABLE = YES
                        GENERATED_MODULEMAP_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/GeneratedModuleMaps-iphonesimulator
                        GENERATE_INFOPLIST_FILE = NO
                        GENERATE_INTERMEDIATE_TEXT_BASED_STUBS = YES
                        GENERATE_MASTER_OBJECT_FILE = NO
                        GENERATE_PKGINFO_FILE = NO
                        GENERATE_PROFILING_CODE = NO
                        GENERATE_TEXT_BASED_STUBS = NO
                        GID = 20
                        GROUP = staff
                        HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES
                        HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES
                        HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES
                        HEADERMAP_INCLUDES_PROJECT_HEADERS = YES
                        HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES
                        HEADERMAP_USES_VFS = NO
                        HIDE_BITCODE_SYMBOLS = YES
                        HOME = /Users/wjmetcalfiii
                        HOST_ARCH = arm64e
                        ICONV = /usr/bin/iconv
                        INFOPLIST_ENABLE_CFBUNDLEICONS_MERGE = YES
                        INFOPLIST_EXPAND_BUILD_SETTINGS = YES
                        INFOPLIST_OUTPUT_FORMAT = binary
                        INFOPLIST_PREPROCESS = NO
                        INLINE_PRIVATE_FRAMEWORKS = NO
                        INSTALLHDRS_COPY_PHASE = NO
                        INSTALLHDRS_SCRIPT_PHASE = NO
                        INSTALL_DIR = /tmp/Pods.dst
                        INSTALL_GROUP = staff
                        INSTALL_MODE_FLAG = u+w,go-w,a+rX
                        INSTALL_OWNER = wjmetcalfiii
                        INSTALL_ROOT = /tmp/Pods.dst
                        IPHONEOS_DEPLOYMENT_TARGET = 11.0
                        JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8
                        JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
                        JAVA_ARCHIVE_CLASSES = YES
                        JAVA_ARCHIVE_TYPE = JAR
                        JAVA_COMPILER = /usr/bin/javac
                        JAVA_FRAMEWORK_RESOURCES_DIRS = Resources
                        JAVA_JAR_FLAGS = cv
                        JAVA_SOURCE_SUBDIR = .
                        JAVA_USE_DEPENDENCIES = YES
                        JAVA_ZIP_FLAGS = -urg
                        JIKES_DEFAULT_FLAGS = +E +OLDCSO
                        KEEP_PRIVATE_EXTERNS = NO
                        LD_DEPENDENCY_INFO_FILE =
                        /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/Objects-normal/x86_64/Flutter_dependency_info.dat
                        LD_EXPORT_SYMBOLS = YES
                        LD_GENERATE_MAP_FILE = NO
                        LD_MAP_FILE_PATH = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/Flutter-LinkMap-normal-x86_64.txt
                        LD_NO_PIE = NO
                        LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES
                        LD_RUNPATH_SEARCH_PATHS =  @executable_path/Frameworks
                        LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Frameworks/Xcode3Core.framework/SharedSupport/Developer
                        LEX = lex
                        LIBRARY_DEXT_INSTALL_PATH = /Library/DriverExtensions
                        LIBRARY_FLAG_NOSPACE = YES
                        LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions
                        LINKER_DISPLAYS_MANGLED_NAMES = NO
                        LINK_FILE_LIST_normal_arm64 = 
                        LINK_FILE_LIST_normal_x86_64 = 
                        LINK_WITH_STANDARD_LIBRARIES = YES
                        LLVM_TARGET_TRIPLE_OS_VERSION = ios11.0
                        LLVM_TARGET_TRIPLE_SUFFIX = -simulator
                        LLVM_TARGET_TRIPLE_VENDOR = apple
                        LOCALIZABLE_CONTENT_DIR = 
                        LOCALIZATION_EXPORT_SUPPORTED = YES
                        LOCALIZATION_PREFERS_STRING_CATALOGS = NO
                        LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFCopyLocalizedString
                        LOCALIZED_STRING_SWIFTUI_SUPPORT = YES
                        LOCAL_ADMIN_APPS_DIR = /Applications/Utilities
                        LOCAL_APPS_DIR = /Applications
                        LOCAL_DEVELOPER_DIR = /Library/Developer
                        LOCAL_LIBRARY_DIR = /Library
                        LOCROOT = 
                        LOCSYMROOT = 
                        MAC_OS_X_PRODUCT_BUILD_VERSION = 23A344
                        MAC_OS_X_VERSION_ACTUAL = 140000
                        MAC_OS_X_VERSION_MAJOR = 140000
                        MAC_OS_X_VERSION_MINOR = 140000
                        MAKE_MERGEABLE = NO
                        MERGEABLE_LIBRARY = NO
                        MERGED_BINARY_TYPE = none
                        MERGE_LINKED_LIBRARIES = NO
                        METAL_LIBRARY_FILE_BASE = default
                        METAL_LIBRARY_OUTPUT_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter/
                        MODULE_CACHE_DIR = /Users/wjmetcalfiii/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
                        MTL_ENABLE_DEBUG_INFO = NO
                        MTL_FAST_MATH = YES
                        NATIVE_ARCH = arm64e
                        NATIVE_ARCH_32_BIT = i386
                        NATIVE_ARCH_64_BIT = arm64e
                        NATIVE_ARCH_ACTUAL = arm64e
                        NO_COMMON = YES
                        OBJC_ABI_VERSION = 2
                        OBJECT_FILE_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/Objects
                        OBJECT_FILE_DIR_normal = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/Objects-normal
                        OBJROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios
                        ONLY_ACTIVE_ARCH = NO
                        OS = MACOS
                        OSAC = /usr/bin/osacompile
                        PASCAL_STRINGS = YES
                        PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wjmetcalfiii/Downloads/flutter/bin
                        PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks
                        /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms
                        PKGINFO_FILE_PATH = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/PkgInfo
                        PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications
                        PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
                        PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Frameworks/Xcode3Core.framework/SharedSupport/Developer/Library
                        PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
                        PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools
                        PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr
                        PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
                        PLATFORM_DISPLAY_NAME = iOS Simulator
                        PLATFORM_NAME = iphonesimulator
                        PLATFORM_PREFERRED_ARCH = undefined_arch
                        PLATFORM_PRODUCT_BUILD_VERSION = 21A325
                        PLIST_FILE_OUTPUT_FORMAT = binary
                        PODS_BUILD_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios
                        PODS_CONFIGURATION_BUILD_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator
                        PODS_DEVELOPMENT_LANGUAGE = en
                        PODS_ROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Pods
                        PODS_TARGET_SRCROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Pods/../Flutter
                        PODS_XCFRAMEWORKS_BUILD_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/XCFrameworkIntermediates
                        PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
                        PRECOMP_DESTINATION_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/PrefixHeaders
                        PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
                        PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.Flutter
                        PRODUCT_MODULE_NAME = Flutter
                        PRODUCT_NAME = Flutter
                        PRODUCT_SETTINGS_PATH = 
                        PROFILING_CODE = NO
                        PROJECT = Pods
                        PROJECT_DERIVED_FILE_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/DerivedSources
                        PROJECT_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Pods
                        PROJECT_FILE_PATH = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Pods/Pods.xcodeproj
                        PROJECT_NAME = Pods
                        PROJECT_TEMP_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build
                        PROJECT_TEMP_ROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios
                        RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES
                        REMOVE_CVS_FROM_RESOURCES = YES
                        REMOVE_GIT_FROM_RESOURCES = YES
                        REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES
                        REMOVE_HG_FROM_RESOURCES = YES
                        REMOVE_STATIC_EXECUTABLES_FROM_EMBEDDED_BUNDLES = YES
                        REMOVE_SVN_FROM_RESOURCES = YES
                        REZ_COLLECTOR_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/ResourceManagerResources
                        REZ_OBJECTS_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/ResourceManagerResources/Objects
                        SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO
                        SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
                        SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
                        SDK_DIR_iphonesimulator17_0 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
                        SDK_NAME = iphonesimulator17.0
                        SDK_NAMES = iphonesimulator17.0
                        SDK_PRODUCT_BUILD_VERSION = 21A325
                        SDK_STAT_CACHE_ENABLE = YES
                        SDK_VERSION = 17.0
                        SDK_VERSION_ACTUAL = 170000
                        SDK_VERSION_MAJOR = 170000
                        SDK_VERSION_MINOR = 170000
                        SED = /usr/bin/sed
                        SEPARATE_STRIP = NO
                        SEPARATE_SYMBOL_EDIT = NO
                        SET_DIR_MODE_OWNER_GROUP = YES
                        SET_FILE_MODE_OWNER_GROUP = NO
                        SHALLOW_BUNDLE = NO
                        SHARED_DERIVED_FILE_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter/DerivedSources
                        SHARED_PRECOMPS_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/SharedPrecompiledHeaders
                        SKIP_INSTALL = YES
                        SOURCE_ROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Pods
                        SRCROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Pods
                        STRINGSDATA_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build/Objects-normal/x86_64
                        STRINGSDATA_ROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build
                        STRINGS_FILE_INFOPLIST_RENAME = YES
                        STRINGS_FILE_OUTPUT_ENCODING = binary
                        STRIP_BITCODE_FROM_COPIED_FILES = NO
                        STRIP_INSTALLED_PRODUCT = NO
                        STRIP_STYLE = all
                        STRIP_SWIFT_SYMBOLS = YES
                        SUPPORTED_DEVICE_FAMILIES = 1,2
                        SUPPORTED_PLATFORMS = iphonesimulator iphoneos
                        SUPPORTS_TEXT_BASED_API = NO
                        SWIFT_COMPILATION_MODE = wholemodule
                        SWIFT_EMIT_LOC_STRINGS = NO
                        SWIFT_OPTIMIZATION_LEVEL = -O
                        SWIFT_PLATFORM_TARGET_PREFIX = ios
                        SWIFT_VERSION = 5.0
                        SYMROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/build
                        SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities
                        SYSTEM_APPS_DIR = /Applications
                        SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices
                        SYSTEM_DEMOS_DIR = /Applications/Extras
                        SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications
                        SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin
                        SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples
                        SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer
                        SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library
                        SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools
                        SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools
                        SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools
                        SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes
                        SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools
                        SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools
                        SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools
                        SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr
                        SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities
                        SYSTEM_DEXT_INSTALL_PATH = /System/Library/DriverExtensions
                        SYSTEM_DOCUMENTATION_DIR = /Library/Documentation
                        SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions
                        SYSTEM_LIBRARY_DIR = /System/Library
                        TAPI_DEMANGLE = YES
                        TAPI_ENABLE_PROJECT_HEADERS = NO
                        TAPI_LANGUAGE = objective-c
                        TAPI_LANGUAGE_STANDARD = compiler-default
                        TAPI_USE_SRCROOT = YES
                        TAPI_VERIFY_MODE = Pedantic
                        TARGETED_DEVICE_FAMILY = 1,2
                        TARGETNAME = Flutter
                        TARGET_BUILD_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Release-iphonesimulator/Flutter
                        TARGET_NAME = Flutter
                        TARGET_TEMP_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build
                        TEMP_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build
                        TEMP_FILES_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build
                        TEMP_FILE_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/Pods.build/Release-iphonesimulator/Flutter.build
                        TEMP_ROOT = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios
                        TEST_FRAMEWORK_SEARCH_PATHS =  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks
                        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/Developer/Library/Frameworks
                        TEST_LIBRARY_SEARCH_PATHS =  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib
                        TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
                        TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO
                        UID = 501
                        UNINSTALLED_PRODUCTS_DIR = /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/UninstalledProducts
                        UNSTRIPPED_PRODUCT = NO
                        USER = wjmetcalfiii
                        USER_APPS_DIR = /Users/wjmetcalfiii/Applications
                        USER_LIBRARY_DIR = /Users/wjmetcalfiii/Library
                        USE_DYNAMIC_NO_PIC = YES
                        USE_HEADERMAP = YES
                        USE_HEADER_SYMLINKS = NO
                        USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES
                        VALIDATE_PRODUCT = YES
                        VALID_ARCHS = arm64 arm64e i386 x86_64
                        VERBOSE_PBXCP = NO
                        VERSION_INFO_BUILDER = wjmetcalfiii
                        VERSION_INFO_FILE = Flutter_vers.c
                        VERSION_INFO_STRING = "@(#)PROGRAM:Flutter  PROJECT:Pods-"
                        WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO
                        XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode
                        XCODE_PRODUCT_BUILD_VERSION = 15A240d
                        XCODE_VERSION_ACTUAL = 1500
                        XCODE_VERSION_MAJOR = 1500
                        XCODE_VERSION_MINOR = 1500
                        XPCSERVICES_FOLDER_PATH = /XPCServices
                        YACC = yacc
                        arch = x86_64
                        variant = normal
[  +13 ms] executing: /usr/bin/xcode-select --print-path
[   +3 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[        ] /Applications/Xcode.app/Contents/Developer
[        ] executing: /usr/bin/arch -arm64e xcrun osascript -l JavaScript /Users/wjmetcalfiii/Downloads/flutter/packages/flutter_tools/bin/xcode_debug.js check-workspace-opened --xcode-path
/Applications/Xcode.app --project-path /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcodeproj --workspace-path
/Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcworkspace --verbose
[  +95 ms] {"status":false,"errorMessage":"Failed to get workspace.","debugResult":null}

           {"command":"check-workspace-opened","xcodePath":"/Applications/Xcode.app","projectPath":"/Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcodeproj","projectName":null,"expected
           ConfigurationBuildDir":null,"workspacePath":"/Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcworkspace","targetDestinationId":null,"targetSchemeName":null,"skipBuilding":null
           ,"launchArguments":null,"closeWindowOnStop":null,"promptToSaveBeforeClose":null,"verbose":true}
[        ] Error checking if project opened in Xcode: Failed to get workspace.
[        ] executing: open -a /Applications/Xcode.app -g -j -F /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcworkspace
[  +47 ms] executing: /usr/bin/arch -arm64e xcrun osascript -l JavaScript /Users/wjmetcalfiii/Downloads/flutter/packages/flutter_tools/bin/xcode_debug.js debug --xcode-path /Applications/Xcode.app
--project-path /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcodeproj --workspace-path /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcworkspace --project-name
Runner --expected-configuration-build-dir /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/iphoneos --device-id 00008120-000C4C3111A2201E --scheme Runner --skip-building --launch-args
["--enable-dart-profiling"] --verbose
[  +23 ms] stderr:
{"command":"debug","xcodePath":"/Applications/Xcode.app","projectPath":"/Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcodeproj","projectName":"Runner","expectedConfigurationBuildDir":"
/Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/iphoneos","workspacePath":"/Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcworkspace","targetDestinationId":"00008120-
000C4C3111A2201E","targetSchemeName":"Runner","skipBuilding":true,"launchArguments":["--enable-dart-profiling"],"closeWindowOnStop":null,"promptToSaveBeforeClose":null,"verbose":true}
[ +339 ms] stderr: Workspace: /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/ios/Runner.xcworkspace
[ +146 ms] stderr: Device: My Mac (00006020-001E515C1AD3C01E)
[  +63 ms] stderr: Device: William’s iPhone (00008120-000C4C3111A2201E)
[ +114 ms] stderr: CONFIGURATION_BUILD_DIR: /Users/wjmetcalfiii/AndroidStudioProjects/sample_testing/build/ios/iphoneos
[  +15 ms] stderr: Action result status: not yet started
[ +521 ms] {"status":true,"errorMessage":null,"debugResult":{"completed":false,"status":"running","errorMessage":null}}
[   +4 ms] Application launched on the device. Waiting for Dart VM Service url.
[   +4 ms] Checking for advertised Dart VM Services...
[+28681 ms] [ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend.
[  +48 ms] VM Service URL on device: http://127.0.0.1:53233/EpCeUBA8ZM4=/
[   +2 ms] Attempting to forward device port 53233 to host port 63481
[        ] executing: /Users/wjmetcalfiii/Downloads/flutter/bin/cache/artifacts/usbmuxd/iproxy 63481:53233 --udid 00008120-000C4C3111A2201E --debug
[ +318 ms] [ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/user_accel' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages
must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
[        ] See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
[   +1 ms] [ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/accelerometer' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages
must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
[        ] See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
[  +16 ms] [ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/gyroscope' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must
be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
[        ] See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
[   +3 ms] [ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.fluttercommunity.plus/sensors/magnetometer' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages
must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
[        ] See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
[ +628 ms] Checking for available port on com.example.sampleTesting._dartVmService._tcp.local
[   +2 ms] Checking for authentication code for com.example.sampleTesting._dartVmService._tcp.local
[   +4 ms] Attempting to forward device port 53233 to host port 63482
[        ] executing: /Users/wjmetcalfiii/Downloads/flutter/bin/cache/artifacts/usbmuxd/iproxy 63482:53233 --udid 00008120-000C4C3111A2201E --debug
[  +29 ms] Forwarded port ForwardedPort HOST:63481 to DEVICE:53233
[        ] Forwarded host port 63481 to device port 53233 for VM Service
[   +1 ms] Installing and launching... (completed in 31.7s)

Flutter Doctor

wjmetcalfiii@Jims-Mac-mini ios % flutter doctor --verbose
[✓] Flutter (Channel beta, 3.16.0-0.3.pre, on macOS 14.0 23A344 darwin-arm64, locale en-US)
    • Flutter version 3.16.0-0.3.pre on channel beta at /Users/wjmetcalfiii/Downloads/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 476aa717cd (2 weeks ago), 2023-10-19 20:10:52 -0500
    • Engine revision 91cde06da0
    • Dart version 3.2.0 (build 3.2.0-210.3.beta)
    • DevTools version 2.28.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/wjmetcalfiii/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.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • 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.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.82.0)
    • VS Code at /Users/wjmetcalfiii/Downloads/Visual Studio Code 2.app/Contents
    • Flutter extension version 3.72.0

[✓] VS Code (version 1.81.1)
    • VS Code at /Users/wjmetcalfiii/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.72.0

[✓] Connected device (3 available)
    • William’s iPhone (mobile) • 00008120-000C4C3111A2201E • ios            • iOS 17.0.3 21A360
    • macOS (desktop)           • macos                     • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)              • chrome                    • web-javascript • Google Chrome 118.0.5993.117

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Checklist before submitting a bug

wjmetcalfiiii commented 10 months ago

I upgraded to Flutter version 3.13.9 on channel stable and still have the same problem.

vbuberen commented 10 months ago

Just tried to reproduce the issue and it seems it reproduces on 3.16.0 and 3.13.x versions, while everything is Ok on 3.10.x versions. But what is interesting is that despite errors in console I see that example app works Ok and shows values from sensors anyway.

I will work on a fix for this issue and in the meantime can suggest to those struggling with this problem to use older Flutter version.

vbuberen commented 10 months ago

In fact I see that thanks for this line in of open PRs the issue is resolved thanks to a contributor taking care of threading requirements.

vbuberen commented 10 months ago

Closed via #2248

Will be released as sensors_plus 4.0.1 in the following days after documentation for the package is also updated.