iOS - 动态库上架瘦身(去调虚拟机架构),不然验证会报错。

eg:

localhost:改造 M.emor.Y$ lipo WebRTC.framework/WebRTC -thin armv7 -output WebRTC_armv7
localhost:改造 M.emor.Y$ lipo WebRTC.framework/WebRTC -thin arm64 -output WebRTC_arm64
localhost:改造 M.emor.Y$ lipo -create WebRTC_armv7 WebRTC_arm64 -output WebRTC
localhost:改造 M.emor.Y$ mv WebRTC WebRTC.framework/

切换到动态库同一路径下,将webRTC替换为你的动态库,执行命令即可。

 

报错:

1 package(s) were not uploaded because they had problems:
/var/folders/hf/fbw9znxx41z_m51ns6xc2fbm0000gn/T/AC45F944-5D6E-4A20-ABE3-9EBBAACBABD9/1310284886.itmsp - Error Messages:
ERROR ITMS-90087: "Unsupported Architectures. The executable for UZApp.app/Frameworks/WebRTC.framework contains unsupported architectures '[x86_64, i386]'."
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'UZApp.app/Frameworks/WebRTC.framework/WebRTC' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."

 

转载于:https://www.cnblogs.com/baitongtong/p/10046455.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值