fluttercommunity / plus_plugins

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

[share_plus] Breaking constraints on iPad in AppBar Action #305

Closed Curvel closed 2 years ago

Curvel commented 3 years ago

System info

Issue occurs on: iPadOs Plugin name: share_plus Plugin version: 2.1.2 Flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-x64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] IntelliJ IDEA Community Edition (version 2021.1)
[✓] VS Code (version 1.56.2)
[✓] Connected device (3 available)

• No issues found!

Steps to Reproduce

Error

[LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x2800b4cd0 H:|-(0)-[_UIActivityContentTitleView:0x11150d6d0]   (active, names: '|':_UINavigationBarContentView:0x11142df60'Test' )>",
    "<NSLayoutConstraint:0x2800b4dc0 _UIActivityContentTitleView:0x11150d6d0.trailing == _UINavigationBarContentView:0x11142df60'Test'.trailing   (active)>",
    "<NSLayoutConstraint:0x2800b5180 LPLinkView:0x1115065b0.leading == UILayoutGuide:0x281af4700'UIViewLayoutMarginsGuide'.leading   (active)>",
    "<NSLayoutConstraint:0x2800b4ff0 H:[LPLinkView:0x1115065b0]-(27)-|   (active, names: '|':_UIActivityContentTitleView:0x11150d6d0 )>",
    "<NSLayoutConstraint:0x2800b2580 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x11142df60'Test'.width == 0   (active)>",
    "<NSLayoutConstraint:0x2800b5090 'UIView-leftMargin-guide-constraint' H:|-(16)-[UILayoutGuide:0x281af4700'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIActivityContentTitleView:0x11150d6d0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x2800b5180 LPLinkView:0x1115065b0.leading == UILayoutGuide:0x281af4700'UIViewLayoutMarginsGuide'.leading   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
  1. Click the share button in the app bar of the provided demo
main.dart ``` import 'package:flutter/material.dart'; import 'package:share_plus/share_plus.dart'; void main() { runApp(DemoApp()); } class DemoApp extends StatefulWidget { @override DemoAppState createState() => DemoAppState(); } class DemoAppState extends State { String text = 'Test'; @override Widget build(BuildContext context) { return MaterialApp( title: 'Share Plugin Demo', home: Scaffold( appBar: AppBar( title: const Text('Share Plugin Demo'), actions: [ IconButton( icon: const Icon(Icons.ios_share), onPressed: () => _onShare(context), ), ], ), body: SingleChildScrollView( child: Padding( padding: const EdgeInsets.all(24.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Builder( builder: (BuildContext context) { return ElevatedButton( onPressed: () => _onShare(context), child: const Text('Share'), ); }, ), ], ), ), )), ); } void _onShare(BuildContext context) async { await Share.share(text); } } ```

Logs

flutter run --verbose ``` 2021-06-14 16:22:34.351 xcodebuild[21154:1272964] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called [ +249 ms] └─Compiling, linking and signing... (completed in 5.1s) [ ] Xcode build done. 23.2s [ +2 ms] executing: [/Users/curvel/AndroidStudioProjects/share_test/ios/] xcrun xcodebuild -configuration Debug VERBOSE_SCRIPT_LOGGING=YES DEVELOPMENT_TEAM=HSG87NR8D4 -workspace Runner.xcworkspace -scheme Runner BUILD_DIR=/Users/curvel/AndroidStudioProjects/share_test/build/ios -sdk iphoneos ONLY_ACTIVE_ARCH=YES ARCHS=arm64 SCRIPT_OUTPUT_STREAM_FILE=/var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/T/flutter_tools.jhUp6p/flutter_build_log_pipe.g3tQJ2/pipe_to_stdout FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings [ +1 ms] executing: [/Users/curvel/AndroidStudioProjects/share_test/ios/] xcrun xcodebuild -configuration Debug VERBOSE_SCRIPT_LOGGING=YES DEVELOPMENT_TEAM=HSG87NR8D4 -workspace Runner.xcworkspace -scheme Runner BUILD_DIR=/Users/curvel/AndroidStudioProjects/share_test/build/ios -sdk iphoneos ONLY_ACTIVE_ARCH=YES ARCHS=arm64 SCRIPT_OUTPUT_STREAM_FILE=/var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/T/flutter_tools.jhUp6p/flutter_build_log_pipe.g3tQJ2/pipe_to_stdout FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings [+3795 ms] Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Debug VERBOSE_SCRIPT_LOGGING=YES DEVELOPMENT_TEAM=HSG87NR8D4 -workspace Runner.xcworkspace -scheme Runner BUILD_DIR=/Users/curvel/AndroidStudioProjects/share_test/build/ios -sdk iphoneos ONLY_ACTIVE_ARCH=YES ARCHS=arm64 SCRIPT_OUTPUT_STREAM_FILE=/var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/T/flutter_tools.jhUp6p/flutter_build_log_pipe.g3tQJ2/pipe_to_stdout FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES Build settings from command line: ARCHS = arm64 BUILD_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios COMPILER_INDEX_STORE_ENABLE = NO DEVELOPMENT_TEAM = HSG87NR8D4 FLUTTER_SUPPRESS_ANALYTICS = true ONLY_ACTIVE_ARCH = YES SCRIPT_OUTPUT_STREAM_FILE = /var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/T/flutter_tools.jhUp6p/flutter_build_log_pipe.g3tQJ2/pipe_to_stdout SDKROOT = iphoneos14.5 VERBOSE_SCRIPT_LOGGING = YES 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 = curvel ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO APPLY_RULES_IN_COPY_HEADERS = NO ARCHS = arm64 ARCHS_STANDARD = arm64 armv7 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = arm64 armv7 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/curvel/AndroidStudioProjects/share_test/build/ios BUILD_LIBRARY_FOR_DISTRIBUTION = NO BUILD_ROOT = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Products BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos BUNDLE_CONTENTS_FOLDER_PATH_deep = Contents/ BUNDLE_EXECUTABLE_FOLDER_NAME_deep = MacOS BUNDLE_FORMAT = shallow BUNDLE_FRAMEWORKS_FOLDER_PATH = Frameworks BUNDLE_PLUGINS_FOLDER_PATH = PlugIns BUNDLE_PRIVATE_HEADERS_FOLDER_PATH = PrivateHeaders BUNDLE_PUBLIC_HEADERS_FOLDER_PATH = Headers CACHE_ROOT = /var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/C/com.apple.DeveloperTools/12.5-12E262/Xcode CCHROOT = /var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/C/com.apple.DeveloperTools/12.5-12E262/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_BLOCK_CAPTURE_AUTORELEASING = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_COMMA = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_LITERAL_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CLANG_WARN_RANGE_LOOP_ANALYSIS = YES CLANG_WARN_STRICT_PROTOTYPES = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO COCOAPODS_PARALLEL_CODE_SIGN = true CODESIGNING_FOLDER_PATH = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = NO COMPOSITE_SDK_DIRS = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Debug CONFIGURATION_BUILD_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos CONFIGURATION_TEMP_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-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/iPhoneSimulator14.5.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator14.5 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_PROJECT_VERSION = 1 CURRENT_VARIANT = normal DART_DEFINES = RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== DART_OBFUSCATION = false DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_DEXT_INSTALL_PATH = /System/Library/DriverExtensions DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_LD_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_LD_FLAG_NAME = ios_version_min DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 9.0 9.2 10.0 10.2 11.0 11.2 11.4 12.1 12.3 13.0 13.2 13.4 13.6 14.1 14.3 14.5 DERIVED_FILES_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-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 = en DEVELOPMENT_TEAM = HSG87NR8D4 DOCUMENTATION_FOLDER_PATH = Runner.app/en.lproj/Documentation DONT_GENERATE_INFOPLIST_FILE = NO 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/curvel/AndroidStudioProjects/share_test/build/ios/Debug-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_HARDENED_RUNTIME = NO ENABLE_HEADER_DEPENDENCIES = YES ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = YES ENABLE_TESTING_SEARCH_PATHS = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_DESTINATION = Signature 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/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/curvel/AndroidStudioProjects/share_test FLUTTER_BUILD_DIR = build FLUTTER_BUILD_NAME = 1.0.0 FLUTTER_BUILD_NUMBER = 1 FLUTTER_ROOT = /Users/curvel/dev/flutter FLUTTER_SUPPRESS_ANALYTICS = true FLUTTER_TARGET = /Users/curvel/AndroidStudioProjects/share_test/lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = "/Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/share_plus" "/Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/url_launcher" FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_DYNAMIC_NO_PIC = NO GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_OPTIMIZATION_LEVEL = 0 GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 COCOAPODS=1 GCC_SYMBOLS_PRIVATE_EXTERN = NO 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 GENERATED_MODULEMAP_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos 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 HEADER_SEARCH_PATHS = "/Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/share_plus/share_plus.framework/Headers" "/Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/url_launcher/url_launcher.framework/Headers" HIDE_BITCODE_SYMBOLS = YES HOME = /Users/curvel 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/en.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 = curvel INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 9.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 KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/Ru nner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Runner-LinkMap-normal-a rm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_DEXT_INSTALL_PATH = /Library/DriverExtensions LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_WITH_STANDARD_LIBRARIES = YES LLVM_TARGET_TRIPLE_OS_VERSION = ios9.0 LLVM_TARGET_TRIPLE_VENDOR = apple LOCALIZABLE_CONTENT_DIR = LOCALIZATION_EXPORT_SUPPORTED = YES LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/en.lproj LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFCopyLocalizedString LOCALIZED_STRING_SWIFTUI_SUPPORT = YES LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 20F71 MAC_OS_X_VERSION_ACTUAL = 110400 MAC_OS_X_VERSION_MAJOR = 110000 MAC_OS_X_VERSION_MINOR = 110400 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app MODULES_FOLDER_PATH = Runner.app/Modules MODULE_CACHE_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/ModuleCache.noindex MTL_ENABLE_DEBUG_INFO = YES 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/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex ONLY_ACTIVE_ARCH = YES OS = MACOS OSAC = /usr/bin/osacompile OTHER_LDFLAGS = -framework "share_plus" -framework "url_launcher" -weak_framework "LinkPresentation" PACKAGE_CONFIG = /Users/curvel/AndroidStudioProjects/share_test/.dart_tool/package_config.json 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/MacGPG2/bin:/Library/Apple/usr/bin:/Users/curvel/dev/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/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-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 = 18E182 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PODS_BUILD_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios PODS_CONFIGURATION_BUILD_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos PODS_PODFILE_DIR_PATH = /Users/curvel/AndroidStudioProjects/share_test/ios/. PODS_ROOT = /Users/curvel/AndroidStudioProjects/share_test/ios/Pods PODS_XCFRAMEWORKS_BUILD_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/XCFrameworkIntermediates PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.example.shareTest PRODUCT_BUNDLE_PACKAGE_TYPE = APPL PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/curvel/AndroidStudioProjects/share_test/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/DerivedSources PROJECT_DIR = /Users/curvel/AndroidStudioProjects/share_test/ios PROJECT_FILE_PATH = /Users/curvel/AndroidStudioProjects/share_test/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build PROJECT_TEMP_ROOT = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex 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/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/ResourceManagerResource s REZ_OBJECTS_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/ResourceManagerResource s/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SCRIPT_OUTPUT_STREAM_FILE = /var/folders/5g/0ldwwbrd01vccq9dch1tjd640000gn/T/flutter_tools.jhUp6p/flutter_build_log_pipe.g3tQJ2/pipe_to_stdout SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk SDK_DIR_iphoneos14_5 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk SDK_NAME = iphoneos14.5 SDK_NAMES = iphoneos14.5 SDK_PRODUCT_BUILD_VERSION = 18E182 SDK_VERSION = 14.5 SDK_VERSION_ACTUAL = 140500 SDK_VERSION_MAJOR = 140000 SDK_VERSION_MINOR = 140500 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/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/PrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/curvel/AndroidStudioProjects/share_test/ios SRCROOT = /Users/curvel/AndroidStudioProjects/share_test/ios STRINGS_FILE_INFOPLIST_RENAME = YES STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_MACCATALYST = NO SUPPORTS_TEXT_BASED_API = NO SWIFT_OBJC_BRIDGING_HEADER = Runner/Runner-Bridging-Header.h SWIFT_OPTIMIZATION_LEVEL = -Onone SWIFT_PLATFORM_TARGET_PREFIX = ios SWIFT_VERSION = 5.0 SYMROOT = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Products SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DEXT_INSTALL_PATH = /System/Library/DriverExtensions SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build TEMP_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build TEMP_FILES_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build TEMP_FILE_DIR = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build TEMP_ROOT = /Users/curvel/Library/Developer/Xcode/DerivedData/Runner-gaoqeiehvoxmmmhjiraynpotwjdt/Build/Intermediates.noindex TEST_FRAMEWORK_SEARCH_PATHS = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/Developer/Library/Frameworks TEST_LIBRARY_SEARCH_PATHS = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TRACK_WIDGET_CREATION = true TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO TREE_SHAKE_ICONS = false UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = curvel USER_APPS_DIR = /Users/curvel/Applications USER_LIBRARY_DIR = /Users/curvel/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO USE_LLVM_TARGET_TRIPLES = YES USE_LLVM_TARGET_TRIPLES_FOR_CLANG = YES USE_LLVM_TARGET_TRIPLES_FOR_LD = YES USE_LLVM_TARGET_TRIPLES_FOR_TAPI = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES VALIDATE_PRODUCT = NO VALIDATE_WORKSPACE = NO VALID_ARCHS = arm64 arm64e armv7 armv7s VERBOSE_PBXCP = NO VERBOSE_SCRIPT_LOGGING = YES VERSIONING_SYSTEM = apple-generic VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = curvel VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = "@(#)PROGRAM:Runner PROJECT:Runner-1" 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 = 12E262 XCODE_VERSION_ACTUAL = 1250 XCODE_VERSION_MAJOR = 1200 XCODE_VERSION_MINOR = 1250 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal 2021-06-14 16:22:59.355 xcodebuild[21404:1274837] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-18108/DTDeviceKitBase/DTDKRemoteDeviceData.m:371 Details: (null) deviceType from 00008027-001E08420C22002E was NULL when -platform called. Object: Method: -platform Thread: {number = 7, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [ +47 ms] executing: rsync -av --delete /Users/curvel/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app /Users/curvel/AndroidStudioProjects/share_test/build/ios/iphoneos [ +356 ms] building file list ... done Runner.app/ Runner.app/Info.plist Runner.app/PkgInfo Runner.app/Runner Runner.app/Frameworks/ Runner.app/Frameworks/App.framework/ Runner.app/Frameworks/App.framework/App Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json Runner.app/Frameworks/App.framework/flutter_assets/FontManifest.json Runner.app/Frameworks/App.framework/flutter_assets/NOTICES Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin Runner.app/Frameworks/Flutter.framework/ Runner.app/Frameworks/Flutter.framework/Flutter Runner.app/Frameworks/Flutter.framework/_CodeSignature/CodeResources Runner.app/Frameworks/share_plus.framework/ Runner.app/Frameworks/share_plus.framework/Info.plist Runner.app/Frameworks/share_plus.framework/share_plus Runner.app/Frameworks/share_plus.framework/_CodeSignature/ Runner.app/Frameworks/share_plus.framework/_CodeSignature/CodeResources Runner.app/Frameworks/url_launcher.framework/ Runner.app/Frameworks/url_launcher.framework/Info.plist Runner.app/Frameworks/url_launcher.framework/url_launcher Runner.app/Frameworks/url_launcher.framework/_CodeSignature/ Runner.app/Frameworks/url_launcher.framework/_CodeSignature/CodeResources Runner.app/_CodeSignature/CodeResources sent 70533668 bytes received 464 bytes 141068264.00 bytes/sec total size is 118606265 speedup is 1.68 [ +4 ms] Installing and launching... [ ] Debugging is enabled, connecting to observatory [ +6 ms] executing: script -t 0 /dev/null /Users/curvel/dev/flutter/bin/cache/artifacts/ios-deploy/ios-deploy --id 00008027-001E08420C22002E --bundle build/ios/iphoneos/Runner.app --app_deltas build/ios/app-delta --debug --no-wifi --args --enable-dart-profiling --disable-service-auth-codes --enable-checked-mode --verify-entry-points [ +25 ms] [....] Waiting for iOS device to be connected [ +18 ms] [....] Using 00008027-001E08420C22002E (J317AP, iPad Pro (11"), iphoneos, arm64e) a.k.a. 'Curvel’s iPad'. [ ] ------ Install phase ------ [ ] [ 0%] Found 00008027-001E08420C22002E (J317AP, iPad Pro (11"), iphoneos, arm64e) a.k.a. 'Curvel’s iPad' connected through USB, beginning install [ +396 ms] [ 5%] TransferringPackage [ ] [ 5%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/META-INF/ to device [ ] [ 5%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/META-INF/com.apple.ZipMetadata.plist to device [ ] [ 6%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/ to device [ ] [ 6%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/ to device [ ] [ 7%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/ to device [ ] [ 8%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/CodeResources to device [ ] [ 8%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Info.plist to device [ ] [ 9%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Runner to device [ +1 ms] [ 10%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/com.apple.deltainstallcommands.com.example.shareTest to device [ ] [ 10%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/ to device [ ] [ 11%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/Flutter.framework/ to device [ ] [ 12%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/Flutter.framework/_CodeSignature/ to device [ ] [ 12%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/Flutter.framework/_CodeSignature/CodeResources to device [ +2 ms] [ 13%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/Flutter.framework/Flutter to device [+4072 ms] [ 24%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/ to device [ ] [ 25%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/_CodeSignature/ to device [ ] [ 26%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources to device [ ] [ 26%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/App to device [ +1 ms] [ 27%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/flutter_assets/ to device [ ] [ 28%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json to device [ ] [ 28%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin to device [+4258 ms] [ 40%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/flutter_assets/NOTICES to device [ +90 ms] [ 41%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/App.framework/flutter_assets/FontManifest.json to device [ ] [ 42%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/ to device [ ] [ 42%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/_CodeSignature/ to device [ ] [ 43%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/_CodeSignature/CodeResources to device [ ] [ 44%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/share_plus to device [ +38 ms] [ 44%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/Info.plist to device [ ] [ 45%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher.framework/ to device [ ] [ 46%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher.framework/_CodeSignature/ to device [ ] [ 46%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher.framework/_CodeSignature/CodeResources to device [ ] [ 47%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher.framework/url_launcher to device [ +1 ms] [ 48%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher.framework/Info.plist to device [ ] [ 48%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/Payload/Runner.app/PkgInfo to device [ ] [ 49%] Copying /Users/curvel/AndroidStudioProjects/share_test/build/ios/app-delta/Runner.app.VHLvNu/Runner.app_sparse.ipa/ManifestCache.plist to device [ +235 ms] [ 52%] CreatingStagingDirectory [ ] [ 57%] ExtractingPackage [ ] [ 60%] InspectingPackage [ +27 ms] [ 60%] TakingInstallLock [ +61 ms] [ 65%] PreflightingApplication [ ] [ 67%] PatchingApplication [ +176 ms] [ 67%] InstallingEmbeddedProfile [ +7 ms] [ 70%] VerifyingApplication [ +110 ms] [ 75%] CreatingContainer [ +7 ms] [ 80%] InstallingApplication [ +11 ms] [ 85%] PostflightingApplication [ +3 ms] [ 90%] SandboxingApplication [ +15 ms] [ 95%] GeneratingApplicationMap [ +299 ms] [100%] Installed package build/ios/iphoneos/Runner.app [ +97 ms] ------ Debug phase ------ [ ] Starting debug of 00008027-001E08420C22002E (J317AP, iPad Pro (11"), iphoneos, arm64e) a.k.a. 'Curvel’s iPad' connected through USB... [ +843 ms] [ 0%] Looking up developer disk image [ +15 ms] [ 95%] Developer disk image mounted successfully [ +413 ms] [100%] Connecting to remote debug server [ ] ------------------------- [ +110 ms] (lldb) command source -s 0 '/tmp/A5B96329-901F-409D-AB99-A29FDF8B79DD/fruitstrap-lldb-prep-cmds-00008027_001E08420C22002E' [ ] Executing commands in '/tmp/A5B96329-901F-409D-AB99-A29FDF8B79DD/fruitstrap-lldb-prep-cmds-00008027_001E08420C22002E'. [ ] (lldb) platform select remote-ios --sysroot '/Users/curvel/Library/Developer/Xcode/iOS DeviceSupport/14.4.2 (18D70) arm64e/Symbols' [ ] Platform: remote-ios [ ] Connected: no [ ] SDK Path: "/Users/curvel/Library/Developer/Xcode/iOS DeviceSupport/14.4.2 (18D70) arm64e/Symbols" [ ] (lldb) target create "/Users/curvel/AndroidStudioProjects/share_test/build/ios/iphoneos/Runner.app" [+7847 ms] Current executable set to '/Users/curvel/AndroidStudioProjects/share_test/build/ios/iphoneos/Runner.app' (arm64). [ ] (lldb) script fruitstrap_device_app="/private/var/containers/Bundle/Application/950EB37C-E288-4AA9-BF01-97CC34E8F9BC/Runner.app" [ +314 ms] (lldb) script fruitstrap_connect_url="connect://127.0.0.1:50906" [ ] (lldb) script fruitstrap_output_path="" [ ] (lldb) script fruitstrap_error_path="" [ ] (lldb) target modules search-paths add /usr "/Users/curvel/Library/Developer/Xcode/iOS DeviceSupport/14.4.2 (18D70) arm64e/Symbols/usr" /System "/Users/curvel/Library/Developer/Xcode/iOS DeviceSupport/14.4.2 (18D70) arm64e/Symbols/System" "/private/var/containers/Bundle/Application/950EB37C-E288-4AA9-BF01-97CC34E8F9BC" "/Users/curvel/AndroidStudioProjects/share_test/build/ios/iphoneos" "/var/containers/Bundle/Application/950EB37C-E288-4AA9-BF01-97CC34E8F9BC" "/Users/curvel/AndroidStudioProjects/share_test/build/ios/iphoneos" /Developer "/Users/curvel/Library/Developer/Xcode/iOS DeviceSupport/14.4.2 (18D70) arm64e/Symbols/Developer" [ +33 ms] (lldb) command script import "/tmp/A5B96329-901F-409D-AB99-A29FDF8B79DD/fruitstrap_00008027_001E08420C22002E.py" [ +3 ms] (lldb) command script add -f fruitstrap_00008027_001E08420C22002E.connect_command connect [ ] (lldb) command script add -s asynchronous -f fruitstrap_00008027_001E08420C22002E.run_command run [ ] (lldb) command script add -s asynchronous -f fruitstrap_00008027_001E08420C22002E.autoexit_command autoexit [ ] (lldb) command script add -s asynchronous -f fruitstrap_00008027_001E08420C22002E.safequit_command safequit [ ] (lldb) connect [ +44 ms] (lldb) run [ +171 ms] success [ ] Application launched on the device. Waiting for observatory port. [+1602 ms] Observatory URL on device: http://127.0.0.1:53065/ [ +7 ms] Attempting to forward device port 53065 to host port 50917 [ ] executing: /Users/curvel/dev/flutter/bin/cache/artifacts/usbmuxd/iproxy 50917:53065 --udid 00008027-001E08420C22002E [ +327 ms] [VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555. [ +1 ms] [VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions [ +689 ms] Forwarded port ForwardedPort HOST:50917 to DEVICE:53065 [ ] Forwarded host port 50917 to device port 53065 for Observatory [ +2 ms] Installing and launching... (completed in 22.4s) [ +1 ms] Caching compiled dill [ +69 ms] Connecting to service protocol: http://127.0.0.1:50917/ [ +180 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:50917/. [ +131 ms] DDS is listening at http://127.0.0.1:50929/CLvtgGY9aKQ=/. [ +10 ms] [VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555. [ ] [VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions [ +158 ms] Successfully connected to service protocol: http://127.0.0.1:50917/ [ +48 ms] DevFS: Creating new filesystem on the device (null) [ +48 ms] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data/Application/1CFCA774-C8FB-4279-BEAE-37DD55CB25A3/tmp/share_testRYN948/share_test/) [ +3 ms] Updating assets [ +158 ms] Syncing files to device Curvel’s iPad... [ +2 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +3 ms] <- recompile package:share_test/main.dart 32952fa1-3417-4f21-baa9-9f2ebb05aead [ ] <- 32952fa1-3417-4f21-baa9-9f2ebb05aead [ +246 ms] Updating files. [ ] DevFS: Sync finished [ ] Syncing files to device Curvel’s iPad... (completed in 254ms) [ +1 ms] Synced 0.0MB. [ +1 ms] <- accept [ +20 ms] Connected to _flutterView/0x107021820. [ +4 ms] Flutter run key commands. [ +5 ms] r Hot reload. 🔥🔥🔥 [ +1 ms] R Hot restart. [ +1 ms] h Repeat this help message. [ ] d Detach (terminate "flutter run" but leave application running). [ ] c Clear the screen [ ] q Quit (terminate the application on the device). [ ] 💪 Running with sound null safety 💪 [ +1 ms] An Observatory debugger and profiler on Curvel’s iPad is available at: http://127.0.0.1:50929/CLvtgGY9aKQ=/ [ +795 ms] The Flutter DevTools debugger and profiler on Curvel’s iPad is available at: http://127.0.0.1:9102?uri=http%3A%2F%2F127.0.0.1%3A50929%2FCLvtgGY9aKQ%3D%2F [+44485 ms] [LayoutConstraints] Unable to simultaneously satisfy constraints. [ ] Probably at least one of the constraints in the following list is one you don't want. [ ] Try this: [ ] (1) look at each constraint and try to figure out which you don't expect; [ ] (2) find the code that added the unwanted constraint or constraints and fix it. [ ] ( [ ] "", [ ] "", [ ] "", [ ] "", [ ] "", [ ] "" [ ] ) [ ] Will attempt to recover by breaking constraint [ ] [ ] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. [ ] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. ```
Running "flutter pub get" in client...                           1,910ms
Analyzing client...                                                     
No issues found! (ran in 5.2s)
[✓] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-x64, locale en-DE)
    • Flutter version 2.2.2 at /Users/curvel/dev/flutter
    • Framework revision d79295af24 (3 days ago), 2021-06-11 08:56:01 -0700
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/curvel/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.56.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Curvel’s iPad (mobile) • 00008027-001E08420C22002E • ios            • iOS 14.4.2
    • macOS (desktop)        • macos                     • darwin-x64     • macOS 11.4 20F71 darwin-x64
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 91.0.4472.101

