美文网首页
IOS 17 Xcode 15.0 (15A240d) BUG

IOS 17 Xcode 15.0 (15A240d) BUG

作者: 骨灰程序猿 | 来源:发表于2023-09-19 16:38 被阅读0次

升级Xcode 真机ios17运行 报错

文章发布时 已经能真机运行

问题1:

DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

引用文章解决问题

https://blog.csdn.net/alinagebaba/article/details/132470365

问题2:

SDK does not contain 'libarclite' at the path '*******/*******/libarclite_iphoneos.a'; try increasing the minimum deployment target

引用文章解决问题

https://blog.csdn.net/woashizhangsi/article/details/130178931

podfile组合结果

source 'https://github.com/CocoaPods/Specs.git'

platform :ios,'14.1'

target'XXXXX'do

  # Comment the next line if you don't want to use dynamic frameworks

  use_frameworks!

  # Pods for MiFish

  pod'XXX'

  pod'XXX'

  pod'XXX'

  pod'XXX'

  pod'XXX'

 end

post_installdo|installer|

  installer.aggregate_targets.eachdo|target|

    target.xcconfigs.eachdo|variant, xcconfig|

      xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)

      IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR","TOOLCHAIN_DIR"))

    end

  end

  installer.generated_projects.eachdo|project|

        project.targets.eachdo|target|

            target.build_configurations.eachdo|config|

                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] ='13.0'

             end

        end

 end

  installer.pods_project.targets.eachdo|target|

    target.build_configurations.eachdo|config|

      ifconfig.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference

        xcconfig_path = config.base_configuration_reference.real_path

        IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR","TOOLCHAIN_DIR"))

      end

    end

  end

end

相关文章

网友评论

      本文标题:IOS 17 Xcode 15.0 (15A240d) BUG

      本文链接:https://www.haomeiwen.com/subject/ybonvdtx.html