{"id":683,"date":"2023-09-20T10:23:59","date_gmt":"2023-09-20T01:23:59","guid":{"rendered":"https:\/\/deskplate.net\/blog\/?p=683"},"modified":"2023-09-20T10:35:52","modified_gmt":"2023-09-20T01:35:52","slug":"dt_toolchain_dir-cannot-be-used-to-evaluate-library_search_paths-use-toolchain_dir-instead-in-target-target-from-project-project","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/683","title":{"rendered":"DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead (in target &#8216;TARGET&#8217; from project &#8216;PROJECT&#8217;)"},"content":{"rendered":"<p>Podfile \u306b\u8ffd\u8a18<\/p>\n<pre>\r\npost_install do |installer|\r\n  # ...\r\n  installer.pods_project.targets.each do |target|\r\n    # ...\r\n\r\n    target.build_configurations.each do |config|\r\n      # --- Fix for Xcode 15.0 beta 5 ---\r\n      xcconfig_path = config.base_configuration_reference.real_path\r\n      xcconfig = File.read(xcconfig_path)\r\n      xcconfig_mod = xcconfig.gsub(\/DT_TOOLCHAIN_DIR\/, \"TOOLCHAIN_DIR\")\r\n      File.open(xcconfig_path, \"w\") { |file| file << xcconfig_mod }\r\n      # ---------------------------------\r\n    end\r\n  end\r\nend\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Podfile \u306b\u8ffd\u8a18 post_ins<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,37,36],"tags":[],"class_list":["post-683","post","type-post","status-publish","format-standard","hentry","category-mac","category-swift","category-xcode"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=683"}],"version-history":[{"count":6,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/683\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/683\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}