gpt4 book ai didi

ios - objc[14025] : Class AMSupportURLConnectionDelegate is implemented in both/usr/lib/libauthinstall. dylib

转载 作者:行者123 更新时间:2023-12-05 00:22:57 24 4
gpt4 key购买 nike

objc[14025]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1efb7ac10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x12c2b82b8). One of the two will be used. Which one is undefined. objc[14025]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1efb7ac60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x12c2b8308). One of the two will be used. Which one is undefined. ** BUILD FAILED **


我尝试过的解决方案:
  • 在项目目录中flutter clean。
  • Flutter pub 获取 Pod 更新
  • Pod 更新
  • Pod 存储库更新
  • 重启 Xcode 和 Mac
  • pods 安装
  • flutter 构建 ios

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

    最佳答案

    Didi您发布了完整的错误消息?我有一个类似的错误信息。然而,在我的例子中,完整的错误日志包含一条关于 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
    在修复了缺少架构的问题后,其他错误消息也消失了。

    关于ios - objc[14025] : Class AMSupportURLConnectionDelegate is implemented in both/usr/lib/libauthinstall. dylib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69641275/

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