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

标签 ios xcode flutter

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/

    相关文章:

    firebase - flutter firebase phone auth error 已通过安全网 token ,但在 firebase 控制台中未注册匹配的 sha-256

    ios - AFNetworking调用clearAuthorizationHeader

    ios - NSMutableDictionary 比较提取不等于对

    swift - 打开 Package.swift 和使用 `swift package generate-xcodeproj` 然后打开生成的 xcodeproj 文件有什么区别?

    ios - Apple Business Custom Apps 需要哪种证书和配置文件

    json - 如何从dart中的Json文件读取对象并映射到变量?

    ios - 我如何调试 : libc++abi. dylib : terminating with uncaught exception of type NSException?

    objective-c - 关于iOS目标版本和SDK版本

    ios - 如何将 DeviceMotion 功能添加到 Swift Playground?

    flutter - 图片未填充其父对象