iOS开发 - cocoapods - pod package报
2021-04-13 本文已影响0人
欧币杰昔
在使用 pod package 打包库时才出现一下错误:
Mangling symbols
Building mangled framework
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: Pods/build/package.a and Pods/build-sim/package.a have the same architectures (arm64) and can't be in the same fat output file
[!] 'YHSocket' uses the unencrypted 'http' protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts. Otherwise, please reach out to the library author to notify them of this security issue.
解决办法:
在这个位置增加这一行,最终解决
/Library/Ruby/Gems/2.6.0/gems/cocoapods-packager-1.5.0/lib/cocoapods-packager/pod_utils.rb
image.png
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'