美文网首页
Xcode 架构问题

Xcode 架构问题

作者: 男神nick | 来源:发表于2021-08-03 11:53 被阅读0次

    问题

    升级到Xcode12后,运行Release模式后,会提示以下信息:

    The linked library'xxxx.a/Framework'ismissing oneormore architectures requiredbythistarget:armv7.

    又或者

    xxx/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh: line 128: ARCHS[@]: unbound variableCommand PhaseScriptExecution failed with a nonzero exit code

    以上涉及架构问题

    解决方案

    在Target-Build Settings-Excluded Architectures中添加以下代码

    EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8EXCLUDED_ARCHS=$(inherited)$(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))

    相关文章

      网友评论

          本文标题:Xcode 架构问题

          本文链接:https://www.haomeiwen.com/subject/eptevltx.html