<h3 dir="auto">flutter run -v</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter run -v
[  +20 ms] [/Users/hao/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/alpha
[        ] [/Users/hao/Documents/flutter/] git ls-remote --get-url origin
[   +7 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] bbcfb8d51ab12a51f5bc7cedc6d6725b06fac2dc
[        ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%ar
[   +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 12 days ago
[ +130 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[  +80 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[        ] 2.3
[  +90 ms] Listing devices using /Users/hao/Library/Android/sdk/platform-tools/adb
[        ] /Users/hao/Library/Android/sdk/platform-tools/adb devices -l
[  +14 ms] Exit code 0 from: /Users/hao/Library/Android/sdk/platform-tools/adb devices -l
[        ] List of devices attached
[ +886 ms] /usr/bin/xcrun simctl list --json devices
[ +575 ms] Launching lib/main.dart on iPhone 7 Plus in debug mode...
[   +1 ms] /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier
[  +80 ms] Exit code 0 from: /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier
[        ] $(PRODUCT_BUNDLE_IDENTIFIER)
[        ] /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings
[ +648 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings
[        ] Build settings for action build and target Runner:
               ACTION = build
               AD_HOC_CODE_SIGNING_ALLOWED = NO
               ALTERNATE_GROUP = staff
               ALTERNATE_MODE = u+w,go-w,a+rX
               ALTERNATE_OWNER = hao
               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
               ARCHS = arm64
               ARCHS_STANDARD = armv7 arm64
               ARCHS_STANDARD_32_64_BIT = armv7 arm64
               ARCHS_STANDARD_32_BIT = armv7
               ARCHS_STANDARD_64_BIT = arm64
               ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64
               ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64
               ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
               AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator
               BITCODE_GENERATION_MODE = marker
               BUILD_ACTIVE_RESOURCES_ONLY = NO
               BUILD_COMPONENTS = headers build
               BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios
               BUILD_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               BUILD_STYLE = 
               BUILD_VARIANTS = normal
               BUILT_PRODUCTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               CACHE_ROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode
               CCHROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode
               CHMOD = /bin/chmod
               CHOWN = /usr/sbin/chown
               CLANG_ANALYZER_NONNULL = YES
               CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
               CLANG_CXX_LIBRARY = libc++
               CLANG_ENABLE_MODULES = YES
               CLANG_ENABLE_OBJC_ARC = YES
               CLANG_WARN_BOOL_CONVERSION = YES
               CLANG_WARN_CONSTANT_CONVERSION = YES
               CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
               CLANG_WARN_EMPTY_BODY = YES
               CLANG_WARN_ENUM_CONVERSION = YES
               CLANG_WARN_INFINITE_RECURSION = YES
               CLANG_WARN_INT_CONVERSION = YES
               CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
               CLANG_WARN_SUSPICIOUS_MOVE = YES
               CLANG_WARN_UNREACHABLE_CODE = YES
               CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
               CLASS_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses
               CLEAN_PRECOMPS = YES
               CLONE_HEADERS = NO
               CODESIGNING_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app
               CODE_SIGNING_ALLOWED = YES
               CODE_SIGNING_REQUIRED = YES
               CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext
               CODE_SIGN_IDENTITY = iPhone Developer
               COLOR_DIAGNOSTICS = NO
               COMBINE_HIDPI_IMAGES = NO
               COMPOSITE_SDK_DIRS = /Users/hao/Documents/flutter_proj/myapp/build/ios/CompositeSDKs
               COMPRESS_PNG_FILES = YES
               CONFIGURATION = Release
               CONFIGURATION_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               CONFIGURATION_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos
               CONTENTS_FOLDER_PATH = Runner.app
               COPYING_PRESERVES_HFS_DATA = NO
               COPY_HEADERS_RUN_UNIFDEF = NO
               COPY_PHASE_STRIP = NO
               COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES
               CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
               CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator
               CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk
               CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator10.1
               CP = /bin/cp
               CREATE_INFOPLIST_SECTION_IN_BINARY = NO
               CURRENT_ARCH = arm64
               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_KEXT_INSTALL_PATH = /System/Library/Extensions
               DEFINES_MODULE = NO
               DEPLOYMENT_LOCATION = NO
               DEPLOYMENT_POSTPROCESSING = NO
               DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET
               DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min
               DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min=
               DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET
               DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1
               DERIVED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources
               DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources
               DERIVED_SOURCES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.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 = English
               DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation
               DO_HEADER_SCANNING_IN_JAM = NO
               DSTROOT = /tmp/Runner.dst
               DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
               DWARF_DSYM_FILE_NAME = Runner.app.dSYM
               DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO
               DWARF_DSYM_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               EFFECTIVE_PLATFORM_NAME = -iphoneos
               EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
               EMBEDDED_PROFILE_NAME = embedded.mobileprovision
               EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO
               ENABLE_BITCODE = NO
               ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES
               ENABLE_HEADER_DEPENDENCIES = YES
               ENABLE_NS_ASSERTIONS = NO
               ENABLE_ON_DEMAND_RESOURCES = YES
               ENABLE_STRICT_OBJC_MSGSEND = YES
               ENABLE_TESTABILITY = NO
               ENTITLEMENTS_ALLOWED = YES
               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
               EXECUTABLES_FOLDER_PATH = Runner.app/Executables
               EXECUTABLE_FOLDER_PATH = Runner.app
               EXECUTABLE_NAME = Runner
               EXECUTABLE_PATH = Runner.app/Runner
               EXPANDED_CODE_SIGN_IDENTITY = 
               EXPANDED_CODE_SIGN_IDENTITY_NAME = 
               EXPANDED_PROVISIONING_PROFILE = 
               FILE_LIST = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList
               FIXED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles
               FLUTTER_APPLICATION_PATH = /Users/hao/Documents/flutter_proj/myapp
               FLUTTER_BUILD_DIR = build
               FLUTTER_BUILD_MODE = debug
               FLUTTER_FRAMEWORK_DIR = /Users/hao/Documents/flutter/bin/cache/artifacts/engine/ios
               FLUTTER_ROOT = /Users/hao/Documents/flutter
               FLUTTER_TARGET = lib/main.dart
               FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks
               FRAMEWORK_FLAG_PREFIX = -framework
               FRAMEWORK_SEARCH_PATHS =  /Users/hao/Documents/flutter_proj/myapp/ios/Flutter
               FRAMEWORK_VERSION = A
               FULL_PRODUCT_NAME = Runner.app
               GCC3_VERSION = 3.3
               GCC_C_LANGUAGE_STANDARD = gnu99
               GCC_INLINES_ARE_PRIVATE_EXTERN = YES
               GCC_NO_COMMON_BLOCKS = YES
               GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++
               GCC_SYMBOLS_PRIVATE_EXTERN = YES
               GCC_THUMB_SUPPORT = YES
               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
               GENERATE_MASTER_OBJECT_FILE = NO
               GENERATE_PKGINFO_FILE = YES
               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/hao
               ICONV = /usr/bin/iconv
               INFOPLIST_EXPAND_BUILD_SETTINGS = YES
               INFOPLIST_FILE = Runner/Info.plist
               INFOPLIST_OUTPUT_FORMAT = binary
               INFOPLIST_PATH = Runner.app/Info.plist
               INFOPLIST_PREPROCESS = NO
               INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings
               INLINE_PRIVATE_FRAMEWORKS = NO
               INSTALLHDRS_COPY_PHASE = NO
               INSTALLHDRS_SCRIPT_PHASE = NO
               INSTALL_DIR = /tmp/Runner.dst/Applications
               INSTALL_GROUP = staff
               INSTALL_MODE_FLAG = u+w,go-w,a+rX
               INSTALL_OWNER = hao
               INSTALL_PATH = /Applications
               INSTALL_ROOT = /tmp/Runner.dst
               IPHONEOS_DEPLOYMENT_TARGET = 8.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_FOLDER_PATH = Runner.app/Java
               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/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat
               LD_GENERATE_MAP_FILE = NO
               LD_MAP_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.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/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
               LEX = lex
               LIBRARY_FLAG_NOSPACE = YES
               LIBRARY_FLAG_PREFIX = -l
               LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions
               LIBRARY_SEARCH_PATHS =  /Users/hao/Documents/flutter_proj/myapp/ios/Flutter
               LINKER_DISPLAYS_MANGLED_NAMES = NO
               LINK_FILE_LIST_normal_arm64 = 
               LINK_WITH_STANDARD_LIBRARIES = YES
               LOCALIZABLE_CONTENT_DIR = 
               LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj
               LOCAL_ADMIN_APPS_DIR = /Applications/Utilities
               LOCAL_APPS_DIR = /Applications
               LOCAL_DEVELOPER_DIR = /Library/Developer
               LOCAL_LIBRARY_DIR = /Library
               LOCROOT = 
               LOCSYMROOT = 
               MACH_O_TYPE = mh_execute
               MAC_OS_X_PRODUCT_BUILD_VERSION = 16F73
               MAC_OS_X_VERSION_ACTUAL = 101205
               MAC_OS_X_VERSION_MAJOR = 101200
               MAC_OS_X_VERSION_MINOR = 1205
               METAL_LIBRARY_FILE_BASE = default
               METAL_LIBRARY_OUTPUT_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app
               MODULE_CACHE_DIR = /Users/hao/Library/Developer/Xcode/DerivedData/ModuleCache
               MTL_ENABLE_DEBUG_INFO = NO
               NATIVE_ARCH = armv7
               NATIVE_ARCH_32_BIT = i386
               NATIVE_ARCH_64_BIT = x86_64
               NATIVE_ARCH_ACTUAL = x86_64
               NO_COMMON = YES
               OBJECT_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects
               OBJECT_FILE_DIR_normal = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal
               OBJROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               ONLY_ACTIVE_ARCH = NO
               OS = MACOS
               OSAC = /usr/bin/osacompile
               PACKAGE_TYPE = com.apple.package-type.wrapper.application
               PASCAL_STRINGS = YES
               PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/hao/Documents/go/bin:/Users/hao/bin:/Users/hao/Documents/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
               PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist
               PFE_FILE_C_DIALECTS = objective-c
               PKGINFO_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo
               PKGINFO_PATH = Runner.app/PkgInfo
               PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
               PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
               PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library
               PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
               PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
               PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
               PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
               PLATFORM_DISPLAY_NAME = iOS
               PLATFORM_NAME = iphoneos
               PLATFORM_PREFERRED_ARCH = arm64
               PLATFORM_PRODUCT_BUILD_VERSION = 14B72
               PLIST_FILE_OUTPUT_FORMAT = binary
               PLUGINS_FOLDER_PATH = Runner.app/PlugIns
               PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
               PRECOMP_DESTINATION_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders
               PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
               PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders
               PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.myapp
               PRODUCT_MODULE_NAME = Runner
               PRODUCT_NAME = Runner
               PRODUCT_SETTINGS_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info.plist
               PRODUCT_TYPE = com.apple.product-type.application
               PROFILING_CODE = NO
               PROJECT = Runner
               PROJECT_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/DerivedSources
               PROJECT_DIR = /Users/hao/Documents/flutter_proj/myapp/ios
               PROJECT_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj
               PROJECT_NAME = Runner
               PROJECT_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build
               PROJECT_TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               PROVISIONING_PROFILE_REQUIRED = YES
               PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers
               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_SVN_FROM_RESOURCES = YES
               RESOURCE_RULES_REQUIRED = YES
               REZ_COLLECTOR_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources
               REZ_OBJECTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects
               SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO
               SCRIPTS_FOLDER_PATH = Runner.app/Scripts
               SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
               SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
               SDK_DIR_iphoneos10_1 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
               SDK_NAME = iphoneos10.1
               SDK_NAMES = iphoneos10.1
               SDK_PRODUCT_BUILD_VERSION = 14B72
               SDK_VERSION = 10.1
               SDK_VERSION_ACTUAL = 100100
               SDK_VERSION_MAJOR = 100000
               SDK_VERSION_MINOR = 100
               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 = YES
               SHARED_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/DerivedSources
               SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks
               SHARED_PRECOMPS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/SharedPrecompiledHeaders
               SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport
               SKIP_INSTALL = NO
               SOURCE_ROOT = /Users/hao/Documents/flutter_proj/myapp/ios
               SRCROOT = /Users/hao/Documents/flutter_proj/myapp/ios
               STRINGS_FILE_OUTPUT_ENCODING = binary
               STRIP_BITCODE_FROM_COPIED_FILES = YES
               STRIP_INSTALLED_PRODUCT = YES
               STRIP_STYLE = all
               SUPPORTED_DEVICE_FAMILIES = 1,2
               SUPPORTED_PLATFORMS = iphonesimulator iphoneos
               SUPPORTS_TEXT_BASED_API = NO
               SWIFT_PLATFORM_TARGET_PREFIX = ios
               SYMROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               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_DOCUMENTATION_DIR = /Library/Documentation
               SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions
               SYSTEM_LIBRARY_DIR = /System/Library
               TAPI_VERIFY_MODE = ErrorsOnly
               TARGETED_DEVICE_FAMILY = 1,2
               TARGETNAME = Runner
               TARGET_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               TARGET_NAME = Runner
               TARGET_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
               TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO
               UID = 501
               UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app
               UNSTRIPPED_PRODUCT = NO
               USER = hao
               USER_APPS_DIR = /Users/hao/Applications
               USER_LIBRARY_DIR = /Users/hao/Library
               USE_DYNAMIC_NO_PIC = YES
               USE_HEADERMAP = YES
               USE_HEADER_SYMLINKS = NO
               VALIDATE_PRODUCT = YES
               VALID_ARCHS = arm64 armv7 armv7s
               VERBOSE_PBXCP = NO
               VERSIONPLIST_PATH = Runner.app/version.plist
               VERSION_INFO_BUILDER = hao
               VERSION_INFO_FILE = Runner_vers.c
               VERSION_INFO_STRING = &quot;@(#)PROGRAM:Runner  PROJECT:Runner-&quot;
               WRAPPER_EXTENSION = app
               WRAPPER_NAME = Runner.app
               WRAPPER_SUFFIX = .app
               WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO
               XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode
               XCODE_PRODUCT_BUILD_VERSION = 8B62
               XCODE_VERSION_ACTUAL = 0810
               XCODE_VERSION_MAJOR = 0800
               XCODE_VERSION_MINOR = 0810
               XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices
               YACC = yacc
               arch = arm64
               variant = normal
[  +73 ms] tail -n 0 -F /Users/hao/Library/Logs/CoreSimulator/6D2E7B8F-9C0D-41BB-BA49-E6F70B985114/system.log
[   +2 ms] Building Runner.app for 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114.
[   +2 ms] Building build/app.flx
[  +48 ms] tail -n 0 -F /private/var/log/system.log
[ +129 ms] which zip
[   +5 ms] Encoding zip file to build/app.flx
[  +14 ms] [build/flx/] zip -q /Users/hao/Documents/flutter_proj/myapp/build/app.flx fonts/MaterialIcons-Regular.ttf AssetManifest.json FontManifest.json LICENSE
[  +28 ms] [build/flx/] zip -q -0 /Users/hao/Documents/flutter_proj/myapp/build/app.flx images/lake.jpg
[  +13 ms] Built build/app.flx.
[   +1 ms] /usr/bin/xcrun simctl get_app_container 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp
[        ] /usr/bin/killall Runner
[  +31 ms] [DEVICE LOG] Aug 14 07:12:49 bogon SpringBoard[41957]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
[  +11 ms] [DEVICE LOG] Aug 14 07:12:49 --- last message repeated 1 time ---
[   +3 ms] [DEVICE LOG] Aug 14 07:12:49 bogon com.apple.CoreSimulator.SimDevice.6D2E7B8F-9C0D-41BB-BA49-E6F70B985114.launchd_sim[41940] (UIKitApplication:com.yourcompany.myapp[0xd351][42266]): Service exited due to Terminated: 15
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get short BSD proc info for 42266: No such file or directory
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get proc info for 42266: No such file or directory
[  +38 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86111c0&gt; registered
[  +18 ms] /usr/bin/xcrun simctl launch 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp --enable-dart-profiling --flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx --dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart --packages=/Users/hao/Documents/flutter_proj/myapp/.packages --enable-checked-mode --observatory-port=8100 --diagnostic-port=8101
[  +60 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb204b50&gt; registered
[   +1 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Requesting launch of com.yourcompany.myapp with options: {
[        ] [DEVICE LOG]             arguments =     (
[   +1 ms] [DEVICE LOG]                 &quot;--enable-dart-profiling&quot;,
[        ] [DEVICE LOG]                 &quot;--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx&quot;,
[        ] [DEVICE LOG]                 &quot;--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart&quot;,
[        ] [DEVICE LOG]                 &quot;--packages=/Users/hao/Documents/flutter_proj/myapp/.packages&quot;,
[        ] [DEVICE LOG]                 &quot;--enable-checked-mode&quot;,
[        ] [DEVICE LOG]                 &quot;--observatory-port=8100&quot;,
[        ] [DEVICE LOG]                 &quot;--diagnostic-port=8101&quot;
[        ] [DEVICE LOG]             );
[        ] [DEVICE LOG]             environment =     {
[        ] [DEVICE LOG]             };
[        ] [DEVICE LOG]         }
[        ] CoreSimulatorBridge: Requesting launch of com.yourcompany.myapp with options: {
[        ]          arguments =     (
[        ]              &quot;--enable-dart-profiling&quot;,
[        ]              &quot;--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx&quot;,
[        ]              &quot;--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart&quot;,
[        ]              &quot;--packages=/Users/hao/Documents/flutter_proj/myapp/.packages&quot;,
[        ]              &quot;--enable-checked-mode&quot;,
[        ]              &quot;--observatory-port=8100&quot;,
[        ]              &quot;--diagnostic-port=8101&quot;
[        ]          );
[        ]          environment =     {
[        ]          };
[        ]      }
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Sending request to open &quot;com.yourcompany.myapp&quot;
[        ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Sending request to open &quot;com.yourcompany.myapp&quot;
[  +35 ms] [DEVICE LOG] Aug 14 07:12:49 bogon assertiond[41961]: notify_suspend_pid() failed with error 7
[  +18 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt;
[        ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt;
[   +3 ms] com.yourcompany.myapp: 42885
[        ] Waiting for observatory port to be available...
[  +69 ms] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: metadata shared cached uuid is null (using logd's shared cache info) Runner (42885)
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000'
[   +2 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: assertion failed: 16F73 14B72: libxpc.dylib + 62597 [17F6B510-0FB1-30D3-B29C-D74A5D63719E]: 0x7d
[  +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e680&gt; registered
[  +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add &quot;remote-notification&quot; to the list of your supported UIBackgroundModes in your Info.plist.
[        ] You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add &quot;remote-notification&quot; to the list of your supported UIBackgroundModes in your Info.plist.
[  +13 ms] [DEVICE LOG] Aug 14 07:12:49 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[  +71 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Diagnostic server listening on http://127.0.0.1:8101/
[  +14 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Observatory listening on http://127.0.0.1:8100/
[   +1 ms] Observatory URL on device: http://127.0.0.1:8100/
[  +20 ms] Connected to service protocol: http://127.0.0.1:8100/
[   +2 ms] getVM: {}
[+2979 ms] [DEVICE LOG] Aug 14 07:12:52 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e730&gt; registered
[ +777 ms] [DEVICE LOG] Aug 14 07:12:53 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e7e0&gt; registered
[  +29 ms] [DEVICE LOG] Aug 14 07:12:53 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3189 ms] [DEVICE LOG] Aug 14 07:12:56 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713130&gt; registered
[ +783 ms] [DEVICE LOG] Aug 14 07:12:57 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e890&gt; registered
[  +26 ms] [DEVICE LOG] Aug 14 07:12:57 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3194 ms] [DEVICE LOG] Aug 14 07:13:00 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e940&gt; registered
[ +344 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 3 times ---
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: ReceiveMessageAndFileDescriptor
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Calling select...
[  +42 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 1 time ---
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGHUP handler.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGCHLD handler.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Unblocking SIGCHLD.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Sending file descriptor and waiting on initial connection
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: send master fd and child pid 42909
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: All done. Waiting for client to disconnect or child to die.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: select returned 1, error = File exists
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: assuming socket is readable
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Calling select...
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: calling recvmsg...
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4, errno=n/a
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Got a fd
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Return 4
[  +45 ms] [SYS LOG] Aug 14 07:13:01 bogon login[42909]: USER_PROCESS: 42909 ttys002
[ +149 ms] [SYS LOG] Aug 14 07:13:01 bogon com.apple.usbmuxd[42859]: notice    USBMuxBonjourDeviceListenerCreate: LOCKDOWN_V2_BONJOUR_SERVICE_NAME is _apple-mobdev2._tcp,8f2707dd
[ +210 ms] [DEVICE LOG] Aug 14 07:13:01 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e240&gt; registered
[  +28 ms] [DEVICE LOG] Aug 14 07:13:01 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+2226 ms] [DEVICE LOG] Aug 14 07:13:03 bogon routined[41946]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
[ +948 ms] [DEVICE LOG] Aug 14 07:13:04 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86142e0&gt; registered
[ +805 ms] [DEVICE LOG] Aug 14 07:13:05 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb305bb0&gt; registered
[  +32 ms] [DEVICE LOG] Aug 14 07:13:05 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3164 ms] [DEVICE LOG] Aug 14 07:13:08 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e2f0&gt; registered
[ +906 ms] [DEVICE LOG] Aug 14 07:13:09 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713640&gt; registered
[  +37 ms] [DEVICE LOG] Aug 14 07:13:09 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3058 ms] [DEVICE LOG] Aug 14 07:13:12 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb205120&gt; registered
[ +753 ms] [DEVICE LOG] Aug 14 07:13:13 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e3a0&gt; registered
[  +26 ms] [DEVICE LOG] Aug 14 07:13:13 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3221 ms] [DEVICE LOG] Aug 14 07:13:16 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de87148f0&gt; registered
[ +751 ms] [DEVICE LOG] Aug 14 07:13:17 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e450&gt; registered
[  +32 ms] [DEVICE LOG] Aug 14 07:13:17 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+1445 ms] [SYS LOG] Aug 14 07:13:19 --- last message repeated 4 times ---
[        ] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42859]: notice    Idle, stopping.
[   +7 ms] [SYS LOG] Aug 14 07:13:19 bogon xpcproxy[42943]: libcoreservices: _dirhelper_userdir: 523: bootstrap_look_up returned 268435459
[  +12 ms] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42943]: notice    usbmuxd-374.913 on Mar 17 2017 at 17:43:50, running 64 bit
[ +777 ms] Request to Dart VM Service timed out: getVM({})
Unhandled exception:
TimeoutException: Request to Dart VM Service timed out: getVM({})
#0      VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:735)
&lt;asynchronous suspension&gt;
#1      VM._fetchDirect (package:flutter_tools/src/vmservice.dart:566)
&lt;asynchronous suspension&gt;
#2      ServiceObject.reload (package:flutter_tools/src/vmservice.dart:414)
&lt;asynchronous suspension&gt;
#3      VMService.getVM (package:flutter_tools/src/vmservice.dart:243)
#4      FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:81)
&lt;asynchronous suspension&gt;
#5      ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:543)
&lt;asynchronous suspension&gt;
#6      HotRunner.attach (package:flutter_tools/src/run_hot.dart:106)
&lt;asynchronous suspension&gt;
#7      HotRunner.run (package:flutter_tools/src/run_hot.dart:206)
&lt;asynchronous suspension&gt;
#8      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:339)
&lt;asynchronous suspension&gt;
#9      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:220)
&lt;asynchronous suspension&gt;
#10     RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:227)
&lt;asynchronous suspension&gt;
#11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:162)
&lt;asynchronous suspension&gt;
#12     CommandRunner.runCommand (package:args/command_runner.dart:194)
&lt;asynchronous suspension&gt;
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:277)
&lt;asynchronous suspension&gt;
#14     CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109)
#15     new Future.sync (dart:async/future.dart:222)
#16     CommandRunner.run (package:args/command_runner.dart:109)
#17     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:161)
#18     run.&lt;anonymous closure&gt; (package:flutter_tools/executable.dart:142)
&lt;asynchronous suspension&gt;
#19     AppContext._run (package:flutter_tools/src/base/context.dart:76)
&lt;asynchronous suspension&gt;
#20     AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66)
#21     _rootRun (dart:async/zone.dart:1120)
#22     _CustomZone.run (dart:async/zone.dart:1001)
#23     runZoned (dart:async/zone.dart:1467)
#24     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25     run (package:flutter_tools/executable.dart:114)
&lt;asynchronous suspension&gt;
#26     main (package:flutter_tools/executable.dart:67)
&lt;asynchronous suspension&gt;
#27     main (file:///Users/hao/Documents/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#28     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/isolate_patch.dart:263)
#29     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)"><pre class="notranslate"><code class="notranslate">$ flutter run -v
[  +20 ms] [/Users/hao/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/alpha
[        ] [/Users/hao/Documents/flutter/] git ls-remote --get-url origin
[   +7 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] bbcfb8d51ab12a51f5bc7cedc6d6725b06fac2dc
[        ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%ar
[   +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 12 days ago
[ +130 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[  +80 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[        ] 2.3
[  +90 ms] Listing devices using /Users/hao/Library/Android/sdk/platform-tools/adb
[        ] /Users/hao/Library/Android/sdk/platform-tools/adb devices -l
[  +14 ms] Exit code 0 from: /Users/hao/Library/Android/sdk/platform-tools/adb devices -l
[        ] List of devices attached
[ +886 ms] /usr/bin/xcrun simctl list --json devices
[ +575 ms] Launching lib/main.dart on iPhone 7 Plus in debug mode...
[   +1 ms] /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier
[  +80 ms] Exit code 0 from: /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier
[        ] $(PRODUCT_BUNDLE_IDENTIFIER)
[        ] /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings
[ +648 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings
[        ] Build settings for action build and target Runner:
               ACTION = build
               AD_HOC_CODE_SIGNING_ALLOWED = NO
               ALTERNATE_GROUP = staff
               ALTERNATE_MODE = u+w,go-w,a+rX
               ALTERNATE_OWNER = hao
               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
               ARCHS = arm64
               ARCHS_STANDARD = armv7 arm64
               ARCHS_STANDARD_32_64_BIT = armv7 arm64
               ARCHS_STANDARD_32_BIT = armv7
               ARCHS_STANDARD_64_BIT = arm64
               ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64
               ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64
               ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
               AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator
               BITCODE_GENERATION_MODE = marker
               BUILD_ACTIVE_RESOURCES_ONLY = NO
               BUILD_COMPONENTS = headers build
               BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios
               BUILD_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               BUILD_STYLE = 
               BUILD_VARIANTS = normal
               BUILT_PRODUCTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               CACHE_ROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode
               CCHROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode
               CHMOD = /bin/chmod
               CHOWN = /usr/sbin/chown
               CLANG_ANALYZER_NONNULL = YES
               CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
               CLANG_CXX_LIBRARY = libc++
               CLANG_ENABLE_MODULES = YES
               CLANG_ENABLE_OBJC_ARC = YES
               CLANG_WARN_BOOL_CONVERSION = YES
               CLANG_WARN_CONSTANT_CONVERSION = YES
               CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
               CLANG_WARN_EMPTY_BODY = YES
               CLANG_WARN_ENUM_CONVERSION = YES
               CLANG_WARN_INFINITE_RECURSION = YES
               CLANG_WARN_INT_CONVERSION = YES
               CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
               CLANG_WARN_SUSPICIOUS_MOVE = YES
               CLANG_WARN_UNREACHABLE_CODE = YES
               CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
               CLASS_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses
               CLEAN_PRECOMPS = YES
               CLONE_HEADERS = NO
               CODESIGNING_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app
               CODE_SIGNING_ALLOWED = YES
               CODE_SIGNING_REQUIRED = YES
               CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext
               CODE_SIGN_IDENTITY = iPhone Developer
               COLOR_DIAGNOSTICS = NO
               COMBINE_HIDPI_IMAGES = NO
               COMPOSITE_SDK_DIRS = /Users/hao/Documents/flutter_proj/myapp/build/ios/CompositeSDKs
               COMPRESS_PNG_FILES = YES
               CONFIGURATION = Release
               CONFIGURATION_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               CONFIGURATION_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos
               CONTENTS_FOLDER_PATH = Runner.app
               COPYING_PRESERVES_HFS_DATA = NO
               COPY_HEADERS_RUN_UNIFDEF = NO
               COPY_PHASE_STRIP = NO
               COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES
               CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
               CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator
               CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk
               CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator10.1
               CP = /bin/cp
               CREATE_INFOPLIST_SECTION_IN_BINARY = NO
               CURRENT_ARCH = arm64
               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_KEXT_INSTALL_PATH = /System/Library/Extensions
               DEFINES_MODULE = NO
               DEPLOYMENT_LOCATION = NO
               DEPLOYMENT_POSTPROCESSING = NO
               DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET
               DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min
               DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min=
               DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET
               DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1
               DERIVED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources
               DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources
               DERIVED_SOURCES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.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 = English
               DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation
               DO_HEADER_SCANNING_IN_JAM = NO
               DSTROOT = /tmp/Runner.dst
               DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
               DWARF_DSYM_FILE_NAME = Runner.app.dSYM
               DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO
               DWARF_DSYM_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               EFFECTIVE_PLATFORM_NAME = -iphoneos
               EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
               EMBEDDED_PROFILE_NAME = embedded.mobileprovision
               EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO
               ENABLE_BITCODE = NO
               ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES
               ENABLE_HEADER_DEPENDENCIES = YES
               ENABLE_NS_ASSERTIONS = NO
               ENABLE_ON_DEMAND_RESOURCES = YES
               ENABLE_STRICT_OBJC_MSGSEND = YES
               ENABLE_TESTABILITY = NO
               ENTITLEMENTS_ALLOWED = YES
               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
               EXECUTABLES_FOLDER_PATH = Runner.app/Executables
               EXECUTABLE_FOLDER_PATH = Runner.app
               EXECUTABLE_NAME = Runner
               EXECUTABLE_PATH = Runner.app/Runner
               EXPANDED_CODE_SIGN_IDENTITY = 
               EXPANDED_CODE_SIGN_IDENTITY_NAME = 
               EXPANDED_PROVISIONING_PROFILE = 
               FILE_LIST = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList
               FIXED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles
               FLUTTER_APPLICATION_PATH = /Users/hao/Documents/flutter_proj/myapp
               FLUTTER_BUILD_DIR = build
               FLUTTER_BUILD_MODE = debug
               FLUTTER_FRAMEWORK_DIR = /Users/hao/Documents/flutter/bin/cache/artifacts/engine/ios
               FLUTTER_ROOT = /Users/hao/Documents/flutter
               FLUTTER_TARGET = lib/main.dart
               FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks
               FRAMEWORK_FLAG_PREFIX = -framework
               FRAMEWORK_SEARCH_PATHS =  /Users/hao/Documents/flutter_proj/myapp/ios/Flutter
               FRAMEWORK_VERSION = A
               FULL_PRODUCT_NAME = Runner.app
               GCC3_VERSION = 3.3
               GCC_C_LANGUAGE_STANDARD = gnu99
               GCC_INLINES_ARE_PRIVATE_EXTERN = YES
               GCC_NO_COMMON_BLOCKS = YES
               GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++
               GCC_SYMBOLS_PRIVATE_EXTERN = YES
               GCC_THUMB_SUPPORT = YES
               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
               GENERATE_MASTER_OBJECT_FILE = NO
               GENERATE_PKGINFO_FILE = YES
               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/hao
               ICONV = /usr/bin/iconv
               INFOPLIST_EXPAND_BUILD_SETTINGS = YES
               INFOPLIST_FILE = Runner/Info.plist
               INFOPLIST_OUTPUT_FORMAT = binary
               INFOPLIST_PATH = Runner.app/Info.plist
               INFOPLIST_PREPROCESS = NO
               INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings
               INLINE_PRIVATE_FRAMEWORKS = NO
               INSTALLHDRS_COPY_PHASE = NO
               INSTALLHDRS_SCRIPT_PHASE = NO
               INSTALL_DIR = /tmp/Runner.dst/Applications
               INSTALL_GROUP = staff
               INSTALL_MODE_FLAG = u+w,go-w,a+rX
               INSTALL_OWNER = hao
               INSTALL_PATH = /Applications
               INSTALL_ROOT = /tmp/Runner.dst
               IPHONEOS_DEPLOYMENT_TARGET = 8.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_FOLDER_PATH = Runner.app/Java
               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/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat
               LD_GENERATE_MAP_FILE = NO
               LD_MAP_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.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/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
               LEX = lex
               LIBRARY_FLAG_NOSPACE = YES
               LIBRARY_FLAG_PREFIX = -l
               LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions
               LIBRARY_SEARCH_PATHS =  /Users/hao/Documents/flutter_proj/myapp/ios/Flutter
               LINKER_DISPLAYS_MANGLED_NAMES = NO
               LINK_FILE_LIST_normal_arm64 = 
               LINK_WITH_STANDARD_LIBRARIES = YES
               LOCALIZABLE_CONTENT_DIR = 
               LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj
               LOCAL_ADMIN_APPS_DIR = /Applications/Utilities
               LOCAL_APPS_DIR = /Applications
               LOCAL_DEVELOPER_DIR = /Library/Developer
               LOCAL_LIBRARY_DIR = /Library
               LOCROOT = 
               LOCSYMROOT = 
               MACH_O_TYPE = mh_execute
               MAC_OS_X_PRODUCT_BUILD_VERSION = 16F73
               MAC_OS_X_VERSION_ACTUAL = 101205
               MAC_OS_X_VERSION_MAJOR = 101200
               MAC_OS_X_VERSION_MINOR = 1205
               METAL_LIBRARY_FILE_BASE = default
               METAL_LIBRARY_OUTPUT_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app
               MODULE_CACHE_DIR = /Users/hao/Library/Developer/Xcode/DerivedData/ModuleCache
               MTL_ENABLE_DEBUG_INFO = NO
               NATIVE_ARCH = armv7
               NATIVE_ARCH_32_BIT = i386
               NATIVE_ARCH_64_BIT = x86_64
               NATIVE_ARCH_ACTUAL = x86_64
               NO_COMMON = YES
               OBJECT_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects
               OBJECT_FILE_DIR_normal = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal
               OBJROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               ONLY_ACTIVE_ARCH = NO
               OS = MACOS
               OSAC = /usr/bin/osacompile
               PACKAGE_TYPE = com.apple.package-type.wrapper.application
               PASCAL_STRINGS = YES
               PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/hao/Documents/go/bin:/Users/hao/bin:/Users/hao/Documents/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
               PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist
               PFE_FILE_C_DIALECTS = objective-c
               PKGINFO_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo
               PKGINFO_PATH = Runner.app/PkgInfo
               PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
               PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
               PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library
               PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
               PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
               PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
               PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
               PLATFORM_DISPLAY_NAME = iOS
               PLATFORM_NAME = iphoneos
               PLATFORM_PREFERRED_ARCH = arm64
               PLATFORM_PRODUCT_BUILD_VERSION = 14B72
               PLIST_FILE_OUTPUT_FORMAT = binary
               PLUGINS_FOLDER_PATH = Runner.app/PlugIns
               PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
               PRECOMP_DESTINATION_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders
               PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
               PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders
               PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.myapp
               PRODUCT_MODULE_NAME = Runner
               PRODUCT_NAME = Runner
               PRODUCT_SETTINGS_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info.plist
               PRODUCT_TYPE = com.apple.product-type.application
               PROFILING_CODE = NO
               PROJECT = Runner
               PROJECT_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/DerivedSources
               PROJECT_DIR = /Users/hao/Documents/flutter_proj/myapp/ios
               PROJECT_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj
               PROJECT_NAME = Runner
               PROJECT_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build
               PROJECT_TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               PROVISIONING_PROFILE_REQUIRED = YES
               PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers
               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_SVN_FROM_RESOURCES = YES
               RESOURCE_RULES_REQUIRED = YES
               REZ_COLLECTOR_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources
               REZ_OBJECTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects
               SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO
               SCRIPTS_FOLDER_PATH = Runner.app/Scripts
               SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
               SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
               SDK_DIR_iphoneos10_1 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
               SDK_NAME = iphoneos10.1
               SDK_NAMES = iphoneos10.1
               SDK_PRODUCT_BUILD_VERSION = 14B72
               SDK_VERSION = 10.1
               SDK_VERSION_ACTUAL = 100100
               SDK_VERSION_MAJOR = 100000
               SDK_VERSION_MINOR = 100
               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 = YES
               SHARED_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/DerivedSources
               SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks
               SHARED_PRECOMPS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/SharedPrecompiledHeaders
               SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport
               SKIP_INSTALL = NO
               SOURCE_ROOT = /Users/hao/Documents/flutter_proj/myapp/ios
               SRCROOT = /Users/hao/Documents/flutter_proj/myapp/ios
               STRINGS_FILE_OUTPUT_ENCODING = binary
               STRIP_BITCODE_FROM_COPIED_FILES = YES
               STRIP_INSTALLED_PRODUCT = YES
               STRIP_STYLE = all
               SUPPORTED_DEVICE_FAMILIES = 1,2
               SUPPORTED_PLATFORMS = iphonesimulator iphoneos
               SUPPORTS_TEXT_BASED_API = NO
               SWIFT_PLATFORM_TARGET_PREFIX = ios
               SYMROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               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_DOCUMENTATION_DIR = /Library/Documentation
               SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions
               SYSTEM_LIBRARY_DIR = /System/Library
               TAPI_VERIFY_MODE = ErrorsOnly
               TARGETED_DEVICE_FAMILY = 1,2
               TARGETNAME = Runner
               TARGET_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos
               TARGET_NAME = Runner
               TARGET_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build
               TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios
               TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
               TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO
               UID = 501
               UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app
               UNSTRIPPED_PRODUCT = NO
               USER = hao
               USER_APPS_DIR = /Users/hao/Applications
               USER_LIBRARY_DIR = /Users/hao/Library
               USE_DYNAMIC_NO_PIC = YES
               USE_HEADERMAP = YES
               USE_HEADER_SYMLINKS = NO
               VALIDATE_PRODUCT = YES
               VALID_ARCHS = arm64 armv7 armv7s
               VERBOSE_PBXCP = NO
               VERSIONPLIST_PATH = Runner.app/version.plist
               VERSION_INFO_BUILDER = hao
               VERSION_INFO_FILE = Runner_vers.c
               VERSION_INFO_STRING = "@(#)PROGRAM:Runner  PROJECT:Runner-"
               WRAPPER_EXTENSION = app
               WRAPPER_NAME = Runner.app
               WRAPPER_SUFFIX = .app
               WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO
               XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode
               XCODE_PRODUCT_BUILD_VERSION = 8B62
               XCODE_VERSION_ACTUAL = 0810
               XCODE_VERSION_MAJOR = 0800
               XCODE_VERSION_MINOR = 0810
               XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices
               YACC = yacc
               arch = arm64
               variant = normal
[  +73 ms] tail -n 0 -F /Users/hao/Library/Logs/CoreSimulator/6D2E7B8F-9C0D-41BB-BA49-E6F70B985114/system.log
[   +2 ms] Building Runner.app for 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114.
[   +2 ms] Building build/app.flx
[  +48 ms] tail -n 0 -F /private/var/log/system.log
[ +129 ms] which zip
[   +5 ms] Encoding zip file to build/app.flx
[  +14 ms] [build/flx/] zip -q /Users/hao/Documents/flutter_proj/myapp/build/app.flx fonts/MaterialIcons-Regular.ttf AssetManifest.json FontManifest.json LICENSE
[  +28 ms] [build/flx/] zip -q -0 /Users/hao/Documents/flutter_proj/myapp/build/app.flx images/lake.jpg
[  +13 ms] Built build/app.flx.
[   +1 ms] /usr/bin/xcrun simctl get_app_container 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp
[        ] /usr/bin/killall Runner
[  +31 ms] [DEVICE LOG] Aug 14 07:12:49 bogon SpringBoard[41957]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
[  +11 ms] [DEVICE LOG] Aug 14 07:12:49 --- last message repeated 1 time ---
[   +3 ms] [DEVICE LOG] Aug 14 07:12:49 bogon com.apple.CoreSimulator.SimDevice.6D2E7B8F-9C0D-41BB-BA49-E6F70B985114.launchd_sim[41940] (UIKitApplication:com.yourcompany.myapp[0xd351][42266]): Service exited due to Terminated: 15
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get short BSD proc info for 42266: No such file or directory
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get proc info for 42266: No such file or directory
[  +38 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86111c0&gt; registered
[  +18 ms] /usr/bin/xcrun simctl launch 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp --enable-dart-profiling --flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx --dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart --packages=/Users/hao/Documents/flutter_proj/myapp/.packages --enable-checked-mode --observatory-port=8100 --diagnostic-port=8101
[  +60 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb204b50&gt; registered
[   +1 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Requesting launch of com.yourcompany.myapp with options: {
[        ] [DEVICE LOG]             arguments =     (
[   +1 ms] [DEVICE LOG]                 "--enable-dart-profiling",
[        ] [DEVICE LOG]                 "--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx",
[        ] [DEVICE LOG]                 "--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart",
[        ] [DEVICE LOG]                 "--packages=/Users/hao/Documents/flutter_proj/myapp/.packages",
[        ] [DEVICE LOG]                 "--enable-checked-mode",
[        ] [DEVICE LOG]                 "--observatory-port=8100",
[        ] [DEVICE LOG]                 "--diagnostic-port=8101"
[        ] [DEVICE LOG]             );
[        ] [DEVICE LOG]             environment =     {
[        ] [DEVICE LOG]             };
[        ] [DEVICE LOG]         }
[        ] CoreSimulatorBridge: Requesting launch of com.yourcompany.myapp with options: {
[        ]          arguments =     (
[        ]              "--enable-dart-profiling",
[        ]              "--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx",
[        ]              "--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart",
[        ]              "--packages=/Users/hao/Documents/flutter_proj/myapp/.packages",
[        ]              "--enable-checked-mode",
[        ]              "--observatory-port=8100",
[        ]              "--diagnostic-port=8101"
[        ]          );
[        ]          environment =     {
[        ]          };
[        ]      }
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Sending request to open "com.yourcompany.myapp"
[        ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Sending request to open "com.yourcompany.myapp"
[  +35 ms] [DEVICE LOG] Aug 14 07:12:49 bogon assertiond[41961]: notify_suspend_pid() failed with error 7
[  +18 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt;
[        ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt;
[   +3 ms] com.yourcompany.myapp: 42885
[        ] Waiting for observatory port to be available...
[  +69 ms] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: metadata shared cached uuid is null (using logd's shared cache info) Runner (42885)
[        ] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000'
[   +2 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: assertion failed: 16F73 14B72: libxpc.dylib + 62597 [17F6B510-0FB1-30D3-B29C-D74A5D63719E]: 0x7d
[  +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e680&gt; registered
[  +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
[        ] You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
[  +13 ms] [DEVICE LOG] Aug 14 07:12:49 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[  +71 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Diagnostic server listening on http://127.0.0.1:8101/
[  +14 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Observatory listening on http://127.0.0.1:8100/
[   +1 ms] Observatory URL on device: http://127.0.0.1:8100/
[  +20 ms] Connected to service protocol: http://127.0.0.1:8100/
[   +2 ms] getVM: {}
[+2979 ms] [DEVICE LOG] Aug 14 07:12:52 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e730&gt; registered
[ +777 ms] [DEVICE LOG] Aug 14 07:12:53 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e7e0&gt; registered
[  +29 ms] [DEVICE LOG] Aug 14 07:12:53 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3189 ms] [DEVICE LOG] Aug 14 07:12:56 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713130&gt; registered
[ +783 ms] [DEVICE LOG] Aug 14 07:12:57 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e890&gt; registered
[  +26 ms] [DEVICE LOG] Aug 14 07:12:57 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3194 ms] [DEVICE LOG] Aug 14 07:13:00 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e940&gt; registered
[ +344 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 3 times ---
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: ReceiveMessageAndFileDescriptor
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Calling select...
[  +42 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 1 time ---
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGHUP handler.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGCHLD handler.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Unblocking SIGCHLD.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Sending file descriptor and waiting on initial connection
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: send master fd and child pid 42909
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: All done. Waiting for client to disconnect or child to die.
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: select returned 1, error = File exists
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: assuming socket is readable
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Calling select...
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: calling recvmsg...
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4, errno=n/a
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Got a fd
[        ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Return 4
[  +45 ms] [SYS LOG] Aug 14 07:13:01 bogon login[42909]: USER_PROCESS: 42909 ttys002
[ +149 ms] [SYS LOG] Aug 14 07:13:01 bogon com.apple.usbmuxd[42859]: notice    USBMuxBonjourDeviceListenerCreate: LOCKDOWN_V2_BONJOUR_SERVICE_NAME is _apple-mobdev2._tcp,8f2707dd
[ +210 ms] [DEVICE LOG] Aug 14 07:13:01 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e240&gt; registered
[  +28 ms] [DEVICE LOG] Aug 14 07:13:01 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+2226 ms] [DEVICE LOG] Aug 14 07:13:03 bogon routined[41946]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
[ +948 ms] [DEVICE LOG] Aug 14 07:13:04 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86142e0&gt; registered
[ +805 ms] [DEVICE LOG] Aug 14 07:13:05 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb305bb0&gt; registered
[  +32 ms] [DEVICE LOG] Aug 14 07:13:05 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3164 ms] [DEVICE LOG] Aug 14 07:13:08 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e2f0&gt; registered
[ +906 ms] [DEVICE LOG] Aug 14 07:13:09 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713640&gt; registered
[  +37 ms] [DEVICE LOG] Aug 14 07:13:09 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3058 ms] [DEVICE LOG] Aug 14 07:13:12 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb205120&gt; registered
[ +753 ms] [DEVICE LOG] Aug 14 07:13:13 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e3a0&gt; registered
[  +26 ms] [DEVICE LOG] Aug 14 07:13:13 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+3221 ms] [DEVICE LOG] Aug 14 07:13:16 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de87148f0&gt; registered
[ +751 ms] [DEVICE LOG] Aug 14 07:13:17 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e450&gt; registered
[  +32 ms] [DEVICE LOG] Aug 14 07:13:17 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
[+1445 ms] [SYS LOG] Aug 14 07:13:19 --- last message repeated 4 times ---
[        ] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42859]: notice    Idle, stopping.
[   +7 ms] [SYS LOG] Aug 14 07:13:19 bogon xpcproxy[42943]: libcoreservices: _dirhelper_userdir: 523: bootstrap_look_up returned 268435459
[  +12 ms] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42943]: notice    usbmuxd-374.913 on Mar 17 2017 at 17:43:50, running 64 bit
[ +777 ms] Request to Dart VM Service timed out: getVM({})
Unhandled exception:
TimeoutException: Request to Dart VM Service timed out: getVM({})
#0      VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:735)
&lt;asynchronous suspension&gt;
#1      VM._fetchDirect (package:flutter_tools/src/vmservice.dart:566)
&lt;asynchronous suspension&gt;
#2      ServiceObject.reload (package:flutter_tools/src/vmservice.dart:414)
&lt;asynchronous suspension&gt;
#3      VMService.getVM (package:flutter_tools/src/vmservice.dart:243)
#4      FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:81)
&lt;asynchronous suspension&gt;
#5      ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:543)
&lt;asynchronous suspension&gt;
#6      HotRunner.attach (package:flutter_tools/src/run_hot.dart:106)
&lt;asynchronous suspension&gt;
#7      HotRunner.run (package:flutter_tools/src/run_hot.dart:206)
&lt;asynchronous suspension&gt;
#8      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:339)
&lt;asynchronous suspension&gt;
#9      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:220)
&lt;asynchronous suspension&gt;
#10     RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:227)
&lt;asynchronous suspension&gt;
#11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:162)
&lt;asynchronous suspension&gt;
#12     CommandRunner.runCommand (package:args/command_runner.dart:194)
&lt;asynchronous suspension&gt;
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:277)
&lt;asynchronous suspension&gt;
#14     CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109)
#15     new Future.sync (dart:async/future.dart:222)
#16     CommandRunner.run (package:args/command_runner.dart:109)
#17     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:161)
#18     run.&lt;anonymous closure&gt; (package:flutter_tools/executable.dart:142)
&lt;asynchronous suspension&gt;
#19     AppContext._run (package:flutter_tools/src/base/context.dart:76)
&lt;asynchronous suspension&gt;
#20     AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66)
#21     _rootRun (dart:async/zone.dart:1120)
#22     _CustomZone.run (dart:async/zone.dart:1001)
#23     runZoned (dart:async/zone.dart:1467)
#24     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25     run (package:flutter_tools/executable.dart:114)
&lt;asynchronous suspension&gt;
#26     main (package:flutter_tools/executable.dart:67)
&lt;asynchronous suspension&gt;
#27     main (file:///Users/hao/Documents/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#28     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/isolate_patch.dart:263)
#29     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
</code></pre></div>
<h3 dir="auto">flutter analyze</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter analyze
Analyzing /Users/hao/Documents/flutter_proj/myapp...
No issues found!
Ran in 5.1s"><pre class="notranslate"><code class="notranslate">$ flutter analyze
Analyzing /Users/hao/Documents/flutter_proj/myapp...
No issues found!
Ran in 5.1s
</code></pre></div>
<h3 dir="auto">flutter doctor</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale zh-Hans-CN, channel alpha)
    • Flutter at /Users/hao/Documents/flutter
    • Framework revision bbcfb8d51a (12 days ago), 2017-08-01 14:50:29 -0700
    • Engine revision f2af347363
    • Tools Dart version 1.25.0-dev.7.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    • Android SDK at /Users/hao/Library/Android/sdk
    • Platform android-25, build-tools 25.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.1, Build version 8B62
    • ios-deploy 1.9.1
    • CocoaPods version 1.3.0

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Connected devices
    • iPhone 7 Plus • 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 • ios • iOS 10.1 (simulator)
"><pre class="notranslate"><code class="notranslate">$ flutter doctor
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale zh-Hans-CN, channel alpha)
    • Flutter at /Users/hao/Documents/flutter
    • Framework revision bbcfb8d51a (12 days ago), 2017-08-01 14:50:29 -0700
    • Engine revision f2af347363
    • Tools Dart version 1.25.0-dev.7.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    • Android SDK at /Users/hao/Library/Android/sdk
    • Platform android-25, build-tools 25.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.1, Build version 8B62
    • ios-deploy 1.9.1
    • CocoaPods version 1.3.0

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Connected devices
    • iPhone 7 Plus • 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 • ios • iOS 10.1 (simulator)

</code></pre></div>
<p dir="auto">I get this exception that the flutter runtime exception handler wants the to report, so here it is. This is inside an integration test that is setup according to the cookbook, apart from having a mocked http.Client which is passed to the app.</p>
<p dir="auto">We use the same way of mocking in our unit tests, where it works fine. For instance</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MockClient extends Mock implements http.Client {}

void main() {
  final String projectId = &quot;d0f74b1e-c76d-42d0-a835-1e29a5f3daca&quot;;
  final String project2Id = &quot;19887007-b260-490e-9fae-701303e67f54&quot;;

  final String dossierId = &quot;52d58852-2269-43f9-86d9-b127d2040ec0&quot;;

  group(&quot;Session Tests&quot;, () {
    test(&quot;test correct login&quot;, () async {
      final client = MockClient();

      final inlognaam = &quot;Correct&quot;;
      final wachtwoord = &quot;Correct&quot;;
      final code = &quot;Correct&quot;;

      when(client.put(Session(null).serverURL + &quot;/api/Login&quot;, body: {
        &quot;inlognaam&quot;: inlognaam,
        &quot;wachtwoord&quot;: wachtwoord,
        &quot;code&quot;: code
      })).thenAnswer((_) async =&gt; http.Response(
          &quot;{\&quot;Response\&quot;: \&quot;3c7d7d0f46b1d287e8f8cb623a3c0b35\&quot;,\&quot;Ingelogd\&quot;: true}&quot;,
          200));

      final loginParams = LoginParameters.login(inlognaam, wachtwoord, code);

      var response = await Session(client).login(loginParams);

      expect(response, &quot;Ingelogd&quot;);
    });
etc"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MockClient</span> <span class="pl-k">extends</span> <span class="pl-c1">Mock</span> <span class="pl-k">implements</span> http.<span class="pl-c1">Client</span> {}

<span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-k">final</span> <span class="pl-c1">String</span> projectId <span class="pl-k">=</span> <span class="pl-s">"d0f74b1e-c76d-42d0-a835-1e29a5f3daca"</span>;
  <span class="pl-k">final</span> <span class="pl-c1">String</span> project2Id <span class="pl-k">=</span> <span class="pl-s">"19887007-b260-490e-9fae-701303e67f54"</span>;

  <span class="pl-k">final</span> <span class="pl-c1">String</span> dossierId <span class="pl-k">=</span> <span class="pl-s">"52d58852-2269-43f9-86d9-b127d2040ec0"</span>;

  <span class="pl-en">group</span>(<span class="pl-s">"Session Tests"</span>, () {
    <span class="pl-en">test</span>(<span class="pl-s">"test correct login"</span>, () <span class="pl-k">async</span> {
      <span class="pl-k">final</span> client <span class="pl-k">=</span> <span class="pl-c1">MockClient</span>();

      <span class="pl-k">final</span> inlognaam <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>;
      <span class="pl-k">final</span> wachtwoord <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>;
      <span class="pl-k">final</span> code <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>;

      <span class="pl-k">when</span>(client.<span class="pl-en">put</span>(<span class="pl-c1">Session</span>(<span class="pl-c1">null</span>).serverURL <span class="pl-k">+</span> <span class="pl-s">"/api/Login"</span>, body<span class="pl-k">:</span> {
        <span class="pl-s">"inlognaam"</span><span class="pl-k">:</span> inlognaam,
        <span class="pl-s">"wachtwoord"</span><span class="pl-k">:</span> wachtwoord,
        <span class="pl-s">"code"</span><span class="pl-k">:</span> code
      })).<span class="pl-en">thenAnswer</span>((_) <span class="pl-k">async</span> <span class="pl-k">=&gt;</span> http.<span class="pl-c1">Response</span>(
          <span class="pl-s">"{<span class="pl-cce">\"</span>Response<span class="pl-cce">\"</span>: <span class="pl-cce">\"</span>3c7d7d0f46b1d287e8f8cb623a3c0b35<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>Ingelogd<span class="pl-cce">\"</span>: true}"</span>,
          <span class="pl-c1">200</span>));

      <span class="pl-k">final</span> loginParams <span class="pl-k">=</span> <span class="pl-c1">LoginParameters</span>.<span class="pl-en">login</span>(inlognaam, wachtwoord, code);

      <span class="pl-k">var</span> response <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">Session</span>(client).<span class="pl-en">login</span>(loginParams);

      <span class="pl-en">expect</span>(response, <span class="pl-s">"Ingelogd"</span>);
    });
etc</pre></div>
<p dir="auto">passing null in Session does not change things</p>
<p dir="auto">--- The exception itself: ---</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sanders-mbp:waarnemingenapp sandervanderwal$ flutter drive --target=test_driver/happyflow.dart
Found multiple connected devices:
  - Turminder Xuss
  - iPhone 6

Using device Turminder Xuss.
Starting application: test_driver/happyflow.dart
Automatically signing iOS for device deployment using specified development team in Xcode project: X9TW68MJEK
Starting Xcode build...                                          
 ├─Assembling Flutter resources...                    5.6s                                                                                                                                                                                                           
Xcode build done.                                           21.1s
Installing and launching...                                      
flutter: Observatory listening on http://127.0.0.1:55412/                                                                                                                                                                                                       19.0s
00:00 +0: waarnemingenapp happy flow (setUpAll)
[info ] FlutterDriver: Connecting to Flutter application at http://127.0.0.1:1026/
[trace] FlutterDriver: Isolate found with number: 803942844
[trace] FlutterDriver: Isolate is paused at start.
[trace] FlutterDriver: Attempting to resume isolate
[trace] FlutterDriver: Waiting for service extension
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown attaching to the render tree:
flutter: type 'MockClient' is not a subtype of type 'HttpClient'
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      _MyAppState.initState (package:waarnemingenapp/main.dart:170:16)
flutter: #1      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3808:58)
flutter: #2      ComponentElement.mount (package:flutter/src/widgets/framework.dart:3674:5)
flutter: #3      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #4      Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #5      RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:909:16)
flutter: #6      RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:880:5)
flutter: #7      RenderObjectToWidgetAdapter.attachToRenderTree.&lt;anonymous closure&gt; (package:flutter/src/widgets/binding.dart:826:17)
flutter: #8      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2266:19)
flutter: #9      RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:825:13)
flutter: #10     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7)
flutter: #11     runApp (package:flutter/src/widgets/binding.dart:756:7)
flutter: #12     main.&lt;anonymous closure&gt; (file:///Users/sandervanderwal/Projects/maxdoro/waarnemingenapp/test_driver/happyflow.dart:44:5)
flutter: #21     SystemChrome.setPreferredOrientations (package:flutter/src/services/system_chrome.dart)
flutter: #30     OptionalMethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart)
flutter: #39     MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart)
flutter: (elided 32 frames from package dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
[info ] FlutterDriver: Connected to Flutter application.
00:00 +0: waarnemingenapp happy flow login
[VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception:
FileSystemException: writeFrom failed, path = '' (OS Error: Input/output error, errno = 5)
#0      _RandomAccessFile.writeFromSync (dart:io/file_impl.dart:891:7)
#1      _StdConsumer.addStream.&lt;anonymous closure&gt; (dart:io/stdio.dart:310:15)
#2      _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#3      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#4      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#5      _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#6      _StreamController._add (dart:async/stream_controller.dart:639:7)
#7      _StreamController.add (dart:async/stream_controller.dart:585:5)
#8      _StreamSinkImpl.add (dart:io/io_sink.dart:168:17)
#9      _IOSinkImpl.write (dart:io/io_sink.dart:302:5)
#10     _IOSinkImpl.writeln (dart:io/io_sink.dart:322:5)
#11     _StdSink.writeln (dart:io/stdio.dart:343:11)
#12     _log (package:flutter_driver/src/common/error.dart:46:12)
#13     Logger.error (package:flutter_driver/src/common/error.dart:144:5)
#14     FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:184:12)
&lt;asynchronous suspension&gt;
00:05 +0 -1: waarnemingenapp happy flow login [E]
  DriverError: Error in Flutter application: Timeout while executing tap: TimeoutException after 0:00:05.000000: Future not completed
  #0      FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:180:31)
  &lt;asynchronous suspension&gt;
  #1      BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32)
  &lt;asynchronous suspension&gt;
  #2      _runExtension (dart:developer/runtime/libdeveloper.dart:86:23)
  #3      PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3)
  #4      RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17)
  #5      RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
  #6      PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
  #7      RenderView.paint (package:flutter/src/rendering/view.dart:178:15)
  #8      RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
  #9      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
  #10     PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
  #11     PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29)
  #12     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
  #13     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
  #14     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
  #15     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
  #16     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
  #17     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7)
  #18     Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15)
  #19     _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
  #20     _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
  #21     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)

  Original error: null
  Original stack trace:
  null

#15     BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32)
&lt;asynchronous suspension&gt;
#16     _runExtension (dart:developer/runtime/libdeveloper.dart:86:23)
#17     PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3)
#18     RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17)
#19     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
#20     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
#21     RenderView.paint (package:flutter/src/rendering/view.dart:178:15)
#22     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
#23     PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
#24     PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
#25     PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29)
#26     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
#27     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
#28     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
#29     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
#30     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
#31     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7)
#32     Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15)
#33     _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
#34     _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#35     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
  package:flutter_driver/src/driver/driver.dart 406:7   FlutterDriver._sendCommand
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22:43                     _Completer.completeError
  dart:async/runtime/libasync_patch.dart 40:18          _AsyncAwaitCompleter.completeError
  package:flutter_driver/src/driver/driver.dart         FlutterDriver._sendCommand
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1053:19                          _CustomZone.registerUnaryCallback
  dart:async/runtime/libasync_patch.dart 77:23          _asyncThenWrapperHelper
  package:flutter_driver/src/driver/driver.dart         FlutterDriver._sendCommand
  package:flutter_driver/src/driver/driver.dart 432:11  FlutterDriver.tap
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1053:19                          _CustomZone.registerUnaryCallback
  dart:async/runtime/libasync_patch.dart 77:23          _asyncThenWrapperHelper
  package:test_api/src/backend/declarer.dart            Declarer.test.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt;
  package:test_api/src/backend/invoker.dart 249:15      Invoker.waitForOutstandingCallbacks.&lt;fn&gt;
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1045:19                          _CustomZone.registerCallback
  dart:async/zone.dart 962:22                           _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52:45                           new Timer
  dart:async/timer.dart 87:9                            Timer.run
  dart:async/future.dart 174:11                         new Future
  package:test_api/src/backend/invoker.dart 398:11      Invoker._onRun.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt;

00:05 +0 -1: waarnemingenapp happy flow (tearDownAll)
00:05 +0 -1: Some tests failed.

Unhandled exception:
Dummy exception to set exit code.
#0      _rootHandleUncaughtError.&lt;anonymous closure&gt; (dart:async/zone.dart:1112:29)
#1      _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3      _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:391:30)
#4      _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#5      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
Stopping application instance.
Driver tests failed: 255
sanders-mbp:waarnemingenapp sandervanderwal$ "><pre class="notranslate"><code class="notranslate">sanders-mbp:waarnemingenapp sandervanderwal$ flutter drive --target=test_driver/happyflow.dart
Found multiple connected devices:
  - Turminder Xuss
  - iPhone 6

Using device Turminder Xuss.
Starting application: test_driver/happyflow.dart
Automatically signing iOS for device deployment using specified development team in Xcode project: X9TW68MJEK
Starting Xcode build...                                          
 ├─Assembling Flutter resources...                    5.6s                                                                                                                                                                                                           
Xcode build done.                                           21.1s
Installing and launching...                                      
flutter: Observatory listening on http://127.0.0.1:55412/                                                                                                                                                                                                       19.0s
00:00 +0: waarnemingenapp happy flow (setUpAll)
[info ] FlutterDriver: Connecting to Flutter application at http://127.0.0.1:1026/
[trace] FlutterDriver: Isolate found with number: 803942844
[trace] FlutterDriver: Isolate is paused at start.
[trace] FlutterDriver: Attempting to resume isolate
[trace] FlutterDriver: Waiting for service extension
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown attaching to the render tree:
flutter: type 'MockClient' is not a subtype of type 'HttpClient'
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      _MyAppState.initState (package:waarnemingenapp/main.dart:170:16)
flutter: #1      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3808:58)
flutter: #2      ComponentElement.mount (package:flutter/src/widgets/framework.dart:3674:5)
flutter: #3      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #4      Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #5      RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:909:16)
flutter: #6      RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:880:5)
flutter: #7      RenderObjectToWidgetAdapter.attachToRenderTree.&lt;anonymous closure&gt; (package:flutter/src/widgets/binding.dart:826:17)
flutter: #8      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2266:19)
flutter: #9      RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:825:13)
flutter: #10     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7)
flutter: #11     runApp (package:flutter/src/widgets/binding.dart:756:7)
flutter: #12     main.&lt;anonymous closure&gt; (file:///Users/sandervanderwal/Projects/maxdoro/waarnemingenapp/test_driver/happyflow.dart:44:5)
flutter: #21     SystemChrome.setPreferredOrientations (package:flutter/src/services/system_chrome.dart)
flutter: #30     OptionalMethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart)
flutter: #39     MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart)
flutter: (elided 32 frames from package dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
[info ] FlutterDriver: Connected to Flutter application.
00:00 +0: waarnemingenapp happy flow login
[VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception:
FileSystemException: writeFrom failed, path = '' (OS Error: Input/output error, errno = 5)
#0      _RandomAccessFile.writeFromSync (dart:io/file_impl.dart:891:7)
#1      _StdConsumer.addStream.&lt;anonymous closure&gt; (dart:io/stdio.dart:310:15)
#2      _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#3      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#4      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#5      _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#6      _StreamController._add (dart:async/stream_controller.dart:639:7)
#7      _StreamController.add (dart:async/stream_controller.dart:585:5)
#8      _StreamSinkImpl.add (dart:io/io_sink.dart:168:17)
#9      _IOSinkImpl.write (dart:io/io_sink.dart:302:5)
#10     _IOSinkImpl.writeln (dart:io/io_sink.dart:322:5)
#11     _StdSink.writeln (dart:io/stdio.dart:343:11)
#12     _log (package:flutter_driver/src/common/error.dart:46:12)
#13     Logger.error (package:flutter_driver/src/common/error.dart:144:5)
#14     FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:184:12)
&lt;asynchronous suspension&gt;
00:05 +0 -1: waarnemingenapp happy flow login [E]
  DriverError: Error in Flutter application: Timeout while executing tap: TimeoutException after 0:00:05.000000: Future not completed
  #0      FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:180:31)
  &lt;asynchronous suspension&gt;
  #1      BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32)
  &lt;asynchronous suspension&gt;
  #2      _runExtension (dart:developer/runtime/libdeveloper.dart:86:23)
  #3      PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3)
  #4      RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17)
  #5      RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
  #6      PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
  #7      RenderView.paint (package:flutter/src/rendering/view.dart:178:15)
  #8      RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
  #9      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
  #10     PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
  #11     PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29)
  #12     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
  #13     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
  #14     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
  #15     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
  #16     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
  #17     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7)
  #18     Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15)
  #19     _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
  #20     _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
  #21     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)

  Original error: null
  Original stack trace:
  null

#15     BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32)
&lt;asynchronous suspension&gt;
#16     _runExtension (dart:developer/runtime/libdeveloper.dart:86:23)
#17     PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3)
#18     RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17)
#19     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
#20     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
#21     RenderView.paint (package:flutter/src/rendering/view.dart:178:15)
#22     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
#23     PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
#24     PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
#25     PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29)
#26     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
#27     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
#28     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
#29     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
#30     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
#31     __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7)
#32     Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15)
#33     _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
#34     _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#35     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
  package:flutter_driver/src/driver/driver.dart 406:7   FlutterDriver._sendCommand
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22:43                     _Completer.completeError
  dart:async/runtime/libasync_patch.dart 40:18          _AsyncAwaitCompleter.completeError
  package:flutter_driver/src/driver/driver.dart         FlutterDriver._sendCommand
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1053:19                          _CustomZone.registerUnaryCallback
  dart:async/runtime/libasync_patch.dart 77:23          _asyncThenWrapperHelper
  package:flutter_driver/src/driver/driver.dart         FlutterDriver._sendCommand
  package:flutter_driver/src/driver/driver.dart 432:11  FlutterDriver.tap
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1053:19                          _CustomZone.registerUnaryCallback
  dart:async/runtime/libasync_patch.dart 77:23          _asyncThenWrapperHelper
  package:test_api/src/backend/declarer.dart            Declarer.test.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt;
  package:test_api/src/backend/invoker.dart 249:15      Invoker.waitForOutstandingCallbacks.&lt;fn&gt;
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1045:19                          _CustomZone.registerCallback
  dart:async/zone.dart 962:22                           _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52:45                           new Timer
  dart:async/timer.dart 87:9                            Timer.run
  dart:async/future.dart 174:11                         new Future
  package:test_api/src/backend/invoker.dart 398:11      Invoker._onRun.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt;

00:05 +0 -1: waarnemingenapp happy flow (tearDownAll)
00:05 +0 -1: Some tests failed.

Unhandled exception:
Dummy exception to set exit code.
#0      _rootHandleUncaughtError.&lt;anonymous closure&gt; (dart:async/zone.dart:1112:29)
#1      _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3      _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:391:30)
#4      _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#5      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
Stopping application instance.
Driver tests failed: 255
sanders-mbp:waarnemingenapp sandervanderwal$ 
</code></pre></div>
<p dir="auto">--- end of exception -----</p>
<p dir="auto">App widget in main. If a client is passed this way it is always a mock</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyApp extends StatefulWidget {
  final http.Client mockClient;
  /// Constructs [MyApp]
  MyApp({ this.mockClient });

  @override
  _MyAppState createState() =&gt; _MyAppState(mockClient: mockClient);
}

class _MyAppState extends State&lt;MyApp&gt; with WidgetsBindingObserver {

  final http.Client mockClient;

  _MyAppState({ this.mockClient });

  @override
  void initState() {
    super.initState();

  // certificateString is a certificate
 List&lt;int&gt; bytes = utf8.encode(certificateString);

    SecurityContext clientContext = SecurityContext();
    clientContext.setTrustedCertificatesBytes(bytes);

 // Create the regular client if there is no mock client
    HttpClient httpClient = (mockClient == null) ? HttpClient(context: clientContext) : mockClient;
// ^^^^^^^^^^^^^^ This line throws the exception 

    // Create the model, inject its dependencies
    final session = Session(IOClient(httpClient));

    _model = Model(session);

    // Observe App life cycle events
    WidgetsBinding.instance.addObserver(this);
  }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
  <span class="pl-k">final</span> http.<span class="pl-c1">Client</span> mockClient;
  <span class="pl-c">/// Constructs <span class="pl-v">[MyApp]</span></span>
<span class="pl-c"></span>  <span class="pl-c1">MyApp</span>({ <span class="pl-c1">this</span>.mockClient });

  <span class="pl-k">@override</span>
  <span class="pl-c1">_MyAppState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-c1">_MyAppState</span>(mockClient<span class="pl-k">:</span> mockClient);
}

<span class="pl-k">class</span> <span class="pl-c1">_MyAppState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">MyApp</span>&gt; <span class="pl-k">with</span> <span class="pl-c1">WidgetsBindingObserver</span> {

  <span class="pl-k">final</span> http.<span class="pl-c1">Client</span> mockClient;

  <span class="pl-c1">_MyAppState</span>({ <span class="pl-c1">this</span>.mockClient });

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">initState</span>() {
    <span class="pl-c1">super</span>.<span class="pl-en">initState</span>();

  <span class="pl-c">// certificateString is a certificate</span>
 <span class="pl-c1">List</span>&lt;<span class="pl-c1">int</span>&gt; bytes <span class="pl-k">=</span> utf8.<span class="pl-en">encode</span>(certificateString);

    <span class="pl-c1">SecurityContext</span> clientContext <span class="pl-k">=</span> <span class="pl-c1">SecurityContext</span>();
    clientContext.<span class="pl-en">setTrustedCertificatesBytes</span>(bytes);

 <span class="pl-c">// Create the regular client if there is no mock client</span>
    <span class="pl-c1">HttpClient</span> httpClient <span class="pl-k">=</span> (mockClient <span class="pl-k">==</span> <span class="pl-c1">null</span>) <span class="pl-k">?</span> <span class="pl-c1">HttpClient</span>(context<span class="pl-k">:</span> clientContext) <span class="pl-k">:</span> mockClient;
<span class="pl-c">// ^^^^^^^^^^^^^^ This line throws the exception </span>

    <span class="pl-c">// Create the model, inject its dependencies</span>
    <span class="pl-k">final</span> session <span class="pl-k">=</span> <span class="pl-c1">Session</span>(<span class="pl-c1">IOClient</span>(httpClient));

    _model <span class="pl-k">=</span> <span class="pl-c1">Model</span>(session);

    <span class="pl-c">// Observe App life cycle events</span>
    <span class="pl-c1">WidgetsBinding</span>.instance.<span class="pl-en">addObserver</span>(<span class="pl-c1">this</span>);
  }</pre></div>
<p dir="auto">---- happy flow.dart in test_driver</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MockClient extends Mock implements http.Client {}

/// Implements the instrumented version of the happy flow test. In particular, this is the place where we define the mock http client
void main() {
  // This line enables the extension
  enableFlutterDriverExtension();

  // As we need a mock version of the http server, and we cannot pass a parameter in main() which has a fixed signature,
  // we duplicate the actions in app.main(), and in addition we pass a mock client.

    final mockClient = MockClient();

    final inlognaam = &quot;Correct&quot;;
    final wachtwoord = &quot;Correct&quot;;
    final code = &quot;Correct&quot;;

    when(mockClient.put(Session(mockClient).serverURL + &quot;/api/Login&quot;, body: {
      &quot;inlognaam&quot;: inlognaam,
      &quot;wachtwoord&quot;: wachtwoord,
      &quot;code&quot;: code
    })).thenAnswer((_) async =&gt; http.Response(
      &quot;{\&quot;Response\&quot;: \&quot;3c7d7d0f46b1d287e8f8cb623a3c0b35\&quot;,\&quot;Ingelogd\&quot;: true}&quot;,
      200));

    SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
    .then((_) {
    runApp(app.MyApp(mockClient: mockClient));
  });
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MockClient</span> <span class="pl-k">extends</span> <span class="pl-c1">Mock</span> <span class="pl-k">implements</span> http.<span class="pl-c1">Client</span> {}

<span class="pl-c">/// Implements the instrumented version of the happy flow test. In particular, this is the place where we define the mock http client</span>
<span class="pl-c"></span><span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-c">// This line enables the extension</span>
  <span class="pl-en">enableFlutterDriverExtension</span>();

  <span class="pl-c">// As we need a mock version of the http server, and we cannot pass a parameter in main() which has a fixed signature,</span>
  <span class="pl-c">// we duplicate the actions in app.main(), and in addition we pass a mock client.</span>

    <span class="pl-k">final</span> mockClient <span class="pl-k">=</span> <span class="pl-c1">MockClient</span>();

    <span class="pl-k">final</span> inlognaam <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>;
    <span class="pl-k">final</span> wachtwoord <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>;
    <span class="pl-k">final</span> code <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>;

    <span class="pl-k">when</span>(mockClient.<span class="pl-en">put</span>(<span class="pl-c1">Session</span>(mockClient).serverURL <span class="pl-k">+</span> <span class="pl-s">"/api/Login"</span>, body<span class="pl-k">:</span> {
      <span class="pl-s">"inlognaam"</span><span class="pl-k">:</span> inlognaam,
      <span class="pl-s">"wachtwoord"</span><span class="pl-k">:</span> wachtwoord,
      <span class="pl-s">"code"</span><span class="pl-k">:</span> code
    })).<span class="pl-en">thenAnswer</span>((_) <span class="pl-k">async</span> <span class="pl-k">=&gt;</span> http.<span class="pl-c1">Response</span>(
      <span class="pl-s">"{<span class="pl-cce">\"</span>Response<span class="pl-cce">\"</span>: <span class="pl-cce">\"</span>3c7d7d0f46b1d287e8f8cb623a3c0b35<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>Ingelogd<span class="pl-cce">\"</span>: true}"</span>,
      <span class="pl-c1">200</span>));

    <span class="pl-c1">SystemChrome</span>.<span class="pl-en">setPreferredOrientations</span>([<span class="pl-c1">DeviceOrientation</span>.portraitUp])
    .<span class="pl-en">then</span>((_) {
    <span class="pl-en">runApp</span>(app.<span class="pl-c1">MyApp</span>(mockClient<span class="pl-k">:</span> mockClient));
  });
}</pre></div>
<p dir="auto">--- happy flow_test in test_driver</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// Drives the instrumented version of the happy flow test app
void main() {
  group('waarnemingenapp happy flow', () {

    final authorizedButtonFinder = find.byValueKey('authorized');
    final usernameTextFinder = find.byValueKey('username');
    final passwordTextFinder = find.byValueKey('password');
    final smsCodeTextFinder  = find.byValueKey('smscode');
    final loginButtonFinder  = find.byValueKey('login');

    FlutterDriver driver;

    // Connect to the Flutter driver before running any tests
    setUpAll(() async {
      driver = await FlutterDriver.connect();
    });

    // Close the connection to the driver after the tests have completed
    tearDownAll(() async {
      if (driver != null) {
        driver.close();
      }
    });

    test('login', () async {
      await driver.tap(authorizedButtonFinder);

      // First, set focus on the username and enter the text
      await driver.tap(usernameTextFinder);
      driver.enterText(&quot;Correct&quot;);

      // Then, set focus on the password and enter the text
      await driver.tap(passwordTextFinder);
      driver.enterText(&quot;Correct&quot;);

      // Then, set focus on the sms code
      await driver.tap(smsCodeTextFinder);
      driver.enterText(&quot;Correct&quot;);

      await driver.tap(loginButtonFinder);
    });
  });
}"><pre class="notranslate"><span class="pl-c">/// Drives the instrumented version of the happy flow test app</span>
<span class="pl-c"></span><span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-en">group</span>(<span class="pl-s">'waarnemingenapp happy flow'</span>, () {

    <span class="pl-k">final</span> authorizedButtonFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'authorized'</span>);
    <span class="pl-k">final</span> usernameTextFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'username'</span>);
    <span class="pl-k">final</span> passwordTextFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'password'</span>);
    <span class="pl-k">final</span> smsCodeTextFinder  <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'smscode'</span>);
    <span class="pl-k">final</span> loginButtonFinder  <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'login'</span>);

    <span class="pl-c1">FlutterDriver</span> driver;

    <span class="pl-c">// Connect to the Flutter driver before running any tests</span>
    <span class="pl-en">setUpAll</span>(() <span class="pl-k">async</span> {
      driver <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">FlutterDriver</span>.<span class="pl-en">connect</span>();
    });

    <span class="pl-c">// Close the connection to the driver after the tests have completed</span>
    <span class="pl-en">tearDownAll</span>(() <span class="pl-k">async</span> {
      <span class="pl-k">if</span> (driver <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
        driver.<span class="pl-en">close</span>();
      }
    });

    <span class="pl-en">test</span>(<span class="pl-s">'login'</span>, () <span class="pl-k">async</span> {
      <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(authorizedButtonFinder);

      <span class="pl-c">// First, set focus on the username and enter the text</span>
      <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(usernameTextFinder);
      driver.<span class="pl-en">enterText</span>(<span class="pl-s">"Correct"</span>);

      <span class="pl-c">// Then, set focus on the password and enter the text</span>
      <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(passwordTextFinder);
      driver.<span class="pl-en">enterText</span>(<span class="pl-s">"Correct"</span>);

      <span class="pl-c">// Then, set focus on the sms code</span>
      <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(smsCodeTextFinder);
      driver.<span class="pl-en">enterText</span>(<span class="pl-s">"Correct"</span>);

      <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(loginButtonFinder);
    });
  });
}</pre></div>
<p dir="auto">---- flutter doctor -v</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sanders-mbp:waarnemingenapp sandervanderwal$ flutter doctor -v
[✓] Flutter (Channel master, v0.11.4, on Mac OS X 10.14.1 18B75, locale en-NL)
    • Flutter version 0.11.4 at /Users/sandervanderwal/Developer/flutter
    • Framework revision df57dc9da9 (3 days ago), 2018-11-11 22:36:47 -0800
    • Engine revision 5646e86a6f
    • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at /Users/sandervanderwal/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (2 available)
    • Turminder Xuss • ca4f8a0ddd55132ab42c253d7496b90a38b6b53c • ios • iOS 12.1
    • iPhone 6       • F1C23CB3-7C89-416E-87D0-5CCDC2C89254     • ios • iOS 12.1 (simulator)

• No issues found!
sanders-mbp:waarnemingenapp sandervanderwal$ "><pre class="notranslate"><code class="notranslate">sanders-mbp:waarnemingenapp sandervanderwal$ flutter doctor -v
[✓] Flutter (Channel master, v0.11.4, on Mac OS X 10.14.1 18B75, locale en-NL)
    • Flutter version 0.11.4 at /Users/sandervanderwal/Developer/flutter
    • Framework revision df57dc9da9 (3 days ago), 2018-11-11 22:36:47 -0800
    • Engine revision 5646e86a6f
    • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at /Users/sandervanderwal/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (2 available)
    • Turminder Xuss • ca4f8a0ddd55132ab42c253d7496b90a38b6b53c • ios • iOS 12.1
    • iPhone 6       • F1C23CB3-7C89-416E-87D0-5CCDC2C89254     • ios • iOS 12.1 (simulator)

• No issues found!
sanders-mbp:waarnemingenapp sandervanderwal$ 
</code></pre></div>
<p dir="auto">the driver test is clearly not ready, but it looks like the code doesn</p>