objc[14025]:类AMSupportURLConnectionDelegate在/usr/lib/libauth



objc[14025]:类AMSupportURLConnectionDelegate在/usr/lib/libauthinstall.dylib(0x1efb7ac10)和/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice(0x12c2b82b8)中实现。将使用其中一个。哪一个是未定义的。objc[14025]:类AMSupportURLSession在/usr/lib/libauthinstall.dylib(0x1efb7ac60)和/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice(0x12c2b8308)中实现。将使用其中一个。哪个是未定义的。**生成失败**

我尝试过的解决方案:

  • 在项目目录中清除flutter
  • Flutter酒吧获取播客更新
  • 播客更新
  • Pod回购更新
  • 重新启动Xcode和Mac
  • 吊舱安装
  • 颤振构建ios

我尝试了flutter clean、pod更新、安装,但我无法在ios模拟器上运行该应用程序,。每次我都会一次又一次地犯同样的错误。这不是信息plist的问题,但我找不到确切的问题,。从各种来源尝试了几乎所有可能的解决方案,在过去的三天里,我一直在讨论这个问题。。请任何人帮忙。。。这将非常有帮助。请

你发布了完整的错误消息吗?我收到了类似的错误信息。然而,在我的情况下,完整的错误日志包含一条关于Xcode缺少为iOS模拟器构建此项目所需的架构的消息:

Error output from Xcode build:
↳
objc[7363]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f92f2b90)
and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1079b42c8).
One of the two will be used. Which one is undefined.
objc[7363]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f92f2be0) and
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1079b4318). One of
the two will be used. Which one is undefined.
** BUILD FAILED **

Xcode's output:
↳
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/ralfweinbrecher/Development/flutter-projects/infoapp/ios/Runner.xcodeproj: error: The linked framework
'Pods_Runner.framework' is missing one or more architectures required by this target: arm64. (in target 'Runner'
from project 'Runner')

这里Xcode抱怨缺少arm64平台。我通过在我的Podfile中添加以下行来解决这个问题:

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
# This line was added!
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
config.build_settings['ENABLE_BITCODE'] = 'NO'
end  
end
end

在修复了缺少体系结构的问题后,其他错误消息也消失了。

好吧!我也有类似的问题。我在macOS的终端上执行flutter build ios是成功的,但在jenkins中发生了一个错误,命令的构建是一样的。你应该先检查一下你的compilie环境,试试扑动医生,然后确保你的环境很好。在此处输入图像描述

我遇到了同样的问题,我通过复制终端并检查";使用罗塞塔打开">对于复制的终端,解决方案如此链接的一个步骤所述:https://hackernoon.com/apple-m1-chip-how-to-install-homebrew-using-rosetta-su12331b.

在我的情况下;对数噪声";当我尝试为iOS运行fastlane时。这并没有阻止我完成构建并将其上传到AppStore,但每次在终端中运行命令时都会收到相同的消息,这很烦人。

这对我有效,对你也有希望。

在尝试了一系列web解决方案后,我重新安装了Xcode和CommandLineTools clean,然后还确保从任何ruby环境中使用gem uninstall cocoapods。这似乎终于为我澄清了错误

macOS 12.3测试版(21E5206e)M1 MacBook Pro 2021 M1 Max苹果clang版本13.0.0(clang-130.0.2.930)

在/bin/zsh下的i386或amd64 arch中工作。

更新

在做了更多的测试后,我可以看到它在很大程度上与你的足弓有关,正如下面和其他地方提到的那样。使用完全干净的命令行工具xcode、arm64 brew、rbenv和cocoapods,错误会出现在arm64 shell下,而/NOT/会出现在i386 shell下。也可以直接在默认的arm64 shell下作为-x86_64命令运行:arch -x86_64 xcrun xcodebuild

现在仍然需要诊断/修复的是,扑动(我开始这段旅程的地方)现在明确地将所有这些命令作为手臂64拱运行,所以事情出乎意料地中断/挂起。。。

FWIW,知道我现在学到了什么,我可以向您介绍写得很好、维护得很好的cocoapods故障排除指南,因为它做得很好。

相关内容