美好的一天,不幸的是我现在有一段时间 Codemagic 不再获得我的 IOS 版本的问题。在本地和通过 XCode 我可以毫无问题地构建项目并将其加载到 Appstore 中。只有 Codemagic 做得不对。我很高兴有任何意见。我已经经历了不同的部署版本。
Failed to build iOS app
Error output from Xcode build:
↳
** ARCHIVE FAILED **
Xcode's output:
↳
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:48:7: warning: 'UIUserNotificationType' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
UIUserNotificationType notificationTypes = 0;
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:49:28: warning: 'UIUserNotificationTypeSound' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
notificationTypes |= UIUserNotificationTypeSound;
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:50:28: warning: 'UIUserNotificationTypeAlert' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
notificationTypes |= UIUserNotificationTypeAlert;
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:51:28: warning: 'UIUserNotificationTypeBadge' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
notificationTypes |= UIUserNotificationTypeBadge;
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:52:7: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:notificationTypes categories:nil];
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
@interface UIUserNotificationSettings : NSObject
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:52:74: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:notificationTypes categories:nil];
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
@interface UIUserNotificationSettings : NSObject
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:53:42: warning: 'registerUserNotificationSettings:' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:] [-Wdeprecated-declarations]
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:251:1: note: 'registerUserNotificationSettings:' has been explicitly marked deprecated here
- (void)registerUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]", ios(8.0, 10.0)) API_UNAVAILABLE(tvos);
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:75:5: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
UIUserNotificationSettings * setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
@interface UIUserNotificationSettings : NSObject
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:75:79: warning: 'currentUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:] [-Wdeprecated-declarations]
UIUserNotificationSettings * setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:254:70: note: property 'currentUserNotificationSettings' is declared deprecated here
@property(nonatomic, readonly, nullable) UIUserNotificationSettings *currentUserNotificationSettings API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]", ios(8.0, 10.0)) API_UNAVAILABLE(tvos);
^
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:254:70: note: 'currentUserNotificationSettings' has been explicitly marked deprecated here
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.6/ios/Classes/strategies/NotificationPermissionStrategy.m:76:26: warning: 'UIUserNotificationTypeNone' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
if (setting.types == UIUserNotificationTypeNone) permissionStatus = PermissionStatusDenied;
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
^
10 warnings generated.
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
/Users/builder/programs/flutter_2_8_1/.pub-cache/git/light_compressor_fork-a760b63f38c67d1ba788032fec7a14a0db32f8b5/ios/Classes/SwiftLightCompressorPlugin.swift:28:20: warning: immutable value 'saveInGallery' was never used; consider replacing with '_' or removing it
let saveInGallery : Bool = myArgs["saveInGallery"] as? Bool,
~~~~^~~~~~~~~~~~~
_
4 warnings generated.
1 warning generated.
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:17:44: warning: 'UIImagePickerControllerReferenceURL' is deprecated: first deprecated in iOS 11.0 - Will be removed in a future release, use PHPicker. [-Wdeprecated-declarations]
NSURL *referenceURL = [info objectForKey:UIImagePickerControllerReferenceURL];
^
In module 'UIKit' imported from /Users/builder/clone/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:62:51: note: 'UIImagePickerControllerReferenceURL' has been explicitly marked deprecated here
UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(4.1, 11.0)) API_UNAVAILABLE(tvos); // an NSURL that references an asset in the AssetsLibrary framework
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:21:47: warning: 'fetchAssetsWithALAssetURLs:options:' is deprecated: first deprecated in iOS 11 - Will be removed in a future release [-Wdeprecated-declarations]
PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithALAssetURLs:@[ referenceURL ]
^
In module 'Photos' imported from /Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/ios/Classes/FLTImagePickerPhotoAssetUtil.h:6:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h:77:1: note: 'fetchAssetsWithALAssetURLs:options:' has been explicitly marked deprecated here
+ (PHFetchResult<PHAsset *> *)fetchAssetsWithALAssetURLs:(NSArray<NSURL *> *)assetURLs options:(nullable PHFetchOptions *)options API_DEPRECATED("Will be removed in a future release", ios(8, 11), tvos(8, 11)) API_UNAVAILABLE(macos);
^
2 warnings generated.
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:52:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)captureOutput:(AVCapturePhotoOutput *)output
^
In module 'AVFoundation' imported from /Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:8:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:756:1: note: method 'captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:' declared here
- (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhotoSampleBuffer:(nullable CMSampleBufferRef)photoSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer resolvedSettings:(AVCaptureResolvedPhotoSettings *)resolvedSettings bracketSettings:(nullable AVCaptureBracketedStillImageSettings *)bracketSettings error:(nullable NSError *)error API_DEPRECATED_WITH_REPLACEMENT("-captureOutput:didFinishProcessingPhoto:error:", ios(10.0, 11.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos);
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:65:7: warning: 'JPEGPhotoDataRepresentationForJPEGSampleBuffer:previewPhotoSampleBuffer:' is deprecated: first deprecated in iOS 11.0 [-Wdeprecated-declarations]
JPEGPhotoDataRepresentationForJPEGSampleBuffer:photoSampleBuffer
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-[AVCapturePhoto fileDataRepresentation]
In module 'AVFoundation' imported from /Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:8:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:546:1: note: 'JPEGPhotoDataRepresentationForJPEGSampleBuffer:previewPhotoSampleBuffer:' has been explicitly marked deprecated here
+ (nullable NSData *)JPEGPhotoDataRepresentationForJPEGSampleBuffer:(CMSampleBufferRef)JPEGSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer API_DEPRECATED_WITH_REPLACEMENT("-[AVCapturePhoto fileDataRepresentation]", ios(10.0, 11.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos);
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:592:13: warning: 'OSAtomicCompareAndSwapPtrBarrier' is deprecated: first deprecated in iOS 10.0 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead [-Wdeprecated-declarations]
while (!OSAtomicCompareAndSwapPtrBarrier(old, newBuffer, (void **)&_latestPixelBuffer)) {
^
In module 'Darwin' imported from /Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:11:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/libkern/OSAtomicDeprecated.h:548:6: note: 'OSAtomicCompareAndSwapPtrBarrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwapPtrBarrier( void *__oldValue, void *__newValue, void * volatile *__theValue );
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:807:11: warning: 'OSAtomicCompareAndSwapPtrBarrier' is deprecated: first deprecated in iOS 10.0 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead [-Wdeprecated-declarations]
while (!OSAtomicCompareAndSwapPtrBarrier(pixelBuffer, nil, (void **)&_latestPixelBuffer)) {
^
In module 'Darwin' imported from /Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+5/ios/Classes/CameraPlugin.m:11:
/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/libkern/OSAtomicDeprecated.h:548:6: note: 'OSAtomicCompareAndSwapPtrBarrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwapPtrBarrier( void *__oldValue, void *__newValue, void * volatile *__theValue );
^
4 warnings generated.
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/BeanCovertor.swift:366:36: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
config.encryptionKdfSalt = Data(bytes: encryptionKdfSalt)
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/Callback.swift:13:20: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
protocol Callback: class {
^~~~~
AnyObject
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/Extensions.swift:121:22: warning: 'delay' is deprecated
"delay": delay,
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:684:31: warning: 'startAudioMixing(_:loopback:replace:cycle:)' is deprecated: use startAudioMixing(.., startPos) instead
callback.code(engine?.startAudioMixing(params["filePath"] as! String, loopback: params["loopback"] as! Bool, replace: params["replace"] as! Bool, cycle: (params["cycle"] as! NSNumber).intValue))
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:724:31: warning: 'getAudioMixingDuration()' is deprecated: use getAudioFileInfo:filePath instead.
callback.code(engine?.getAudioMixingDuration()) {
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:730:67: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
callback.code(engine?.getAudioFileInfo(params["filePath"] as! String))
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:730:69: note: use 'as?' to perform a conditional downcast to 'String'
callback.code(engine?.getAudioFileInfo(params["filePath"] as! String))
^
?
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:730:48: note: add parentheses around the cast to silence this warning
callback.code(engine?.getAudioFileInfo(params["filePath"] as! String))
^
( )
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:785:31: warning: 'playEffect(_:filePath:loopCount:pitch:pan:gain:publish:)' is deprecated: use playEffect:filePath:loopCount:pitch:pan:gain:publish:startPos instead.
callback.code(engine?.playEffect((params["soundId"] as! NSNumber).int32Value, filePath: params["filePath"] as? String, loopCount: (params["loopCount"] as! NSNumber).int32Value, pitch: (params["pitch"] as! NSNumber).doubleValue, pan: (params["pan"] as! NSNumber).doubleValue, gain: (params["gain"] as! NSNumber).doubleValue, publish: params["publish"] as! Bool))
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:843:31: warning: 'setLocalVoiceChanger' is deprecated: use setAudioEffectPreset or setVoiceBeautifierPreset instead.
callback.code(engine?.setLocalVoiceChanger(AgoraAudioVoiceChanger(rawValue: (params["voiceChanger"] as! NSNumber).intValue)!))
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:847:31: warning: 'setLocalVoiceReverbPreset' is deprecated: use setAudioEffectPreset or setVoiceBeautifierPreset instead.
callback.code(engine?.setLocalVoiceReverbPreset(AgoraAudioReverbPreset(rawValue: (params["preset"] as! NSNumber).intValue)!))
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:965:31: warning: 'startEchoTest' is deprecated: use startEchoTestWithInterval instead.
callback.code(engine?.startEchoTest())
^
/Users/builder/programs/flutter_2_8_1/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-4.2.0/ios/Classes/Base/RtcEngine.swift:1056:31: warning: 'startAudioRecording(_:sampleRate:quality:)' is deprecated: use startAudioRecordingWithConfig:config instead.
callback.code(engine?.startAudioRecording(params["filePath"] as! String, sampleRate: (params["sampleRate"] as! NSNumber).intValue, quality: AgoraAudioRecordingQuality(rawValue: (params["quality"] as! NSNumber).intValue)!))
^
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Encountered error while archiving for device.
Build failed :|
Failed to build for iOS