xcode16:Asset validation failed (90482)Invalid Executable. The executable ‘xxx.app/Frameworks/ImSDK
xcode16提包报错:
Asset validation failed (90482)
Invalid Executable. The executable 'MS/Frameworks/ImSDK.framework/ImSDK' contains bitcode. (ID: 316682b3-71b5-478b-ae65-5a759a448624)
方法1:
直接删除报错的库的bitcode,终端执行:(cd 到该库地址,报错的库都执行一遍下面指令)
mac@25pg ImSDK.framework % xcrun bitcode_strip ImSDK -r -o ImSDK
方法二:
bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
framework_path = File.join(Dir.pwd, framework_relative_path)
command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
puts "Stripping bitcode: #{command}"
system(command)
end
framework_paths = [
"/Pods/TXIMSDK_iOS/ImSDK.framework/ImSDK",
"/Pods/NERtcSDK/NERtcSDK.framework/NERtcSDK",
"/Pods/NERtcSDK/NMCBasicModuleFramework.framework/NMCBasicModuleFramework",
]
framework_paths.each do |framework_relative_path|
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
end
注:我是方法一解决的,方法二无效
更多推荐
所有评论(0)