objc[14025]:AMSupportURLConnectionDelegate 类在 /usr/lib/libauthinstall.dylib 中实现

Moh*_*yaz 13 xcode ios flutter

\n

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) 中实现。将使用两者之一。哪一个是未定义的。** 构建失败 **

\n
\n

我尝试过的解决方案:

\n
    \n
  • flutter clean\xc2\xa0 项目目录内。
  • \n
  • Flutter pub 获取 Pod 更新
  • \n
  • 吊舱更新
  • \n
  • Pod 存储库更新
  • \n
  • 重新启动 Xcode 和 Mac
  • \n
  • 吊舱安装
  • \n
  • 颤动构建ios
  • \n
\n

我尝试了 flutter clean、pod update、安装,但无法在 ios 模拟器上运行该应用程序。每次我一次又一次地遇到同样的错误。这不是 info plist 的问题,或者但我找不到确切的问题。尝试了来自各种来源的几乎所有可能的解决方案,过去三天我一直在解决这个问题。如果有人可以提供帮助,请...这将非常有帮助。请。

\n

小智 2

你发布了完整的错误消息吗?我有类似的错误消息。然而,就我而言,完整的错误日志包含一条有关 Xcode 缺少为 iOS 模拟器构建此项目所需的体系结构的消息:

\n
    Error output from Xcode build:\n\xe2\x86\xb3\n    objc[7363]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f92f2b90)\n    and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1079b42c8).\n    One of the two will be used. Which one is undefined.\n    objc[7363]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f92f2be0) and\n    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1079b4318). One of\n    the two will be used. Which one is undefined.\n    ** BUILD FAILED **\n\n\nXcode's output:\n\xe2\x86\xb3\n    note: Using new build system\n    note: Planning\n    note: Build preparation complete\n    note: Building targets in dependency order\n    /Users/ralfweinbrecher/Development/flutter-projects/infoapp/ios/Runner.xcodeproj: error: The linked framework\n    'Pods_Runner.framework' is missing one or more architectures required by this target: arm64. (in target 'Runner'\n    from project 'Runner')\n
Run Code Online (Sandbox Code Playgroud)\n

这里 Xcode 抱怨缺少 arm64 平台。我通过将以下行添加到我的 Podfile 来修复此问题:

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

修复了缺失架构的问题后,其他错误消息也消失了。

\n