• No issues found!
Curvel commented 3 years ago

@miquelbeltran Sorry I should have mentioned, that the bug only occurs on my iPad not on an iPhone emulator. Maybe an ipados specific label is appropriate? And it works fine with the old official "share" package.

miquelbeltran commented 3 years ago

Good point, I will add a new label. I am not super aware of the difference between the two.

miquelbeltran commented 3 years ago

btw, there was a new release that fixed a related bug https://github.com/fluttercommunity/plus_plugins/issues/251 if you have the chance please let us know if the bug is still present. Thanks!

Curvel commented 3 years ago

Just tested 2.1.4, but it didn't change anything related to this bug.

louis030195 commented 3 years ago

I have the same issue on iPad, even outside AppBar. Nothing better using

share_plus:
  git:
    url: git@github.com:fluttercommunity/plus_plugins.git
    ref: main
    path: packages/share_plus/share_plus
flbaue commented 3 years ago

I just encountered this as well.

Is there a last version that is known to work?

Curvel commented 3 years ago

@flbaue due to the problem, I use the "share" package and do not support the option on the web for now. Haven't tried to use both packages at the same time until now.

flbaue commented 3 years ago

I just saw that inside the example implementation they call the share sheet like this:

...
                 Builder(builder: (BuildContext context) {
                      return ElevatedButton(
                        onPressed: text.isEmpty && imagePaths.isEmpty
                            ? null
                            : () => _onShare(context),
                        child: const Text('Share'),
                      );
                    },
                  ),
...

void _onShare(BuildContext context) async {
    // A builder is used to retrieve the context immediately
    // surrounding the ElevatedButton.
    //
    // The context's `findRenderObject` returns the first
    // RenderObject in its descendent tree when it's not
    // a RenderObjectWidget. The ElevatedButton's RenderObject
    // has its position and size after it's built.
    final box = context.findRenderObject() as RenderBox?;

    if (imagePaths.isNotEmpty) {
      await Share.shareFiles(
        imagePaths,
        text: text,
        subject: subject,
        sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
      );
    } else {
      await Share.share(
        text,
        subject: subject,
        sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
      );
    }
  }

from: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/share_plus/share_plus/example/lib/main.dart

With the provided sharePositionOrigin the sheet is shown as expected. Also the sheet is positioned with a little arrow pointing onto the button.

However, the log regarding the NSLayoutConstraints still appears. But I don't see any visual issue.

Maybe it should be better documented, that the sharePositionOrigin parameter is required on iPad, and how to get the right value for it.

flbaue commented 3 years ago

In addition, the old native implementation from the Share package always sets the origin. If no origin was provided, it will be set to a zero rect. The new implementation leaves the property as nil. But since a popoverPresentationController.sourceRect is required on an iPad, the sheet does not appear.

See share_plus: https://github.com/fluttercommunity/plus_plugins/blob/b94d387d40ce4ee1749855d5b126114622ccbe35/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m#L203

