<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>CocoaPods on kunat.dev</title>
    <link>https://kunat.dev/tags/cocoapods/</link>
    <description>Recent content in CocoaPods on kunat.dev</description>
    <generator>Hugo -- 0.147.5</generator>
    <language>en-us</language>
    <copyright>2025 kunat.dev</copyright>
    <lastBuildDate>Wed, 11 Jun 2025 19:11:09 +0200</lastBuildDate>
    <atom:link href="https://kunat.dev/tags/cocoapods/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Use Xcode 16&#39;s Buildable Folders with CocoaPods</title>
      <link>https://kunat.dev/notes/xcode16-folders-pods/</link>
      <pubDate>Wed, 11 Jun 2025 19:11:09 +0200</pubDate>
      <guid>https://kunat.dev/notes/xcode16-folders-pods/</guid>
      <description>&lt;p&gt;A few months ago, I decided to try Xcode&amp;rsquo;s new &lt;a href=&#34;https://dimillian.medium.com/why-you-should-use-xcode-16-buildable-folders-instead-of-groups-6f438611914d&#34; target=&#34;_blank&#34; &gt;buildable folders&lt;/a&gt; feature in my project. However, right after converting all my groups to folders, I discovered that CocoaPods had stopped working. Attempting to install project dependencies resulted in the following error:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ pod install
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;❌ ArgumentError - &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;Xcodeproj&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt; Unable to find compatibility version string &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; object version &lt;span style=&#34;color:#e6db74&#34;&gt;`&lt;/span&gt;70&lt;span style=&#34;color:#e6db74&#34;&gt;`&lt;/span&gt;.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At the time, I updated CocoaPods to the latest version, confirmed my project format was set to the latest Xcode version (16.3), and tried again. When the issue persisted, I assumed CocoaPods was incompatible with buildable folders and that I would need to migrate to Swift Package Manager (SPM) to use them. This conclusion seemed to be confirmed by several closed GitHub issues where the suggested workaround was to manually convert folders back to groups.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A few months ago, I decided to try Xcode&rsquo;s new <a href="https://dimillian.medium.com/why-you-should-use-xcode-16-buildable-folders-instead-of-groups-6f438611914d" target="_blank" >buildable folders</a> feature in my project. However, right after converting all my groups to folders, I discovered that CocoaPods had stopped working. Attempting to install project dependencies resulted in the following error:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>$ pod install
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>❌ ArgumentError - <span style="color:#f92672">[</span>Xcodeproj<span style="color:#f92672">]</span> Unable to find compatibility version string <span style="color:#66d9ef">for</span> object version <span style="color:#e6db74">`</span>70<span style="color:#e6db74">`</span>.
</span></span></code></pre></div><p>At the time, I updated CocoaPods to the latest version, confirmed my project format was set to the latest Xcode version (16.3), and tried again. When the issue persisted, I assumed CocoaPods was incompatible with buildable folders and that I would need to migrate to Swift Package Manager (SPM) to use them. This conclusion seemed to be confirmed by several closed GitHub issues where the suggested workaround was to manually convert folders back to groups.</p>
<p>However, it turns out you don&rsquo;t have to wait to use Xcode&rsquo;s buildable folders with CocoaPods! The solution is surprisingly simple: set the <strong>Project Format</strong> in your project&rsquo;s settings to <strong>Xcode 16.0</strong>. Any other selection will trigger the <code>Xcodeproj</code> error.</p>
<p><img alt="hello there" loading="lazy" src="/notes/images/xcode16-folders-pods-header.jpg"></p>
<p>With that single change, you can start taking full advantage of Xcode&rsquo;s buildable folders in your CocoaPods projects!</p>
<h3 id="references">References</h3>
<ul>
<li><a href="https://github.com/CocoaPods/Xcodeproj/pull/985" target="_blank" >Xcodeproj PR #985</a></li>
<li><a href="https://github.com/CocoaPods/CocoaPods/issues/12671#issuecomment-2467142931" target="_blank" >CocoaPods Issue #12671</a></li>
</ul>
]]></content:encoded>
    </item>
  </channel>
</rss>
