美文网首页
iOS开发 - cocoapods - pod package报

iOS开发 - cocoapods - pod package报

作者: 欧币杰昔 | 来源:发表于2021-04-13 14:09 被阅读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'

相关文章

网友评论

      本文标题:iOS开发 - cocoapods - pod package报

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