{"id":42522,"date":"2024-03-15T15:25:19","date_gmt":"2024-03-15T19:25:19","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=42522"},"modified":"2024-03-15T15:25:19","modified_gmt":"2024-03-15T19:25:19","slug":"xcode-15-no-platform-load-command-found","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/03\/15\/xcode-15-no-platform-load-command-found\/","title":{"rendered":"Xcode 15: &ldquo;no platform load command found&rdquo;"},"content":{"rendered":"<p><a href=\"https:\/\/wadetregaskis.com\/no-platform-load-command-found-in-libxyz-a-assuming-macos\/\">Wade Tregaskis<\/a>:<\/p>\n<blockquote cite=\"https:\/\/wadetregaskis.com\/no-platform-load-command-found-in-libxyz-a-assuming-macos\/\">\n<p>Apple&rsquo;s new linker appears to be much more pedantic than the old one &#x2013; it warns about a lot of things that the old one didn&rsquo;t care about.  One of these is missing platform load commands:<\/p>\n<pre class=\"wp-block-preformatted\">\/Users\/SadPanda\/Documents\/vmaf\/libvmaf\/ld:1:1: no platform load command found in 'src\/libvmaf.a[62](cpuid.obj)', assuming: macOS<\/pre>\n<p>This doesn&rsquo;t technically break anything &#x2013; assuming it guessed the platform correctly, which I suspect it just takes as being the host&rsquo;s platform &#x2013; but it&rsquo;s super annoying because it&rsquo;s emitted for every afflicted object file the linker sees (that&rsquo;s individual files, even if they&rsquo;re buried in archive files &#x2013; e.g. libfoo.a).  You can have hundreds or even thousands of these warnings for a single library.  Worse, they&rsquo;re emitted when you link against the library, not just when you build it.  And with nested static libraries they can propagate up a build chain endlessly.<\/p>\n<\/blockquote>\n<p>I&rsquo;ve been seeing this with the old eSellerate library, which fortunately I won&rsquo;t need for much longer, as I don&rsquo;t know how long the <code>-Wl,-ld_classic<\/code> workaround to use the old <code>ld64<\/code> linker will last.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/03\/06\/xcode-15-3\/\">Xcode 15.3<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Wade Tregaskis: Apple&rsquo;s new linker appears to be much more pedantic than the old one &#x2013; it warns about a lot of things that the old one didn&rsquo;t care about. One of these is missing platform load commands: \/Users\/SadPanda\/Documents\/vmaf\/libvmaf\/ld:1:1: no platform load command found in 'src\/libvmaf.a[62](cpuid.obj)', assuming: macOS This doesn&rsquo;t technically break anything &#x2013; assuming [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-03-15T19:25:22Z","apple_news_api_id":"a3e2b35b-9231-4547-9a15-a23ddaf01dff","apple_news_api_modified_at":"2024-03-15T19:25:22Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Ao-KzW5IxRUeaFaI92vAd_w","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[255,1292,30,2385,71,226],"class_list":["post-42522","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-compiler","tag-esellerate","tag-mac","tag-macos-14-sonoma","tag-programming","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=42522"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42522\/revisions"}],"predecessor-version":[{"id":42523,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42522\/revisions\/42523"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=42522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=42522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=42522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}