gpt4 book ai didi

ios - Flutter AMSupportURLConnectionDelegate 都在 ??错误

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

自从我将我的项目迁移到 Apple Silicon mac 以来,我面临着许多问题。我终于设法减少了问题,但不确定这个问题的答案。

Running "flutter pub get" in Flutter_the app copy 3...        760ms
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install... 986ms
Running Xcode build...
Xcode build done. 1.5s
Failed to build iOS app
Error output from Xcode build:

objc[95181]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ??
(0x1160dc2b8). One of the two will be used. Which one is undefined.
objc[95181]: Class AMSupportURLSession is implemented in both ?? (0x20ba23940) and ?? (0x1160dc308). One
of the two will be used. Which one is undefined.
** BUILD FAILED **


Xcode's output:

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
warning: Unable to read contents of XCFileList '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
'Runner')
error: Unable to load contents of file list: '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist' (in target 'Runner' from project
'Runner')
error: Unable to load contents of file list: '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
'Runner')

Could not build the application for the simulator.
Error launching application on iPhone 11.
有什么办法可以解决这个问题。我不确定问题是否写在那里。

最佳答案

最近在更新到 Flutter 2.x 后,我的 M1 macbook 也收到了相同的“Xcode 构建的错误输出”。
通过执行以下操作,我能够解决我的这个问题:

  • 将目录更改为您项目的路径和子目录:

  • your_project/build/ios/Debug-iphonesimulator/
  • 运行 $ xattr -lr Runner.app
  • 运行 $ xattr -cr Runner.app

  • 显然,flutter 项目在包含 Finder 信息的项目应用程序包中具有扩展属性,这会导致错误。
    我发现这些链接有助于引用。
    https://developer.apple.com/library/archive/qa/qa1940/_index.html
    https://github.com/flutter/flutter/issues/72492

    关于ios - Flutter AMSupportURLConnectionDelegate 都在 ??错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66231339/

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