Issue 1:
flutter run -v

$ 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 <NSMachPort: 0x7f8de86111c0> 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 <NSMachPort: 0x7f8deb204b50> 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: <FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES>
[ ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Request successful: <FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES>
[ +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 <NSMachPort: 0x7f8deb10e680> registered
[ +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: You've implemented -[<UIApplicationDelegate> 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 -[<UIApplicationDelegate> 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 <NSMachPort: 0x7f8deb10e730> registered
[ +777 ms] [DEVICE LOG] Aug 14 07:12:53 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port <NSMachPort: 0x7f8deb10e7e0> 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 <NSMachPort: 0x7f8de8713130> registered
[ +783 ms] [DEVICE LOG] Aug 14 07:12:57 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port <NSMachPort: 0x7f8deb10e890> 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 <NSMachPort: 0x7f8deb10e940> 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 <NSMachPort: 0x7f8deb10e240> 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 <NSMachPort: 0x7f8de86142e0> registered
[ +805 ms] [DEVICE LOG] Aug 14 07:13:05 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port <NSMachPort: 0x7f8deb305bb0> 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 <NSMachPort: 0x7f8deb10e2f0> registered
[ +906 ms] [DEVICE LOG] Aug 14 07:13:09 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port <NSMachPort: 0x7f8de8713640> 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 <NSMachPort: 0x7f8deb205120> registered
[ +753 ms] [DEVICE LOG] Aug 14 07:13:13 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port <NSMachPort: 0x7f8deb10e3a0> 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 <NSMachPort: 0x7f8de87148f0> registered
[ +751 ms] [DEVICE LOG] Aug 14 07:13:17 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port <NSMachPort: 0x7f8deb10e450> 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)
<asynchronous suspension>
#1 VM._fetchDirect (package:flutter_tools/src/vmservice.dart:566)
<asynchronous suspension>
#2 ServiceObject.reload (package:flutter_tools/src/vmservice.dart:414)
<asynchronous suspension>
#3 VMService.getVM (package:flutter_tools/src/vmservice.dart:243)
#4 FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:81)
<asynchronous suspension>
#5 ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:543)
<asynchronous suspension>
#6 HotRunner.attach (package:flutter_tools/src/run_hot.dart:106)
<asynchronous suspension>
#7 HotRunner.run (package:flutter_tools/src/run_hot.dart:206)
<asynchronous suspension>
#8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:339)
<asynchronous suspension>
#9 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:220)
<asynchronous suspension>
#10 RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:227)
<asynchronous suspension>
#11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:162)
<asynchronous suspension>
#12 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:277)
<asynchronous suspension>
#14 CommandRunner.run.<anonymous closure> (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.<anonymous closure> (package:flutter_tools/executable.dart:142)
<asynchronous suspension>
#19 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#20 AppContext.runInZone.<anonymous closure> (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)
<asynchronous suspension>
#26 main (package:flutter_tools/executable.dart:67)
<asynchronous suspension>
#27 main (file:///Users/hao/Documents/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#28 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#29 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

flutter analyze

$ flutter analyze
Analyzing /Users/hao/Documents/flutter_proj/myapp...
No issues found!
Ran in 5.1s

flutter doctor

$ 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)

Issue 2:
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.

We use the same way of mocking in our unit tests, where it works fine. For instance

class MockClient extends Mock implements http.Client {}

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

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

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

final inlognaam = "Correct";
final wachtwoord = "Correct";
final code = "Correct";

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

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

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

expect(response, "Ingelogd");
});
etc

passing null in Session does not change things

--- The exception itself: ---

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.<anonymous closure> (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&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7)
flutter: #11 runApp (package:flutter/src/widgets/binding.dart:756:7)
flutter: #12 main.<anonymous closure> (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.<anonymous closure> (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)
<asynchronous suspension>
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)
<asynchronous suspension>
#1 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:438:32)
<asynchronous suspension>
#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&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
#13 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
#14 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
#15 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
#16 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
#17 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
#18 Timer._createTimer.<anonymous closure> (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.<anonymous closure> (package:flutter/src/foundation/binding.dart:438:32)
<asynchronous suspension>
#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&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
#27 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
#28 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding&GestureBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
#29 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
#30 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
#31 __DriverBinding&BindingBase&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
#32 Timer._createTimer.<anonymous closure> (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.<fn>.<fn>.<fn>
package:test_api/src/backend/invoker.dart 249:15 Invoker.waitForOutstandingCallbacks.<fn>
===== 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.<fn>.<fn>.<fn>

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.<anonymous closure> (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$

--- end of exception -----

App widget in main. If a client is passed this way it is always a mock

class MyApp extends StatefulWidget {
final http.Client mockClient;
/// Constructs [MyApp]
MyApp({ this.mockClient });

@override
_MyAppState createState() => _MyAppState(mockClient: mockClient);
}

class _MyAppState extends State<MyApp> with WidgetsBindingObserver {

final http.Client mockClient;

_MyAppState({ this.mockClient });

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

// certificateString is a certificate
List<int> 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);
}

---- happy flow.dart in test_driver

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 = "Correct";
final wachtwoord = "Correct";
final code = "Correct";

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

SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
runApp(app.MyApp(mockClient: mockClient));
});
}

--- happy flow_test in test_driver

/// 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("Correct");

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

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

await driver.tap(loginButtonFinder);
});
});
}

---- flutter doctor -v

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$

the driver test is clearly not ready, but it looks like the code doesn