Closed apgapg closed 4 years ago
Hi @apgapg
Couldn't reproduce this issue on latest dev
can you please provide your flutter doctor -v
and flutter run --verbose
?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you
Please also see https://github.com/flutter/flutter/issues/57940
Hi @apgapg Given your comment, i feel safe to close the issue if you disagree please write in the comments and I will reopen it T hank you
same issue. When a new project is create, the ios first run able to run in the simulator. Once it is stopped and run again, then it throws error as following.
[ +4 ms] Error running pod install [ +2 ms] Error launching application on iPhone 11 Pro Max. [ +5 ms] "flutter run" took 13,424ms. [ +10 ms]
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:607:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:977:18)
#3 _rootRunUnary (dart:async/zone.dart:1198:47)
#4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#7 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#11 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#12 _rootRunUnary (dart:async/zone.dart:1198:47)
#13 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#14 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#16 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#18 Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
#19 _rootRun (dart:async/zone.dart:1190:13)
#20 _CustomZone.run (dart:async/zone.dart:1093:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#22 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
@david201601
please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v
.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to Reproduce
First time running ios app in debug mode on ios simulator works fine but on stopping and running it second time it gives error.
Logs
``` Launching lib/main_prod.dart on iPhone 8 Plus in debug mode... Warning: Missing build name (CFBundleShortVersionString). Warning: Missing build number (CFBundleVersion). Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store. Running Xcode build... Xcode build done. 120.8s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ 1 warning generated. /Users/ayushpgupta/development/flutter/.pub-cache/git/flutter_qrcode_reader-ff0a26bd0ec6ef1ddfc5a6122e536f592e884077/ios/Classes/QRCodeReaderPlugin.m:138:42: warning: 'defaultDeviceWithDeviceType:mediaType:position:' is only available on iOS 10.0 or newer [-Wunguarded-availability] captureDevice = [AVCaptureDevice defaultDeviceWithDeviceType: AVCaptureDeviceTypeBuiltInWideAngleCamera ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In module 'AVFoundation' imported from /Users/ayushpgupta/development/flutter/.pub-cache/git/flutter_qrcode_reader-ff0a26bd0ec6ef1ddfc5a6122e536f592e884077/ios/Classes/QRCodeReaderPlugin.h:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:558:1: note: 'defaultDeviceWithDeviceType:mediaType:position:' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0 + (nullable AVCaptureDevice *)defaultDeviceWithDeviceType:(AVCaptureDeviceType)deviceType mediaType:(nullable AVMediaType)mediaType position:(AVCaptureDevicePosition)position API_AVAILABLE(macos(10.15), ios(10.0)); ^ /Users/ayushpgupta/development/flutter/.pub-cache/git/flutter_qrcode_reader-ff0a26bd0ec6ef1ddfc5a6122e536f592e884077/ios/Classes/QRCodeReaderPlugin.m:138:42: note: enclose 'defaultDeviceWithDeviceType:mediaType:position:' in an @available check to silence this warning captureDevice = [AVCaptureDevice defaultDeviceWithDeviceType: AVCaptureDeviceTypeBuiltInWideAngleCamera ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ayushpgupta/development/flutter/.pub-cache/git/flutter_qrcode_reader-ff0a26bd0ec6ef1ddfc5a6122e536f592e884077/ios/Classes/QRCodeReaderPlugin.m:138:71: warning: 'AVCaptureDeviceTypeBuiltInWideAngleCamera' is only available on iOS 10.0 or newer [-Wunguarded-availability] captureDevice = [AVCaptureDevice defaultDeviceWithDeviceType: AVCaptureDeviceTypeBuiltInWideAngleCamera ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In module 'AVFoundation' imported from /Users/ayushpgupta/development/flutter/.pub-cache/git/flutter_qrcode_reader-ff0a26bd0ec6ef1ddfc5a6122e536f592e884077/ios/Classes/QRCodeReaderPlugin.h:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:447:38: note: 'AVCaptureDeviceTypeBuiltInWideAngleCamera' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0 AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0)) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; ^ /Users/ayushpgupta/development/flutter/.pub-cache/git/flutter_qrcode_reader-ff0a26bd0ec6ef1ddfc5a6122e536f592e884077/ios/Classes/QRCodeReaderPlugin.m:138:71: note: enclose 'AVCaptureDeviceTypeBuiltInWideAngleCamera' in an @available check to silence this warning captureDevice = [AVCaptureDevice defaultDeviceWithDeviceType: AVCaptureDeviceTypeBuiltInWideAngleCamera ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. 1 warning generated. In file included from /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:2: /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command [-Wdocumentation] @param sharedStyle ~~~~~~~~~~~~~~~~~^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command [-Wdocumentation] @param allowTapToDismiss ~~~~~~~~~~~~~~~~~~~~~~~^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function declaration [-Wdocumentation] @param allowTapToDismiss ^~~~~~~~~~~~~~~~~ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'? @param allowTapToDismiss ^~~~~~~~~~~~~~~~~ tapToDismissEnabled /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command [-Wdocumentation] @param queueEnabled ~~~~~~~~~~~~~~~~~~^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:19:23: warning: unused variable 'viewController' [-Wunused-variable] UIViewController *viewController = ^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:70:21: warning: unused variable 'topPadding' [-Wunused-variable] CGFloat topPadding = window.safeAreaInsets.top; ^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:71:21: warning: unused variable 'bottomPadding' [-Wunused-variable] CGFloat bottomPadding = window.safeAreaInsets.bottom; ^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:48:19: warning: unused variable 'size' [-Wunused-variable] NSNumber *size = call.arguments[@"size"]; ^ 8 warnings generated. 9 warnings generated. /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.8+2/ios/Classes/CameraPlugin.m:257:26: warning: 'AVCapturePhotoOutput' is only available on iOS 10.0 or newer [-Wunguarded-availability] _capturePhotoOutput = [AVCapturePhotoOutput new]; ^~~~~~~~~~~~~~~~~~~~ In module 'AVFoundation' imported from /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.8+2/ios/Classes/CameraPlugin.m:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:48:12: note: 'AVCapturePhotoOutput' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0 @interface AVCapturePhotoOutput : AVCaptureOutput ^ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.8+2/ios/Classes/CameraPlugin.m:257:26: note: enclose 'AVCapturePhotoOutput' in an @available check to silence this warning _capturePhotoOutput = [AVCapturePhotoOutput new]; ^~~~~~~~~~~~~~~~~~~~ /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.8+2/ios/Classes/CameraPlugin.m:276:3: warning: 'AVCapturePhotoSettings' is only available on iOS 10.0 or newer [-Wunguarded-availability] AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettings]; ^~~~~~~~~~~~~~~~~~~~~~ In module 'AVFoundation' imported from /Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.8+2/ios/Classes/CameraPlugin.m:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:777:12: note: 'AVCapturePhotoSettings' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0 @interface AVCapturePhotoSettings : NSObjectTo make it run second time i have to: