Closed aovooyov closed 2 years ago
equal problem
its dont work @hrxiang
its dont work @hrxiang
flutter_openim_sdk:
git:
url: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter.git
ref: fix-ios-simulator
@hrxiang Launching lib/main_dev.dart on iPhone 12 in debug mode... lib/main_dev.dart:1 Xcode build done. 29,3s Failed to build iOS app Error output from Xcode build: ↳ --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:C7BC1DE2-5841-4CD6-8E71-F03D12332DA8, OS:15.0, name:iPad (9th generation) } { platform:iOS Simulator, id:60DB023F-3878-4B72-A3AE-F396F4C1B38A, OS:15.0, name:iPad Air (4th generation) } { platform:iOS Simulator, id:E6158E93-1569-453E-AC27-167D96A27849, OS:15.0, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:8CDC76D9-C957-46FF-9939-9317D0412013, OS:15.0, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:780B12C4-D664-49A2-861C-6549AF87F7BD, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:B5F917E4-C191-460F-B42F-34757827A22F, OS:15.0, name:iPad mini (6th generation) } { platform:iOS Simulator, id:E9BBBFFF-0BE0-42A1-A73C-BE47B724FEB3, OS:15.0, name:iPhone 8 } { platform:iOS Simulator, id:5D5CE282-7971-4868-A6C9-B9AF817BCF85, OS:15.0, name:iPhone 8 Plus } { platform:iOS Simulator, id:4D35CB17-A2BA-4ABE-BAC3-3E9C7408069C, OS:15.0, name:iPhone 11 } { platform:iOS Simulator, id:312D0E14-472E-44B0-9390-A8A1873B9A2A, OS:15.0, name:iPhone 11 Pro } { platform:iOS Simulator, id:BA5981F6-75CA-43BC-80B4-60C738F91389, OS:15.0, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:D5CADCAF-A6B1-44AB-8A4A-8A5E9D88818A, OS:15.0, name:iPhone 12 } { platform:iOS Simulator, id:F595990E-82E0-46BE-8D1F-F9B7E230D6EE, OS:15.0, name:iPhone 12 Pro } { platform:iOS Simulator, id:29285B17-FCAE-4817-9E3B-73126106EF47, OS:15.0, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:3279D78D-9172-451A-97EB-1557827D35E2, OS:15.0, name:iPhone 12 mini } { platform:iOS Simulator, id:BDEDAF88-3D19-463E-B967-97EE1B69826F, OS:15.0, name:iPhone 13 } { platform:iOS Simulator, id:AC338F07-5151-4CC2-BE33-EA92FC0B8A01, OS:15.0, name:iPhone 13 Pro } { platform:iOS Simulator, id:184DBAAF-7351-4A21-AF3D-496C7F7A4E02, OS:15.0, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:278F7765-F362-4F76-B7F4-6979F3B26127, OS:15.0, name:iPhone 13 mini } { platform:iOS Simulator, id:4E1EC68D-9D17-449C-B7EC-08C96F8A0C64, OS:15.0, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:8E4F645B-B0A4-49EA-B6F3-9CACE2EB704A, OS:15.0, name:iPod touch (7th generation) } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001C14120C31001E } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } BUILD FAILED Xcode's output: ↳ /Users/idontsudo/flutter-im-project/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'catcher' not found @import catcher;
1 error generated.
note: Using new build system
its no problem by catcher dependeses
but flutter demo build failed stack trace
Launching lib/main.dart on iPhone 12 in debug mode... Xcode build done. 48,7s Failed to build iOS app Error output from Xcode build: ↳ --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:C7BC1DE2-5841-4CD6-8E71-F03D12332DA8, OS:15.0, name:iPad (9th generation) } { platform:iOS Simulator, id:60DB023F-3878-4B72-A3AE-F396F4C1B38A, OS:15.0, name:iPad Air (4th generation) } { platform:iOS Simulator, id:E6158E93-1569-453E-AC27-167D96A27849, OS:15.0, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:8CDC76D9-C957-46FF-9939-9317D0412013, OS:15.0, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:780B12C4-D664-49A2-861C-6549AF87F7BD, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:B5F917E4-C191-460F-B42F-34757827A22F, OS:15.0, name:iPad mini (6th generation) } { platform:iOS Simulator, id:E9BBBFFF-0BE0-42A1-A73C-BE47B724FEB3, OS:15.0, name:iPhone 8 } { platform:iOS Simulator, id:5D5CE282-7971-4868-A6C9-B9AF817BCF85, OS:15.0, name:iPhone 8 Plus } { platform:iOS Simulator, id:4D35CB17-A2BA-4ABE-BAC3-3E9C7408069C, OS:15.0, name:iPhone 11 } { platform:iOS Simulator, id:312D0E14-472E-44B0-9390-A8A1873B9A2A, OS:15.0, name:iPhone 11 Pro } { platform:iOS Simulator, id:BA5981F6-75CA-43BC-80B4-60C738F91389, OS:15.0, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:D5CADCAF-A6B1-44AB-8A4A-8A5E9D88818A, OS:15.0, name:iPhone 12 } { platform:iOS Simulator, id:F595990E-82E0-46BE-8D1F-F9B7E230D6EE, OS:15.0, name:iPhone 12 Pro } { platform:iOS Simulator, id:29285B17-FCAE-4817-9E3B-73126106EF47, OS:15.0, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:3279D78D-9172-451A-97EB-1557827D35E2, OS:15.0, name:iPhone 12 mini } { platform:iOS Simulator, id:BDEDAF88-3D19-463E-B967-97EE1B69826F, OS:15.0, name:iPhone 13 } { platform:iOS Simulator, id:AC338F07-5151-4CC2-BE33-EA92FC0B8A01, OS:15.0, name:iPhone 13 Pro } { platform:iOS Simulator, id:184DBAAF-7351-4A21-AF3D-496C7F7A4E02, OS:15.0, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:278F7765-F362-4F76-B7F4-6979F3B26127, OS:15.0, name:iPhone 13 mini } { platform:iOS Simulator, id:4E1EC68D-9D17-449C-B7EC-08C96F8A0C64, OS:15.0, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:8E4F645B-B0A4-49EA-B6F3-9CACE2EB704A, OS:15.0, name:iPod touch (7th generation) } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001C14120C31001E } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } BUILD FAILED Xcode's output: ↳ / com.apple.ibtool.document.warnings / /Users/idontsudo/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/ios/Storyboards/WebView.storyboard:global: warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9] ../.pub-cache/hosted/pub.dartlang.org/file_picker-4.2.3/lib/src/platform_file.dart:45:12: Error: A value of type 'String?' can't be returned from a function with return type 'String' because 'String?' is nullable and 'String' isn't. return _path; ^ Failed to package /Users/idontsudo/Open-IM-Flutter-Demo. Command PhaseScriptExecution failed with a nonzero exit code note: Using new build system note: Planning note: Build preparation complete note: Building targets in parallel warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'Runner' from project 'Runner') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'Pods-Runner' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'url_launcher' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'video_player' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'wakelock' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'sqflite' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'shared_preferences' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'record' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'qr_code_scanner' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'photo_manager' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'permission_handler' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'path_provider_ios' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'package_info_plus' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'open_file' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'libwebp' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'just_audio' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'jpush_flutter' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'image_picker' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'image_gallery_saver' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'image_cropper' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'flutter_openim_sdk' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'flutter_local_notifications' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'flutter_inappwebview' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'flutter_image_compress' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'flutter_app_badger' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'file_picker' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'camera' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, x86_64, i386) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'audio_session' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'TOCropViewController' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'TOCropViewController' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'SwiftyGif' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'SDWebImageWebPCoder' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'SDWebImage' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'OrderedSet' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'OrderedSet' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'Mantle' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'Mantle' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'MTBBarcodeScanner' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'MTBBarcodeScanner' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'FMDB' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'FMDB' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'DKPhotoGallery' from project 'Pods') warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (i386, arm64). (in target 'DKImagePickerController' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'JPush' from project 'Pods') /Users/idontsudo/Open-IM-Flutter-Demo/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'JCore' from project 'Pods') Could not build the application for the simulator. Error launching application on iPhone 12. Exited (sigterm)
How to Build Flutter App In Release Mode for iOS?