Skip to content

Instantly share code, notes, and snippets.

@mubin986
Created March 10, 2023 07:01
Show Gist options
  • Save mubin986/f6b0b34662ec0850a5731bc56b790f1d to your computer and use it in GitHub Desktop.
Save mubin986/f6b0b34662ec0850a5731bc56b790f1d to your computer and use it in GitHub Desktop.
> flutter run
The plugin `flutter_webview_plugin` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2
embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running pod install... 1,661ms
Running Xcode build...
Xcode build done. 49.5s
Failed to build iOS app
Error output from Xcode build:
** BUILD FAILED **
Xcode's output:
Writing result bundle at path:
/var/folders/s0/w9_fsfss6rv059gblhd1_4nw0000gn/T/flutter_tools.FMqEmq/flutter_ios_build_temp_dir4tvMoY/temporary_xcre
sult_bundle
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/volume_controller-2.0.6/ios/Clas
ses/VolumeObserver.swift:21:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
} catch let _ {
^~~~~
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/volume_controller-2.0.6/ios/Clas
ses/VolumeObserver.swift:21:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
} catch let _ {
^~~~~
1 warning generated.
1 warning generated.
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.2.5/ios/Classe
s/FlutterPDFView.m:239:44: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
[[UIApplication sharedApplication] openURL:url];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Target Support
Files/flutter_pdfview/flutter_pdfview-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.1.sdk/S
ystem/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked
deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.2.5/ios/Classe
s/FlutterPDFView.m:239:44: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
[[UIApplication sharedApplication] openURL:url];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Target Support
Files/flutter_pdfview/flutter_pdfview-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.1.sdk/S
ystem/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked
deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/audioplayers_darwin-2.0.0/ios/Cl
asses/AudioContext.swift:78:21: warning: 'audioProcessing' was deprecated in iOS 10.0: No longer supported
return .audioProcessing
^
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/audioplayers_darwin-2.0.0/ios/Cl
asses/AudioContext.swift:78:21: warning: 'audioProcessing' was deprecated in iOS 10.0: No longer supported
return .audioProcessing
^
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryConte
ntVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject'
instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/file_picker-4.6.1/ios/Classes/Fi
lePickerPlugin.m:357:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url{
^
In module 'UIKit' imported from /Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Target Support
Files/file_picker/file_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.1.sdk/S
ystem/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h:27:1: note: method
'documentPicker:didPickDocumentAtURL:' declared here
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url
API_DEPRECATED_WITH_REPLACEMENT("documentPicker:didPickDocumentsAtURLs:", ios(8.0, 11.0));
^
1 warning generated.
/Users/mubin986/Desktop/flutter_sdk/flutter-3.3.10/.pub-cache/hosted/pub.dartlang.org/file_picker-4.6.1/ios/Classes/Fi
lePickerPlugin.m:357:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url{
^
In module 'UIKit' imported from /Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Target Support
Files/file_picker/file_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.1.sdk/S
ystem/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h:27:1: note: method
'documentPicker:didPickDocumentAtURL:' declared here
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url
API_DEPRECATED_WITH_REPLACEMENT("documentPicker:didPickDocumentsAtURLs:", ios(8.0, 11.0));
^
1 warning generated.
../../../../../ostadiosdev/Desktop/work/quranshikkha_flutter/lib/main_dev.dart: Error: Error when reading
'../../../../../ostadiosdev/Desktop/work/quranshikkha_flutter/lib/main_dev.dart': No such file or directory
Failed to package /Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter.
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is
11.0 to 16.1.99. (in target 'SwiftyGif' from project 'Pods')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is
11.0 to 16.1.99. (in target 'SDWebImage' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs.
To address this warning, either add output dependencies to the script phase, or configure it to run in every build by
unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs.
To address this warning, either add output dependencies to the script phase, or configure it to run in every build by
unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/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
11.0 to 16.1.99. (in target 'ReachabilitySwift' from project 'Pods')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/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
11.0 to 16.1.99. (in target 'FMDB' from project 'Pods')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is
11.0 to 16.1.99. (in target 'DKPhotoGallery-DKPhotoGallery' from project 'Pods')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is
11.0 to 16.1.99. (in target 'DKPhotoGallery' from project 'Pods')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is
11.0 to 16.1.99. (in target 'DKImagePickerController-DKImagePickerController' from project 'Pods')
/Users/mubin986/Desktop/work/ios-build/quranshikkha_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is
11.0 to 16.1.99. (in target 'DKImagePickerController' from project 'Pods')
Result bundle written to path:
/var/folders/s0/w9_fsfss6rv059gblhd1_4nw0000gn/T/flutter_tools.FMqEmq/flutter_ios_build_temp_dir4tvMoY/temporary_xcre
sult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment