编译framework乱七八糟的错误

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。