lib/cocoapods-util/command/package/helper/pod_utils.rb in cocoapods-util-0.0.14 vs lib/cocoapods-util/command/package/helper/pod_utils.rb in cocoapods-util-0.0.15
- old
+ new
@@ -30,9 +30,10 @@
default_build_settings["CLANG_MODULES_AUTOLINK"] = "NO"
default_build_settings["GCC_GENERATE_DEBUGGING_SYMBOLS"] = "YES" # 生成Debug编译信息
default_build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" unless @xcframework && self.match_pod_version?('~> 1.11') # 非xcframework排除ios simulator 64位架构
default_build_settings["EXCLUDED_ARCHS[sdk=appletvsimulator*]"] = "arm64" unless @xcframework && self.match_pod_version?('~> 1.11') # 非xcframework排除tvos simulator 64位架构
default_build_settings["BUILD_LIBRARY_FOR_DISTRIBUTION"] = "YES" # 编译swift生成swiftinterface文件
+ default_build_settings["CODE_SIGN_IDENTITY"] = "" if `xcodebuild -version`.lines.shift.gsub!('Xcode ', '') >= "14" #xcode版本大于等于xcode 14时需要添加
# merge user setting
default_build_settings.merge!(@build_settings) unless @build_settings.empty?
static_installer.pods_project.targets.each do |target|