share: https://github.com/flutter/plugins/blob/971d6c38e5cf2f4a2cfc3817d330ffec107d8439/packages/share/ios/Classes/FLTSharePlugin.m#L171

lan2000 commented 3 years ago

share_plus: ^2.1.4

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-x64, locale zh-Hans-CN) [✓] Xcode - develop for iOS and macOS [!] Android Studio (version 2020.3) ✗ Unable to find bundled Java version. [✓] Connected device (1 available)

iPad 14.7.1

I just encountered this as well.

herrmayr commented 3 years ago

I'm encountering the exact same issue, only of iPadOS. It does not matter if the button to invoke the share sheet is placed inside the appbar or anywhere else on screen.

Version: share_plus: ^2.1.4

MohammedErbia commented 3 years ago

I have this error [!] No podspec found forshare_plusin.symlinks/plugins/share_plus/ios``

MaxmaxB commented 3 years ago

Same error on Ipad here iOS 15

tritechlabs commented 3 years ago

+1 am also experiencing this on iPad running iOS 15.1.

Using the latest version of share_plus (3.0.4). If anyone has managed to work around this, please let me know!

jaibyron commented 3 years ago

Also experiencing the same issue on iPad on iOS 15.0.1.

The app hangs for a few seconds then I see this in the console:

[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x282f80d20 H:|-(0)-[_UIActivityContentTitleView:0x10169dc80] (active, names: '|':_UINavigationBarContentView:0x101ac9d20'eBudgetSheet : Sample ...' )>", "<NSLayoutConstraint:0x282f80140 _UIActivityContentTitleView:0x10169dc80.trailing == _UINavigationBarContentView:0x101ac9d20'eBudgetSheet : Sample ...'.trailing (active)>", "<NSLayoutConstraint:0x282f82c10 LPLinkView:0x11c489320.leading == UILayoutGuide:0x2835c6680'UIViewLayoutMarginsGuide'.leading (active)>", "<NSLayoutConstraint:0x282f83570 H:[LPLinkView:0x11c489320]-(27)-| (active, names: '|':_UIActivityContentTitleView:0x10169dc80 )>", "<NSLayoutConstraint:0x282f9fca0 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x101ac9d20'eBudgetSheet : ** Sample ...'.width == 0 (active)>", "<NSLayoutConstraint:0x282f83f20 'UIView-leftMargin-guide-constraint' H:|-(16)-UILayoutGuide:0x2835c6680'UIViewLayoutMarginsGuide' (active, names: '|':_UIActivityContentTitleView:0x10169dc80 )>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x282f82c10 LPLinkView:0x11c489320.leading == UILayoutGuide:0x2835c6680'UIViewLayoutMarginsGuide'.leading (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

lovelessX commented 3 years ago

For what it's worth, I also see the same problem if I go back to share 2.0.4 on iPadOS 15. I'm wondering if iPad OS changed something and broke a bunch of stuff.

Albertbol commented 3 years ago

I have the same issue with iPad, share_plus 3.0.4

jaibyron commented 3 years ago

I just saw that inside the example implementation they call the share sheet like this:

...
                 Builder(builder: (BuildContext context) {
                      return ElevatedButton(
                        onPressed: text.isEmpty && imagePaths.isEmpty
                            ? null
                            : () => _onShare(context),
                        child: const Text('Share'),
                      );
                    },
                  ),
...

void _onShare(BuildContext context) async {
    // A builder is used to retrieve the context immediately
    // surrounding the ElevatedButton.
    //
    // The context's `findRenderObject` returns the first
    // RenderObject in its descendent tree when it's not
    // a RenderObjectWidget. The ElevatedButton's RenderObject
    // has its position and size after it's built.
    final box = context.findRenderObject() as RenderBox?;

    if (imagePaths.isNotEmpty) {
      await Share.shareFiles(
        imagePaths,
        text: text,
        subject: subject,
        sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
      );
    } else {
      await Share.share(
        text,
        subject: subject,
        sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
      );
    }
  }

from: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/share_plus/share_plus/example/lib/main.dart

With the provided sharePositionOrigin the sheet is shown as expected. Also the sheet is positioned with a little arrow pointing onto the button.

However, the log regarding the NSLayoutConstraints still appears. But I don't see any visual issue.

Maybe it should be better documented, that the sharePositionOrigin parameter is required on iPad, and how to get the right value for it.

Thanks, I've adopted this approach, and it seems to resolve the issue for me.

KANekT commented 2 years ago
// A builder is used to retrieve the context immediately
// surrounding the ElevatedButton.
//
// The context's `findRenderObject` returns the first
// RenderObject in its descendent tree when it's not
// a RenderObjectWidget. The ElevatedButton's RenderObject
// has its position and size after it's built.
final box = context.findRenderObject() as RenderBox?;

sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,

work in iPad iOS 15 in my app

SUWW commented 2 years ago

我有这个错误 [!] No podspec found forshare_plus in.symlinks/plugins/share_plus/ios``

I have this error [!] No podspec found forshare_plusin.symlinks/plugins/share_plus/ios``

How did you solve this problem? When I run it on Android, there is no problem, but when I run it on the iPhone, it reports this error in pod install. . Thank you very much

NighttCoder commented 2 years ago

I also have this issue in iPad - this seems to work for me sharePositionOrigin: Rect.fromLTWH(0, 0, deviceWidth, deviceHeight / 2),

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

lovelessX commented 2 years ago

This is still an open issue. If you're using an overflow action bar item to trigger the event, the render box does not work and we get the error as described above: https://github.com/fluttercommunity/plus_plugins/issues/305#issuecomment-956494654

miquelbeltran commented 2 years ago

@lovelessX can you provide a code sample that triggers the issue?

lovelessX commented 2 years ago

@miquelbeltran Here is a gist with the minimum amount necessary to make it break.

https://gist.github.com/lovelessX/4b346ed179edf10a8b1aebf1a1586c32

This is using share_plus 4.0.8. The Share action is in the overflow menu as prescribed. This fails on iPad.

miquelbeltran commented 2 years ago

I checked your code and you have an error in it.

You are using the context of the MyHomePage, so the box calculation is wrong.

If you wrap the PopupMenuButton with a Builder then it should work:

 Builder(
            builder: (context) {
              return PopupMenuButton(
                onSelected: (PopupMenuItemOptions value) {
                  switch (value) {
                    case PopupMenuItemOptions.share:
                      final RenderBox box = context.findRenderObject() as RenderBox;
                      Share.share("Share this text", sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size);
                      break;
                  }
                },
                itemBuilder: (BuildContext context) {
                  return [
                    const PopupMenuItem(
                      value: PopupMenuItemOptions.share,
                      child: Text("Share"),
                    ),
                  ];
                },
              );
            }
          ),

image

lovelessX commented 2 years ago

Thank you for finding that.

One weird thing is it doesn't break on Android or iOS. But this solution works.

miquelbeltran commented 2 years ago

That's expected, the native share sheet works differently on iPad than on iPhone (and on Android). This is also documented in the share_plus readme: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/share_plus/share_plus/README.md#ipad

RomanSoviak commented 2 years ago

@miquelbeltran Hi! I have this issue, like guys below [!] No podspec found for share_plusin.symlinks/plugins/share_plus/ios How can I solve it?

miquelbeltran commented 2 years ago

@miquelbeltran Hi!

I have this issue, like guys below

[!] No podspec found for share_plusin.symlinks/plugins/share_plus/ios

How can I solve it?

This is unrelated to the current issue. Open a new ticket with your question.

RomanSoviak commented 2 years ago

I upgraded to v. 1.2.0 and issue [!] No podspec found for share_plusin.symlinks/plugins/share_plus/ios has gone