为什么我收到此错误无法为模拟器构建应用程序。在 iPhone 11 Pro Max 上启动应用程序时出错?
Why im getting this error Could not build the application for the simulator. Error launching application on iPhone 11 Pro Max?
当我在 iOS 模拟器上尝试 运行 我的应用程序时,我收到此错误
有谁知道我为什么收到这个?
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/name/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.3/ios/Classes/FLTImagePickerPlugin.m:149:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil)
^
In module 'UIKit' imported from /Users/name/project/project/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
1 warning generated.
/Users/name/projectname/projectname/ios/Pods/Regift/Regift/AVAssetImageGeneratorTimePoints.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func generateCGImagesAsynchronouslyForTimePoints(timePoints: [TimePoint], completionHandler: @escaping AVAssetImageGeneratorCompletionHandler) {
^~~~~~~
/Users/name/project/project/ios/Pods/Regift/Regift/Regift.swift:251:45: error: missing argument label 'preferredTimescale:' in call
let time = CMTimeMakeWithSeconds(seconds, Constants.TimeInterval)
^
preferredTimescale:
/Users/name/project/project/ios/Pods/Regift/Regift/Regift.swift:303:46: error: missing argument label 'preferredTimescale:' in call
let tolerance = CMTimeMakeWithSeconds(Constants.Tolerance, Constants.TimeInterval)
^
preferredTimescale:
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
该应用程序在上周 运行 完美运行,但我不知道为什么它现在没有构建?
从用户@Huthaifa Muayyad 那里进行一些更改后,现在是错误
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
lib/main.dart:1
Xcode build done. 25,2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/name/projectname/projetcname/ios/Pods/Regift/Regift/AVAssetImageGeneratorTimePoints.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func generateCGImagesAsynchronouslyForTimePoints(timePoints: [TimePoint], completionHandler: @escaping AVAssetImageGeneratorCompletionHandler) {
^~~~~~~
/Users/name/projectname/projectname/ios/Pods/Regift/Regift/Regift.swift:251:45: error: missing argument label 'preferredTimescale:' in call
let time = CMTimeMakeWithSeconds(seconds, Constants.TimeInterval)
^
preferredTimescale:
/Users/name/projectname/projectname/ios/Pods/Regift/Regift/Regift.swift:303:46: error: missing argument label 'preferredTimescale:' in call
let tolerance = CMTimeMakeWithSeconds(Constants.Tolerance, Constants.TimeInterval)
^
preferredTimescale:
gRPC-C++-gRPCCertificates-Cpp-cxhudvivvbfckkebvhcbvchzlxji
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)
尝试取消注释第一行 ios/Podfile 并将其更新为 10.0
,
您的错误还显示 UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
如果您正在使用图像选择器,请尝试更新它。
当我在 iOS 模拟器上尝试 运行 我的应用程序时,我收到此错误 有谁知道我为什么收到这个?
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/name/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.3/ios/Classes/FLTImagePickerPlugin.m:149:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil)
^
In module 'UIKit' imported from /Users/name/project/project/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
1 warning generated.
/Users/name/projectname/projectname/ios/Pods/Regift/Regift/AVAssetImageGeneratorTimePoints.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func generateCGImagesAsynchronouslyForTimePoints(timePoints: [TimePoint], completionHandler: @escaping AVAssetImageGeneratorCompletionHandler) {
^~~~~~~
/Users/name/project/project/ios/Pods/Regift/Regift/Regift.swift:251:45: error: missing argument label 'preferredTimescale:' in call
let time = CMTimeMakeWithSeconds(seconds, Constants.TimeInterval)
^
preferredTimescale:
/Users/name/project/project/ios/Pods/Regift/Regift/Regift.swift:303:46: error: missing argument label 'preferredTimescale:' in call
let tolerance = CMTimeMakeWithSeconds(Constants.Tolerance, Constants.TimeInterval)
^
preferredTimescale:
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
该应用程序在上周 运行 完美运行,但我不知道为什么它现在没有构建?
从用户@Huthaifa Muayyad 那里进行一些更改后,现在是错误
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
lib/main.dart:1
Xcode build done. 25,2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/name/projectname/projetcname/ios/Pods/Regift/Regift/AVAssetImageGeneratorTimePoints.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func generateCGImagesAsynchronouslyForTimePoints(timePoints: [TimePoint], completionHandler: @escaping AVAssetImageGeneratorCompletionHandler) {
^~~~~~~
/Users/name/projectname/projectname/ios/Pods/Regift/Regift/Regift.swift:251:45: error: missing argument label 'preferredTimescale:' in call
let time = CMTimeMakeWithSeconds(seconds, Constants.TimeInterval)
^
preferredTimescale:
/Users/name/projectname/projectname/ios/Pods/Regift/Regift/Regift.swift:303:46: error: missing argument label 'preferredTimescale:' in call
let tolerance = CMTimeMakeWithSeconds(Constants.Tolerance, Constants.TimeInterval)
^
preferredTimescale:
gRPC-C++-gRPCCertificates-Cpp-cxhudvivvbfckkebvhcbvchzlxji
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)
尝试取消注释第一行 ios/Podfile 并将其更新为 10.0
,
您的错误还显示 UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
如果您正在使用图像选择器,请尝试更新它。