Xcode16问题

UIView的子类中使用maskView属性,在iOS18会崩溃

JJExection库Xcode16打包在iOS18的系统上播放音乐会卡死

上传AppStore 提示bitcode问题,包括三方库

Invalid Executable. The executable 'XXX.app/Frameworks/NERtcSDK.framework

NERtcSDK' contains bitcode.

检查是否有bitcode

otool -l YXAlog_iOS | grep __LLVM | wc -l
// 0不包含 1包含

手动移除

xcrun bitcode_strip -r ${framework_path} -o ${framework_path}

 cd /Users/kqc/Documents/gancao-ios4doctor/Pods/NERtcSDK/NERTC/NERtcSDK/NERtcSDK.framework
 // 进入对应的framework
 xcrun bitcode_strip -r YXAlog_iOS -o YXAlog_iOS

xcode中设置脚本移除

post_install do |installer|

  main_project = Xcodeproj::Project.open("xxx.xcodeproj") # 替换成你的主工程名称
  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/NIMSDK_LITE/NIMSDK/NIMSDK.framework/NIMSDK",
    "/Pods/NERtcSDK/NERTC/NERtcSDK/NERtcSDK.framework/NERtcSDK",
  ]
  framework_paths.each do |framework_relative_path|
    strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
  end
end

iOS上线APPStroe隐私清单被拒

构建小组件Pod lib lint错误 not contain libarclite

// [iOS] xcodebuild:  clang++: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a';

xcode16对应路径下没有arc对应的文件,需要手动导入
CSDN链接
百度云盘链接提取码: yjs6
创建arc文件夹,把刚刚下载的资源libarclite_iphoneos.a和libarclite_iphonesimulator.a拷贝到arc文件夹下。

posted @ 2025-03-31 14:33  jisa  阅读(615)  评论(0)    收藏  举报