gpt4 book ai didi

ios - 尝试为 iOS 构建 flutter 应用程序时出现问题

转载 作者:行者123 更新时间:2023-12-03 03:55:31 25 4
gpt4 key购买 nike

我正在做一个项目,我试图在 Xcode 的 iOS 模拟器上构建,但由于一大堆我并不真正理解的错误,构建一直失败。

如果有人有时间,请寻求指导和帮助。

谢谢

Xcode build done.                                           11.9s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **
Xcode's output:

Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
/Users/chris/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/screenshot_callback-1.1.1/ios/Classes/SwiftScreenshotCallbackPlugin.swift:27:34: error: 'userDidTakeScreenshotNotification' has been renamed to 'NSNotification.Name.UIApplicationUserDidTakeScreenshot'
forName: UIApplication.userDidTakeScreenshotNotification,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSNotification.Name.UIApplicationUserDidTakeScreenshot
UIKit.UIApplication:73:22: note: 'userDidTakeScreenshotNotification' was introduced in Swift 4.2
public class let userDidTakeScreenshotNotification: NSNotification.Name
^
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'camera' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'camera' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
Exited (sigterm)```


最佳答案

在您项目的 ios/文件夹中尝试此命令

pod install

如果已经安装,使用

pod update

如果您使用任何相机插件或 image_picker 让我知道

关于ios - 尝试为 iOS 构建 flutter 应用程序时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61481399/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com