[ad_1]
I’m attempting so as to add the next code line into my Flutter software’s AppDelegate.swift file as a result of I’m utilizing Amazon S3, you possibly can examine this config right here – https://pub.dev/packages/amazon_s3_cognito#ios
func software(_ software: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) {
// Retailer the completion handler.
AWSS3TransferUtility.interceptApplication(software, handleEventsForBackgroundURLSession: identifier, completionHandler: completionHandler)
}
Under is my code
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func software(
_ software: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return tremendous.software(software, didFinishLaunchingWithOptions: launchOptions)
}
func software(_ software: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) {
// Retailer the completion handler.
AWSS3TransferUtility.interceptApplication(software, handleEventsForBackgroundURLSession: identifier, completionHandler: completionHandler)
}
}
Nevertheless that is throwing me the next error.
Launching lib/principal.dart on iPhone 13 in debug mode...
Xcode construct executed. 10.4s
Didn't construct iOS app
Error output from Xcode construct:
↳
objc[28776]: Class AMSupportURLConnectionDelegate is carried out in each /usr/lib/libauthinstall.dylib (0x20d9bab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Variations/A/MobileDevice (0x105f9c2c8). One of many two shall be used. Which one is undefined.
objc[28776]: Class AMSupportURLSession is carried out in each /usr/lib/libauthinstall.dylib (0x20d9babe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Variations/A/MobileDevice (0x105f9c318). One of many two shall be used. Which one is undefined.
--- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, title:Any iOS Simulator Gadget }
{ platform:iOS Simulator, id:1ABD0743-E247-4003-A707-FF32B0D919CC, OS:15.2, title:iPad (ninth technology) }
{ platform:iOS Simulator, id:0C55A691-D2B7-41C0-931C-3FA45254EBEE, OS:15.2, title:iPad Air (4th technology) }
{ platform:iOS Simulator, id:D6A98800-F0AC-479B-8296-AED806661D77, OS:15.2, title:iPad Professional (9.7-inch) }
{ platform:iOS Simulator, id:AEB0F448-88CF-46BA-B7F2-86F73FC2D06A, OS:15.2, title:iPad Professional (11-inch) (third technology) }
{ platform:iOS Simulator, id:640C9AB6-6852-4F25-A598-414D44F36708, OS:15.2, title:iPad Professional (12.9-inch) (fifth technology) }
{ platform:iOS Simulator, id:C45E1FFD-A4B1-4E69-9D41-EF52944DCFF6, OS:15.2, title:iPad mini (sixth technology) }
{ platform:iOS Simulator, id:C3118792-4E05-4971-9E70-97E8BEF2AF8E, OS:15.2, title:iPhone 8 }
{ platform:iOS Simulator, id:C87519E9-C754-49BE-A0BE-BCEA9D823C8F, OS:15.2, title:iPhone 8 Plus }
{ platform:iOS Simulator, id:5E7237C4-7239-446D-AA20-97625673CCA5, OS:15.2, title:iPhone 11 }
{ platform:iOS Simulator, id:4F0B2537-04B5-4ED8-90F0-076C819A5783, OS:15.2, title:iPhone 11 Professional }
{ platform:iOS Simulator, id:272A8C28-47BC-46B9-8B2F-6DD5B3B561CE, OS:15.2, title:iPhone 11 Professional Max }
{ platform:iOS Simulator, id:F965B511-D3F6-428D-BC40-4B3C620B5720, OS:15.2, title:iPhone 12 }
{ platform:iOS Simulator, id:114A3386-66D5-4C36-BDB5-574FE1C07067, OS:15.2, title:iPhone 12 Professional }
{ platform:iOS Simulator, id:155E2EF9-E9AD-4F74-A7F9-A9702A708080, OS:15.2, title:iPhone 12 Professional Max }
{ platform:iOS Simulator, id:D7D7C57E-25D2-4A6F-8956-442EB0DD524F, OS:15.2, title:iPhone 12 mini }
{ platform:iOS Simulator, id:3C432DFA-3D27-472F-AF97-A71AC22DC5DA, OS:15.2, title:iPhone 13 }
{ platform:iOS Simulator, id:58F3389A-38B0-42F0-8A0A-8D7279D14D55, OS:15.2, title:iPhone 13 Professional }
{ platform:iOS Simulator, id:9C77C570-7653-40BE-B18D-1E9ECF0A0162, OS:15.2, title:iPhone 13 Professional Max }
{ platform:iOS Simulator, id:FAF7A709-FC97-4445-A8ED-478ED5972DF6, OS:15.2, title:iPhone 13 mini }
{ platform:iOS Simulator, id:7D146971-E6B4-4CA0-AB3A-4F41DDB5E59F, OS:15.2, title:iPhone SE (2nd technology) }
{ platform:iOS Simulator, id:F293BCDE-386F-4AF8-B3CE-91F0E96C253B, OS:15.2, title:iPod contact (seventh technology) }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001978AE1ADA001E }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, title:Any iOS Gadget }
** BUILD FAILED **
Xcode's output:
↳
/Customers/xxxwxxx/Paperwork/tasks/flutter/xxx/xxx-customer/ios/Runner/AppDelegate.swift:13:8: error: overriding declaration requires an 'override' key phrase
func software(_ software: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) {
^
override
Flutter.FlutterAppDelegate:71:15: be aware: overridden declaration is right here
open func software(_ software: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void)
^
/Customers/xxxwxxx/Paperwork/tasks/flutter/xxx/xxx-customer/ios/Runner/AppDelegate.swift:15:5: error: can not discover 'AWSS3TransferUtility' in scope
AWSS3TransferUtility.interceptApplication(software, handleEventsForBackgroundURLSession: identifier, completionHandler: completionHandler)
^~~~~~~~~~~~~~~~~~~~
be aware: Utilizing new construct system
be aware: Planning
be aware: Construct preparation full
be aware: Constructing targets in dependency order
/Customers/xxxwxxx/Paperwork/tasks/flutter/xxx/xxx-customer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.2.99. (in goal 'FMDB' from challenge 'Pods')
/Customers/xxxwxxx/Paperwork/tasks/flutter/xxx/xxx-customer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.2.99. (in goal 'BSImageView' from challenge 'Pods')
/Customers/xxxwxxx/Paperwork/tasks/flutter/xxx/xxx-customer/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.2.99. (in goal 'BSGridCollectionViewLayout' from challenge 'Pods')
Couldn't construct the appliance for the simulator.
Error launching software on iPhone 13.
Exited (sigterm)
I need to admit that I lack the native iOS improvement information. What goes unsuitable right here?
[ad_2]
