先看一下錯誤信息

Snip20240927_1.png
錯誤原因:xcode 16之后蘋果對bitcode審核更加嚴(yán)格了
解決方法1
如果是通過pod導(dǎo)入的只需要在Podfile里添加下面代碼
# 解決M1芯片電腦不能模擬機運行
post_install do |installer|
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",
]
framework_paths.each do |framework_relative_path|
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
end
end
記得把framework_paths里面的路徑換成自己報錯的framework的路徑 如果有多個可以繼續(xù)往里添加比如下面這樣
framework_paths = [
"/Pods/TXIMSDK_iOS/ImSDK.framework/ImSDK",
"/Pods/NIMSDK/NIMSDK.framework/NIMSDK",
]
然后執(zhí)行一下pod install就可以打包上傳提交審核了
解決方法2
也可以使用如下方法解決
解決方法2