gpt4 book ai didi

xcode - 如何禁用 "Multiple methods named ... found with mismatched result, parameter type or attributes"

转载 作者:行者123 更新时间:2023-12-04 08:48:28 32 4
gpt4 key购买 nike

我刚刚开始使用一个我已经工作了一段时间的项目的 Xcode 6.3。我做了一些更改,然后运行了以前的工作程序。结果:构建失败并显示消息

编译 ZXParsedResult.m...
enter image description here

所以ZXing库突然不能再编译了。我猜这是另一个 XCode 错误(即使重置对以前工作的代码库的所有更改,该程序也不会运行)。是否可以禁用此错误消息?

我已经成功触发了该项目的清理。

最佳答案

看起来问题已在最新版本的库中解决,请参阅关于此问题的讨论 https://github.com/TheLevelUp/ZXingObjC/issues/208

如果您还没有准备好升级到最新版本,我更喜欢讨论中的此修复程序

  • (id)parsedResultWithType:(ZXParsedResultType)type {
    返回 [(ZXParsedResult *)[self alloc] initWithType:type];
    }

  • 有关此类错误的更多信息
    new in Xcode 6.3/iOS 8.3: using self alloc for convenience constructor causes build error

    关于xcode - 如何禁用 "Multiple methods named ... found with mismatched result, parameter type or attributes",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29694631/

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