美文网首页
编译framework乱七八糟的错误

编译framework乱七八糟的错误

作者: 大王心里苦 | 来源:发表于2019-11-19 13:54 被阅读0次

    1、运行的时候不报错,打包的时候报错

    Bitcode bundle could not be generated because 'XXXXXX' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file 'XXXXXXXXXX' for architecture arm64

    解决办法:Build Settings->Build Options->Enable Bitcode设置为NO

    2、打framework运行时报错

    error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-XXXX

    error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-XXXX is not an object file (not allowed in a library)

    Command Libtool failed with a nonzero exit code

    解决办法:删除Podfile.lock、Pods、XXX.xcworkspace,重新pod install

    相关文章

      网友评论

          本文标题:编译framework乱七八糟的错误

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