<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mehmet Baykar on Medium]]></title>
        <description><![CDATA[Stories by Mehmet Baykar on Medium]]></description>
        <link>https://medium.com/@se.mehmet.baykar?source=rss-7037419081f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*33CjnceZH4NFKDLM</url>
            <title>Stories by Mehmet Baykar on Medium</title>
            <link>https://medium.com/@se.mehmet.baykar?source=rss-7037419081f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:43:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@se.mehmet.baykar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stop Hand-Writing XCUITest Page Objects]]></title>
            <link>https://medium.com/@se.mehmet.baykar/stop-hand-writing-xcuitest-page-objects-4668aca95710?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4668aca95710</guid>
            <category><![CDATA[ui-test-automation]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swift-macros]]></category>
            <category><![CDATA[xcuitest]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 00:02:24 GMT</pubDate>
            <atom:updated>2026-04-22T00:02:24.102Z</atom:updated>
            <content:encoded><![CDATA[<p>Every iOS codebase I’ve shipped past a certain size ends up with the same pile of test code: a query helper here, a tap() wrapper there, a sea of assertExists(timeout:) calls stitched together with XCUIApplication singletons passed as arguments through five different page-object structs. It works. It also buries the actual test intent under a thousand lines of boilerplate that has nothing to do with what the screen is supposed to do.</p><p>swift-xcui-page-macros is my attempt to stop writing that boilerplate. It&#39;s a Swift 6.2 macro library with three macros — @Page, @Element, @Scope — that turn small declarative structs into typed page objects with fluent action helpers, screen-readiness checks, and branching navigation that doesn&#39;t require reinventing a DSL.</p><h3>The pain, concretely</h3><p>This is what a login page looks like without the macros:</p><pre>struct LoginPage {<br>    let app: XCUIApplication<br>    var emailField: XCUIElement { app.textFields[&quot;loginEmail&quot;].firstMatch }<br>    var passwordField: XCUIElement { app.secureTextFields[&quot;loginPassword&quot;].firstMatch }<br>    var submitButton: XCUIElement { app.buttons[&quot;loginSubmit&quot;].firstMatch }<br>    @discardableResult<br>    func tapEmail() -&gt; Self { emailField.tap(); return self }<br>    @discardableResult<br>    func typeTextIntoEmail(_ text: String) -&gt; Self {<br>        emailField.typeText(text); return self<br>    }<br>    // …repeat for every field, every action, every assertion<br>}</pre><p>Multiply that across six screens and now any refactor hits dozens of files. This is what it looks like with the macros:</p><pre>@Page(scope: .scrollView(id: &quot;loginScroll&quot;))<br>struct LoginPage: VerifiablePageObject {<br>    @Element(.textField, .id(&quot;loginEmail&quot;), verify: true)<br>    var email: XCUIElement<br>    @Element(.secureTextField, .id(&quot;loginPassword&quot;), verify: true)<br>    var password: XCUIElement<br>    @Element(.button, .id(&quot;loginSubmit&quot;), verify: true)<br>    var submitButton: XCUIElement<br>}</pre><p>That’s the whole page. The macro generates tapEmail(), typeTextIntoEmail(_:), clearEmail(), assertEmailExists(timeout:), assertEmailValue(_:), assertEmailPlaceholder(_:), verifyDefaultScreen(timeout:), isReady(), and init(app:). Element type defaults pick a sensible action set; override with actions: when you want something tighter.</p><h3>Branching flows without a bespoke DSL</h3><p>The macros don’t try to replace navigation libraries. They give you enough typed infrastructure that navigation stays in plain Swift:</p><pre>try SplashPage(app: app)<br>    .openLogin()<br>    .backToOrigin()<br>    .openSignUp()<br>    .assertSubmitButtonExists()</pre><p>Under the hood, PageNavigation.open(from:perform:destination:) is throws(OpenFailure) with retries: and backoff:. The retry probe uses destination.isReady() — the AND of .exists across every @Element(verify: true) — so picking the right verify set directly controls how reliably a flaky screen transition recovers. Typed throws means you catch OpenFailure and PageTimeoutError explicitly, not any Error.</p><h3>Fluent throwing assertions</h3><p>The throwing assertion family returns XCUIElement instead of Void, so chains read left-to-right even through try:</p><pre>try page.email<br>    .assertExistsOrThrow(timeout: 5)<br>    .typeText(&quot;user@example.com&quot;)<br>try page.submitButton<br>    .assertLabelOrThrow(&quot;Submit&quot;, timeout: 3)<br>    .tap()</pre><p>The non-throwing counterparts stay available for the tests that prefer XCTFail failure modes. Both styles coexist; pick per call site.</p><h3>Safety the compiler enforces</h3><p>Macros are only good if they fail loudly when fed nonsense. Three diagnostics I care about:</p><ul><li>@Element(.button, .id(&quot;btn_\\(suffix)&quot;)) — macros run at expansion time and can&#39;t evaluate interpolation, so silent truncation would be a disaster. The macro rejects interpolated string literals with a fix-it.</li><li>@Page(scope: .scrollView(id: someVar)) — non-literal container locators would silently drop to an unscoped query. The macro rejects them explicitly.</li><li>@Element(..., verify: someCondition) — non-literal verify: arguments can&#39;t be resolved at expansion time, so the property would silently drop out of isReady(). The macro emits a warning naming the property.</li></ul><p>These weren’t there in the first draft. A codex review round caught them, tests reproduced them, and the fix was a single-line guard in the shared string-extraction helper.</p><h3>Install</h3><p>Package.swift:</p><pre>.package(url: &quot;&lt;https://github.com/mehmetbaykar/swift-xcui-page-macros.git&gt;&quot;, branch: &quot;main&quot;)</pre><p>Add SwiftXCUIPageMacros to your UI test target dependencies. First build prompts Xcode&#39;s &quot;Trust &amp; Enable&quot; macro plugin dialog — approve once and you&#39;re done.</p><p>Runs on Swift 6.2, Xcode 26, iOS 17+ / macOS 14+ / tvOS 17+ / visionOS 1+. CI is a single GitHub Actions workflow that builds with -strict-concurrency=complete -warnings-as-errors and runs the package tests on every push. Docs deploy automatically to GitHub Pages.</p><ul><li><a href="https://github.com/mehmetbaykar/swift-xcui-page-macros">Repo: <strong>https://github.com/mehmetbaykar/swift-xcui-page-macros</strong></a></li></ul><h3>☕ Enjoyed this post?</h3><p>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</p><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4668aca95710" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 LLM Concepts for AI-Assisted Development]]></title>
            <link>https://medium.com/@se.mehmet.baykar/30-llm-concepts-for-ai-assisted-development-e6dc4ce1a7be?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6dc4ce1a7be</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 18:10:47 GMT</pubDate>
            <atom:updated>2026-03-24T18:10:47.398Z</atom:updated>
            <content:encoded><![CDATA[<p>A compact glossary of 30 LLM terms — from tokens and temperature to RAG and guardrails — for developers using AI in Xcode, editors, and APIs.</p><p>These definitions track the vocabulary used in model cards, IDE settings, and API docs. Use them as a shared shorthand when evaluating tools or designing system prompts.</p><h3>Measuring Inference with cURL</h3><p>Before diving into the definitions, you can see these concepts in action by inspecting an API response. Typical chat APIs expose <strong>temperature</strong>, <strong>tokens</strong>, and message roles explicitly.</p><pre>curl -s https://api.openai.com/v1/chat/completions \<br>  -H &quot;Authorization: Bearer $OPENAI_API_KEY&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;model&quot;: &quot;gpt-5.4&quot;,<br>    &quot;temperature&quot;: 0.2,<br>    &quot;max_tokens&quot;: 2048,<br>    &quot;messages&quot;: [<br>      { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are a concise code reviewer.&quot; },<br>      { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;List issues in this diff: func foo() {}&quot; }<br>    ]<br>  }&#39; | jq &#39;.usage&#39;<br>&gt; {<br>&gt;   &quot;prompt_tokens&quot;: 25,<br>&gt;   &quot;completion_tokens&quot;: 30,<br>&gt;   &quot;total_tokens&quot;: 55<br>&gt; }</pre><h3>Model fundamentals</h3><p>ConceptDefinition<strong>LLM</strong>A model that generates text by predicting the most probable next token.<strong>Token</strong>A piece of text, such as a word or punctuation symbol.<strong>Tokenization</strong>Process of converting text into a sequence of tokens.<strong>Embeddings</strong>Numerical vectors that represent the meaning of tokens.<strong>Latent Space</strong>Mathematical space where embeddings get organized by meaning.<strong>Parameters</strong>Internal variables that store model’s learned patterns.</p><h3>Training and behavior shaping</h3><p>ConceptDefinition<strong>Pre-training</strong>Training on massive text data to learn language patterns.<strong>Base Model</strong>A pre-trained model that predicts text but doesn’t follow instructions.<strong>Instruct Model</strong>A base model further trained to follow instructions &amp; respond helpfully.<strong>Fine-Tuning</strong>Additional training on a smaller dataset to shape model behavior.<strong>Alignment</strong>Ensuring model behavior is helpful, honest &amp; harmless.<strong>RLHF</strong>Using human-ranked responses to guide model behavior.</p><h3>Prompting and context</h3><p>ConceptDefinition<strong>Prompt</strong>Complete input sent to model, including instructions &amp; context.<strong>System Prompt</strong>High-level instructions that define the model’s role &amp; limits.<strong>User Prompt</strong>Specific question or instruction provided by the user.<strong>Context Window</strong>Maximum number of tokens the model can process at once.<strong>Zero-Shot Learning</strong>Performing a task without examples in prompt.<strong>Few-Shot Learning</strong>Including examples in prompt to guide output format or behavior.</p><p>Structured formats help models separate instructions from data.</p><pre>&lt;system&gt;<br>You are a senior iOS engineer. Prefer Swift 6, async/await, and @MainActor for UI.<br>Refuse to guess API availability; say when something needs an availability check.<br>&lt;/system&gt;<br>&lt;user&gt;<br>Refactor this UIViewController snippet to SwiftUI.<br>&lt;/user&gt;<br>&lt;code language=&quot;swift&quot;&gt;<br>// user&#39;s code<br>&lt;/code&gt;</pre><h3>Reasoning, generation, and reliability</h3><p>ConceptDefinition<strong>Chain of Thought</strong>Prompting the model to show step-by-step reasoning.<strong>Inference</strong>Process of generating output tokens from a trained model.<strong>Latency</strong>Time between submitting a prompt and receiving output.<strong>Temperature</strong>A parameter controlling randomness in token selection.<strong>Hallucination</strong>Confident generation of incorrect or fabricated information.<strong>Grounding</strong>Restricting outputs to provided or verifiable information.</p><p>In Swift, mirroring that JSON payload keeps your client types aligned with OpenAI-compatible endpoints:</p><pre>import Foundation<br><br>enum ChatRole: String, Codable {<br>    case system<br>    case user<br>    case assistant<br>}<br>struct ChatMessage: Codable {<br>    let role: ChatRole<br>    let content: String<br>}<br>struct ChatCompletionRequest: Codable {<br>    let model: String<br>    let messages: [ChatMessage]<br>    let temperature: Double<br>    let maxTokens: Int<br>    enum CodingKeys: String, CodingKey {<br>        case model, messages, temperature<br>        case maxTokens = &quot;max_tokens&quot;<br>    }<br>}</pre><h3>Systems: retrieval, agents, evaluation, safety</h3><p>ConceptDefinition<strong>RAG</strong>Retrieving external data &amp; adding it to the prompt before generation.<strong>Workflow</strong>A fixed, predefined sequence where the LLM follows set steps.<strong>Agent</strong>A system where LLM plans actions, then dynamically chooses steps &amp; tools.<strong>Multimodality</strong>Ability to process multiple input types, such as text &amp; images.<strong>Benchmarks</strong>Standardized tests used to compare model capabilities.<strong>Guardrails</strong>Systems that block unsafe or inappropriate inputs &amp; outputs.</p><p>You can programmatically construct few-shot steering next to retrieved context in Swift:</p><pre>func buildRAGPrompt(userQuestion: String, retrievedDocs: [String], examples: [(String, String)]) -&gt; String {<br>    var prompt = &quot;## Retrieved notes\n&quot;<br>    for doc in retrievedDocs {<br>        prompt += &quot;- \(doc)\n&quot;<br>    }<br>    <br>    prompt += &quot;\n## Examples of desired output\n&quot;<br>    for example in examples {<br>        prompt += &quot;User: \(example.0)\nAssistant: \(example.1)\n&quot;<br>    }<br>    <br>    prompt += &quot;\n## User question\n\(userQuestion)\n&quot;<br>    return prompt<br>}<br><br>let prompt = buildRAGPrompt(<br>    userQuestion: &quot;My background session never calls the delegate.&quot;,<br>    retrievedDocs: [&quot;URLSession background transfers require a session identifier.&quot;],<br>    examples: [(&quot;Why is my download stopping?&quot;, &quot;Check `URLSessionConfiguration.identifier`.&quot;)]<br>)<br>print(prompt)</pre><h3>Quick reference checklist</h3><ul><li><strong>Costs and limits</strong>: watch <strong>token</strong> counts and <strong>context window</strong> size on every call.</li><li><strong>Product behavior</strong>: ship <strong>instruct models</strong> for assistants; <strong>base models</strong> are for research or custom pipelines.</li><li><strong>Quality control</strong>: lower <strong>temperature</strong> for refactors and codegen; raise it slightly for brainstorming only if you validate outputs.</li><li><strong>Truth</strong>: prefer <strong>grounding</strong> and <strong>RAG</strong> over naked parametric memory when facts matter.</li><li><strong>Safety</strong>: treat <strong>guardrails</strong> as part of system design, not an afterthought.</li></ul><h3>☕ Enjoyed this post?</h3><p>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</p><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6dc4ce1a7be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enable Scope Guides in Xcode 26.4 for Visual Indentation]]></title>
            <link>https://medium.com/@se.mehmet.baykar/enable-scope-guides-in-xcode-26-4-for-visual-indentation-497126d4bbd4?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/497126d4bbd4</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[cursor]]></category>
            <category><![CDATA[xcode-26]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Sun, 22 Mar 2026 20:12:36 GMT</pubDate>
            <atom:updated>2026-03-30T09:31:41.947Z</atom:updated>
            <content:encoded><![CDATA[<p>Enable Scope Guides in Xcode 26.4 for Visual Indentation</p><p>Xcode 26.4 RC quietly shipped a feature that editors like VSCode and JetBrains have had for years: vertical indentation guides.</p><p>Apple calls them <strong>scope guides</strong> — thin vertical lines that show where each scope block begins and ends. They’re especially useful in deeply nested code like TCA reducers, nested closures, or completion handler chains.</p><p>Notably, this feature doesn’t appear in the <a href="https://developer.apple.com/documentation/xcode-release-notes/xcode-26_4-release-notes">Xcode 26.4 RC Release Notes</a>. The Source Editor section only mentions improved editor-tab retention — no mention of scope guides at all.</p><h3>How to Enable</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*cMaFeZwZryxBBpNp.png" /><figcaption>Settings &gt; Editing</figcaption></figure><p>Select the <strong>Display</strong> sub-tab. Scroll down to find the <strong>Scope guides</strong> dropdown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mSE6yB4NtuIW9f8r.png" /><figcaption>Display &gt; Scope guides</figcaption></figure><h3>Scope Guide Options</h3><p>The dropdown offers three modes:</p><ul><li><strong>None</strong> — No guides displayed. The default behavior.</li><li><strong>All</strong> — Draws a vertical line at every indentation level, making all scope boundaries visible at once.</li><li><strong>Active Only</strong> — Only highlights the scope your cursor is currently inside. As you move your cursor, the active guide follows.</li></ul><p>Every scope level gets a persistent guide line regardless of cursor position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5ZzUFlbT2neHrr7O.png" /><figcaption>All mode: every scope level visible</figcaption></figure><h3>Active Only Mode</h3><p>Only the scope containing your cursor is highlighted. In the screenshot below, the cursor sits inside the loop on line 66, so only that scope’s guide is visible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T1Qlgu8ia7ZpaGEV.png" /><figcaption>Active Only mode: guides follow your cursor</figcaption></figure><h3>When Scope Guides Help Most</h3><ul><li>Deeply nested closures and completion handlers</li><li>Long statements with multi-line cases</li><li>Any file where matching braces requires scrolling</li></ul><p>Scope guides respect your configured tab width, so they align correctly with custom indentation settings. No performance impact observed, even in large files with deep nesting.</p><h3>☕ Support My Work</h3><p>If you found this post helpful and want to support more content like this, you can <a href="https://buymeacoffee.com/mehmetbaykar">buy me a coffee</a>!</p><p>Your support helps me continue creating useful articles and tips for fellow developers. Thank you! 🙏</p><p><em>Originally published at </em><a href="https://mehmetbaykar.com/posts/enable-scope-guides-in-xcode-26-4-for-visual-indentation/"><em>https://mehmetbaykar.com</em></a><em> on March 22, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=497126d4bbd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitwarden SSH Agent with GUI Apps on macOS]]></title>
            <link>https://medium.com/@se.mehmet.baykar/bitwarden-ssh-agent-with-gui-apps-on-macos-5e29d00eb23a?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e29d00eb23a</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[bitwarden]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 08:00:24 GMT</pubDate>
            <atom:updated>2026-03-30T09:33:42.802Z</atom:updated>
            <content:encoded><![CDATA[<p>Bitwarden SSH Agent with GUI Apps on macOS</p><p>Setting SSH_AUTH_SOCK in only applies to terminal sessions. GUI apps launched from Finder or the Dock never read , so they can&#39;t find Bitwarden&#39;s SSH agent. This post fixes that. For the initial Bitwarden SSH agent setup, see <a href="https://mehmetbaykar.com/posts/how-to-set-up-bitwarden-ssh-agent-on-macos/">How to Set Up Bitwarden SSH Agent on macOS</a>.</p><h3>The Problem</h3><p>Sourcetree, Xcode, Tower, Fork, or any Git client launched outside a terminal fails with:</p><p>The app has no idea Bitwarden’s SSH agent exists because SSH_AUTH_SOCK is only set inside your shell.</p><h3>The Solution: IdentityAgent in SSH Config</h3><p>Instead of relying on environment variables, tell SSH directly in which agent to use. The IdentityAgent directive works at the config level - every app that uses SSH reads this file, whether it&#39;s a terminal or a GUI.</p><p>Add a block <strong>at the very top</strong> of the file with the IdentityAgent directive. This block applies to all connections. Then list your individual hosts below:</p><p><strong>Mac App Store Bitwarden:</strong> <strong>.dmg or Homebrew Bitwarden:</strong></p><p>IdentityAgent handles GUI apps, but some command-line tools (like ) still rely on the environment variable. Keep both:</p><p>This gives you full coverage — terminal tools use SSH_AUTH_SOCK , GUI apps use IdentityAgent .</p><p>After editing the config, <strong>fully quit each app</strong> (Cmd + Q, not just close the window) and reopen. They read on launch.</p><blockquote><strong><em>If the app still fails after reopening:</em></strong><em> Some apps cache SSH state aggressively. Try restarting your Mac if a full quit doesn’t work.</em></blockquote><p>Bitwarden must be:</p><ul><li>Running (not just installed — actually open)</li><li>Unlocked (vault unlocked)</li><li>SSH Agent enabled in Settings</li></ul><p>If Bitwarden is locked, SSH operations either prompt you to unlock or fail silently depending on the app.</p><blockquote><strong><em>If no authorization popup appears:</em></strong><em> Check Bitwarden Settings → SSH Agent → “Ask for authorization” is set to “Always”. If Bitwarden is locked, unlock it and retry.</em></blockquote><h3>Verified Working Apps</h3><p>Sourcetree can use either its bundled Git or the system Git. For Bitwarden SSH agent to work, it <strong>must</strong> use system Git:</p><ol><li>Go to <strong>Sourcetree → Settings → General</strong>.</li><li>Set Git to use the <strong>System Git</strong> (not embedded).</li><li>Fully quit and reopen.</li></ol><blockquote><strong><em>If Sourcetree still fails:</em></strong><em> Verify system Git is using OpenSSH by running — it should return or your Homebrew Git path, not a path inside Sourcetree.app.</em></blockquote><p>Guides sometimes suggest to set SSH_AUTH_SOCK system-wide. This approach has problems on modern macOS:</p><ul><li>Doesn’t reliably survive reboots</li><li>LaunchAgent plists can fail to load with cryptic I/O errors</li><li>Adds complexity for no benefit over IdentityAgent</li></ul><p>IdentityAgent in SSH config is simpler, more reliable, and works at the right layer - SSH reads it directly, no environment variable inheritance needed.</p><h3>How It Works</h3><p>When any app (terminal or GUI) makes an SSH connection:</p><ol><li>The block matches every connection.</li><li>IdentityAgent tells SSH to talk to Bitwarden&#39;s socket instead of the default macOS agent.</li><li>SSH asks Bitwarden for available keys.</li><li>Bitwarden pops up an authorization dialog (if set to “Always”).</li><li>You approve. Bitwarden signs the challenge with the private key.</li><li>Connection established — private key never left Bitwarden’s vault.</li></ol><h3>Troubleshooting</h3><ul><li><strong>Fully quit</strong> the app (Cmd + Q) and reopen — closing the window isn’t enough</li><li>Is Bitwarden open and unlocked?</li><li>Verify the socket exists:</li><li>IdentityAgent must be under (wildcard), not under a specific host</li><li>The app might use a bundled SSH client — check its settings for an option to use system SSH/Git</li></ul><p>Confirm terminal works first:</p><ul><li>Bitwarden is locked — unlock it and retry</li><li>SSH Agent might be disabled — check Bitwarden Settings → SSH Agent</li><li>The socket file might not exist — toggle SSH Agent off and on in Bitwarden settings</li></ul><p>If terminal works but the GUI app doesn’t, the app isn’t reading . Check the app’s Git/SSH settings.</p><h3>☕ Support My Work</h3><p>If you found this post helpful and want to support more content like this, you can <a href="https://buymeacoffee.com/mehmetbaykar">buy me a coffee</a>!</p><p>Your support helps me continue creating useful articles and tips for fellow developers. Thank you! 🙏</p><p><em>Originally published at </em><a href="https://mehmetbaykar.com/posts/bitwarden-ssh-agent-gui-apps-sourcetree-xcode/"><em>https://mehmetbaykar.com</em></a><em> on March 7, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e29d00eb23a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Increase VRAM on Apple Silicon for Local LLMs]]></title>
            <link>https://medium.com/@se.mehmet.baykar/increase-vram-on-apple-silicon-for-local-llms-1b35c453b165?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b35c453b165</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[lm-studio]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 11:28:45 GMT</pubDate>
            <atom:updated>2026-05-04T11:58:32.734Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Override the default VRAM cap on Apple Silicon to allocate more unified memory to GPU tasks like running local LLMs.</em></p><p>Apple Silicon’s unified memory architecture shares the same high-speed RAM between CPU and GPU — no discrete GPU required. This is why you can run large language models locally on a MacBook without a separate graphics card.</p><h3>The Default VRAM Cap</h3><p>macOS doesn’t expose 100% of your RAM as VRAM. On a 64GB machine, the Metal GPU driver typically caps VRAM at ~75–80% of total RAM — roughly 51GB out of 64GB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVnlgQaKTxGR9af_lZenTA.png" /><figcaption>Default VRAM allocation: 51.84GB out of 64GB total</figcaption></figure><p>That ~12GB gap is reserved for macOS and background processes. Reasonable for general use — but if your machine is dedicated to LLM inference, that’s 12GB of wasted context window or a smaller quantization than necessary.</p><h3>Override the VRAM Limit</h3><p>One sysctl command adjusts the GPU wired memory limit at runtime:</p><pre>sudo sysctl iogpu.wired_limit_mb=61440</pre><p>The value is in megabytes. Calculate it as desired_GB * 1024:</p><pre># 60GB → 60 * 1024 = 61440<br>sudo sysctl iogpu.wired_limit_mb=61440<br><br># Verify the change<br>sysctl iogpu.wired_limit_mb<br>&gt; iogpu.wired_limit_mb: 61440</pre><p>No reboot required — takes effect immediately. Restart LM Studio (or whichever app reads VRAM) to pick up the new limit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ohgLILS2PfRuyNxOZkqTA.png" /><figcaption>After override: 60GB VRAM out of 64GB total</figcaption></figure><h3>How Much to Allocate</h3><p>Leave <strong>at least 4–8GB</strong> for macOS. Allocating 100% will cause system lockups, beachballs, or a hard reset.</p><h3>☕ Support My Work</h3><p>If you found this post helpful and want to support more content like this, you can <a href="https://buymeacoffee.com/mehmetbaykar">buy me a coffee</a>!</p><p>Your support helps me continue creating useful articles and tips for fellow developers. Thank you! 🙏</p><h3>Persist Across Reboots</h3><p>The sysctl change resets on every reboot. Create a Launch Daemon to apply it automatically.</p><p>Create the plist file:</p><pre>sudo tee /Library/LaunchDaemons/com.local.iogpu-wired-limit.plist &lt;&lt; &#39;EOF&#39;<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot;<br>  &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br>&lt;plist version=&quot;1.0&quot;&gt;<br>&lt;dict&gt;<br>    &lt;key&gt;Label&lt;/key&gt;<br>    &lt;string&gt;com.local.iogpu-wired-limit&lt;/string&gt;<br>    &lt;key&gt;ProgramArguments&lt;/key&gt;<br>    &lt;array&gt;<br>        &lt;string&gt;/usr/sbin/sysctl&lt;/string&gt;<br>        &lt;string&gt;iogpu.wired_limit_mb=61440&lt;/string&gt;<br>    &lt;/array&gt;<br>    &lt;key&gt;RunAtLoad&lt;/key&gt;<br>    &lt;true/&gt;<br>&lt;/dict&gt;<br>&lt;/plist&gt;<br>EOF</pre><p>Replace 61440 with your desired value from the table above.</p><p>Load the daemon:</p><pre>sudo launchctl load /Library/LaunchDaemons/com.local.iogpu-wired-limit.plist</pre><p>Verify it’s registered:</p><pre>sudo launchctl list | grep iogpu<br>&gt; -   0   com.local.iogpu-wired-limit</pre><p>The VRAM override now applies on every boot — no manual intervention.</p><h3>Remove the Override</h3><p>To revert to default macOS behavior:</p><pre># Unload the daemon<br>sudo launchctl unload /Library/LaunchDaemons/com.local.iogpu-wired-limit.plist<br># Delete the plist<br>sudo rm /Library/LaunchDaemons/com.local.iogpu-wired-limit.plist<br># Reset to default (0 = system default)<br>sudo sysctl iogpu.wired_limit_mb=0</pre><h3>Important Notes</h3><ul><li>This works on <strong>macOS Sonoma (14.x) and later</strong> with Apple Silicon</li><li>The iogpu.wired_limit_mb parameter replaced the older debug.iogpu.wired_limit key</li><li>No SIP disabling required — this is a runtime kernel parameter, not a protected config</li><li>Setting the value to 0 restores default behavior</li><li>Monitor Activity Monitor’s Memory tab after increasing — if memory pressure stays red, reduce the allocation</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b35c453b165" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I turned 50+ lines of setup into a simple builder pattern]]></title>
            <link>https://medium.com/@se.mehmet.baykar/how-i-turned-50-lines-of-setup-into-a-simple-builder-pattern-056b6ab43801?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/056b6ab43801</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[mcp-protocol]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 00:39:40 GMT</pubDate>
            <atom:updated>2026-01-18T00:39:40.866Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve been following the AI tooling space, you’ve probably heard of <strong>Model Context Protocol (MCP)</strong> — Anthropic’s open standard that lets AI assistants like Claude connect to external tools and data sources.</p><p>Think of it like USB for AI. One protocol, endless possibilities.</p><p>I’ve been building MCP servers for my iOS development workflow — tools that let Claude read my Xcode projects, run builds, fetch documentation. But every time I started a new server, I found myself writing the same boilerplate code over and over.</p><p>So I built <strong>FastMCP</strong>.</p><h3>The Problem</h3><p>Here’s what building an MCP server typically looks like with the official Swift SDK:</p><pre>import MCP<br><br>// Create server with capabilities<br>let server = Server(<br>    name: &quot;My Server&quot;,<br>    version: &quot;1.0.0&quot;,<br>    capabilities: Server.Capabilities(<br>        prompts: nil,<br>        resources: nil,<br>        tools: .init(listChanged: false)<br>    )<br>)<br>// Register tool handlers<br>await server.withMethodHandler(ListTools.self) { _ in<br>    // Return tool definitions...<br>}<br>await server.withMethodHandler(CallTool.self) { params in<br>    // Handle tool calls...<br>}<br>// Create transport<br>let transport = StdioTransport(logger: logger)<br>// Start server<br>try await server.start(transport: transport)<br>// Handle shutdown signals...<br>// Set up logging...<br>// More boilerplate...</pre><pre>That’s a lot of ceremony just to expose a simple function to an AI.</pre><h3>The Solution: FastMCP</h3><p>What if you could do this instead?</p><pre>try await FastMCP.builder()<br>    .name(&quot;My Server&quot;)<br>    .addTools([WeatherTool()])<br>    .run()</pre><p><strong>Three lines.</strong> That’s it. Your MCP server is running.</p><h3>Let’s Build Something Real</h3><p>Say you want to create a tool that fetches weather data. Here’s the complete code:</p><pre>import FastMCP<br><br>struct WeatherTool: MCPTool {<br>    let name = &quot;get_weather&quot;<br>    let description: String? = &quot;Get weather for a location&quot;<br>    @Schemable<br>    struct Parameters: Sendable {<br>        let location: String<br>        let unit: Unit?<br>    }<br>    @Schemable<br>    enum Unit: String, Sendable {<br>        case celsius, fahrenheit<br>    }<br>    func call(with args: Parameters) async throws(ToolError) -&gt; Content {<br>        let temp = args.unit == .fahrenheit ? &quot;72°F&quot; : &quot;22°C&quot;<br>        return [ToolContentItem(text: &quot;Weather in \(args.location): \(temp), Sunny&quot;)]<br>    }<br>}<br><br>@main<br>struct WeatherServer {<br>    static func main() async throws {<br>        try await FastMCP.builder()<br>            .name(&quot;Weather Server&quot;)<br>            .addTools([WeatherTool()])<br>            .run()<br>    }<br>}</pre><p>Build it. Run it. Add it to Claude Desktop. Done.</p><p>The @Schemable macro automatically generates the JSON schema that Claude needs to understand your tool&#39;s parameters. No manual schema writing required.</p><h3>Beyond Tools: Resources and Prompts</h3><p>MCP isn’t just about tools. FastMCP supports the full protocol:</p><h3>Resources — Expose Data to AI</h3><pre>struct ConfigResource: MCPResource {<br>    let uri = &quot;config://app/settings&quot;<br>    let name = &quot;App Settings&quot;<br>    let description: String? = &quot;Application configuration&quot;<br>    let mimeType: String? = &quot;application/json&quot;<br><br>    var content: Content {<br>        &quot;&quot;&quot;<br>        {&quot;theme&quot;: &quot;dark&quot;, &quot;version&quot;: &quot;1.0.0&quot;}<br>        &quot;&quot;&quot;<br>    }<br>}</pre><p>Resources let Claude read your app’s configuration, database contents, or any data you want to expose.</p><h3>Prompts — Reusable Conversation Templates</h3><pre>struct CodeReviewPrompt: MCPPrompt {<br>    let name = &quot;code_review&quot;<br>    let description: String? = &quot;Review code with specific focus&quot;<br>    let arguments: [Prompt.Argument]? = [<br>        .init(name: &quot;language&quot;, description: &quot;Programming language&quot;, required: true),<br>        .init(name: &quot;focus&quot;, description: &quot;Review focus area&quot;)<br>    ]<br><br>    func getMessages(arguments: [String: Value]?) async throws -&gt; [Prompt.Message] {<br>        let lang = arguments?[&quot;language&quot;]?.stringValue ?? &quot;Swift&quot;<br>        let focus = arguments?[&quot;focus&quot;]?.stringValue ?? &quot;best practices&quot;<br>        return [<br>            .user(&quot;Review this \(lang) code focusing on \(focus).&quot;),<br>            .assistant(&quot;I&#39;ll review your \(lang) code with attention to \(focus). Please share the code.&quot;)<br>        ]<br>    }<br>}</pre><p>Prompts are conversation starters that users can invoke from Claude Desktop.</p><h3>The Full Builder API</h3><p>Here’s everything you can configure:</p><pre>try await FastMCP.builder()<br>    // Identity<br>    .name(&quot;My Awesome Server&quot;)<br>    .version(&quot;2.0.0&quot;)<br><br>// MCP Capabilities<br>    .addTools([WeatherTool(), MathTool()])<br>    .addResources([ConfigResource()])<br>    .addPrompts([CodeReviewPrompt()])<br>    .enableSampling()  // Allow LLM sampling<br>    // Transport<br>    .transport(.stdio)  // or .inMemory for testing<br>    // Configuration<br>    .logger(myLogger)<br>    .shutdownSignals([.sigterm, .sigint])<br>    // Lifecycle Hooks<br>    .onStart { print(&quot;🚀 Server started!&quot;) }<br>    .onShutdown { print(&quot;👋 Server stopped.&quot;) }<br>    .run()</pre><p>Everything has sensible defaults. Only configure what you need.</p><h3>Connect to Claude Desktop</h3><p>Add your server to claude_desktop_config.json:</p><pre>{<br>    &quot;mcpServers&quot;: {<br>        &quot;my-server&quot;: {<br>            &quot;command&quot;: &quot;/path/to/my-server&quot;<br>        }<br>    }<br>}</pre><p>Restart Claude Desktop, and your tools appear automatically.</p><h3>Why I Built This</h3><p>After building my fifth MCP server, I realized the pattern was always the same:</p><ol><li>Define your tool/resource/prompt logic</li><li>Wire up the same boilerplate</li><li>Handle the same shutdown signals</li><li>Configure the same transport</li></ol><p>FastMCP eliminates steps 2–4. You focus on <strong>what</strong> your server does, not <strong>how</strong> to wire it up.</p><h3>Get Started</h3><pre>// Package.swift<br>dependencies: [<br>    .package(url: &quot;https://github.com/mehmetbaykar/swift-fast-mcp&quot;, from: &quot;1.0.0&quot;)<br>]</pre><p><strong>GitHub:</strong> <a href="https://github.com/mehmetbaykar/swift-fast-mcp">github.com/mehmetbaykar/swift-fast-mcp</a></p><p><strong>Requirements:</strong> macOS 14+, Swift 6.2+</p><h3>What Will You Build?</h3><p>MCP opens up endless possibilities for AI-powered workflows:</p><ul><li><strong>Xcode integration</strong> — Let Claude build, test, and debug your projects</li><li><strong>Documentation servers</strong> — Expose your codebase knowledge to AI</li><li><strong>API bridges</strong> — Connect Claude to any service</li><li><strong>Local file access</strong> — Safely give AI access to your filesystem</li></ul><p>The protocol is the standard. FastMCP is how you build with it — fast.</p><h3>☕ Enjoyed this post?</h3><p>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</p><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=056b6ab43801" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix iOS Simulator Audio Glitches on macOS]]></title>
            <link>https://medium.com/@se.mehmet.baykar/how-to-fix-ios-simulator-audio-glitches-on-macos-5fb394f10395?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fb394f10395</guid>
            <category><![CDATA[audio-driver]]></category>
            <category><![CDATA[audio]]></category>
            <category><![CDATA[black-holes]]></category>
            <category><![CDATA[glitch]]></category>
            <category><![CDATA[simulator]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 22:48:09 GMT</pubDate>
            <atom:updated>2026-03-02T14:32:30.263Z</atom:updated>
            <content:encoded><![CDATA[<p>If you stream Spotify, watch YouTube, or play anything on your Mac, then launch the iOS Simulator, you can get pops or stutter. Two fast fixes below.</p><h3>Quick Fix: Restart Core Audio</h3><p>Run after launching Simulator. No app restarts required.</p><pre>sudo killall coreaudiod</pre><p>Core Audio restarts and clears distortion. Re-run when glitches return.</p><h3>Persistent Fix: Route Simulator Audio to BlackHol</h3><p>Use a virtual device to isolate Simulator output from system audio.</p><ol><li>Install BlackHole — see: <a href="https://mehmetbaykar.com/posts/how-to-record-macos-screen-with-app-audio/">How to Install BlackHole on macOS</a>.</li><li>In iOS Simulator: I/O → Audio Output → select BlackHole 2ch (or 4ch if needed).</li></ol><p>This routes Simulator audio away from your speakers so Spotify or Apple Music stays clean.</p><h3>When to Use Which</h3><ul><li><strong>Core Audio restart</strong>: quickest for short debug sessions.</li><li><strong>BlackHole</strong>: best for daily work. Stable and no repeated commands.</li></ul><h3>Notes</h3><ul><li>sudo prompts for your admin password.</li><li>After macOS updates, the output device can reset. Reselect BlackHole in Simulator.</li></ul><h3><strong>☕ Enjoyed this post?</strong></h3><p>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</p><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fb394f10395" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix File Transfer Issues on iOS 26 Simulators]]></title>
            <link>https://medium.com/@se.mehmet.baykar/how-to-fix-file-transfer-issues-on-ios-26-simulators-816069ff0d9c?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/816069ff0d9c</guid>
            <category><![CDATA[ios-26]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[simulator]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 22:45:44 GMT</pubDate>
            <atom:updated>2025-10-15T22:45:44.541Z</atom:updated>
            <content:encoded><![CDATA[<p>Drag-and-drop to the iOS 26 Simulator often opens Safari instead of Files and silently fails after a “Download” prompt. Copy files directly into the Simulator’s file system instead.</p><h3>Problem</h3><ul><li>Drag-and-drop redirects to Safari for non-ZIP files.</li><li>“Download” appears but nothing is copied into Files.</li></ul><h3>Solution: Direct Copy</h3><p>1) Create a unique folder in the Simulator’s Files app (e.g., “TestFolder”).</p><p>2) Locate the folder on disk:</p><pre>find ~/Library/Developer/CoreSimulator/Devices/ -name &quot;TestFolder&quot;</pre><p>3) Copy your file (quote paths with spaces):</p><pre># Replace placeholders: [username], [DEVICE_ID], [GROUP_ID]<br>cp ~/Downloads/example.zip &quot;/Users/[username]/Library/Developer/CoreSimulator/Devices/[DEVICE_ID]/data/Containers/Shared/AppGroup/[GROUP_ID]/File Provider Storage/TestFolder/&quot;</pre><h3>Verify</h3><pre>ls &quot;/Users/[username]/Library/Developer/CoreSimulator/Devices/[DEVICE_ID]/data/Containers/Shared/AppGroup/[GROUP_ID]/File Provider Storage/TestFolder/&quot;</pre><h3>Notes</h3><ul><li>Use ZIP to avoid drag-and-drop quirks; unzip inside Files on the Simulator.</li><li>The “File Provider Storage” path belongs to the Files app’s container.</li><li>If you don’t see your folder, ensure the Files app is open and the folder exists.</li></ul><h3>☕ Enjoyed this post?<br>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</h3><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=816069ff0d9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Beautify Swift Package Resolution in Cursor-VSCode]]></title>
            <link>https://medium.com/@se.mehmet.baykar/how-to-beautify-swift-package-resolution-in-cursor-vscode-7d1021b2e14b?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d1021b2e14b</guid>
            <category><![CDATA[xcodebuild]]></category>
            <category><![CDATA[package]]></category>
            <category><![CDATA[cursor]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Fri, 10 Oct 2025 21:01:35 GMT</pubDate>
            <atom:updated>2025-10-10T22:39:31.907Z</atom:updated>
            <content:encoded><![CDATA[<p>Swift extension in VSCode-based IDEs (VSCode, Cursor, Windsurf) resolve packages with noisy, hard-to-scan logs. For Xcode projects (.xcodeproj/.xcworkspace), you can use xcodebuild -resolvePackageDependencies and pipe to xcbeautify for readable output. You can also automate this process. Here is how:</p><h3>Step 1: Install xcbeautify</h3><pre>brew install xcbeautify</pre><h3>Step 2: Add a VSCode Task</h3><p>Create .vscode/tasks.json at the project root:</p><pre>{<br>  &quot;version&quot;: &quot;2.0.0&quot;,<br>  &quot;tasks&quot;: [<br>    {<br>      &quot;label&quot;: &quot;Resolve Package Dependencies&quot;,<br>      &quot;type&quot;: &quot;shell&quot;,<br>      &quot;command&quot;: &quot;set -o pipefail &amp;&amp; xcodebuild -resolvePackageDependencies | xcbeautify&quot;,<br>      &quot;problemMatcher&quot;: [],<br>      &quot;presentation&quot;: {<br>        &quot;clear&quot;: true,<br>        &quot;showReuseMessage&quot;: false,<br>        &quot;reveal&quot;: &quot;always&quot;,<br>        &quot;panel&quot;: &quot;shared&quot;,<br>        &quot;close&quot;: true<br>      }<br>    }<br>  ]<br>}</pre><h3>Step 3: Run the Task</h3><p>Press Cmd+Shift+P → Tasks: Run Task → Resolve Package Dependencies.</p><h3>Command Breakdown</h3><ul><li><strong>Basic resolution</strong></li></ul><pre>xcodebuild -resolvePackageDependencies</pre><ul><li><strong>With formatted output</strong></li></ul><pre>xcodebuild -resolvePackageDependencies | xcbeautify</pre><ul><li><strong>CI-friendly exit codes</strong> (propagate failures across the pipe)</li></ul><pre>set -o pipefail &amp;&amp; xcodebuild -resolvePackageDependencies | xcbeautify</pre><h3>Optional: Specify Scheme</h3><p>Add a scheme if your workspace requires it:</p><pre>xcodebuild -resolvePackageDependencies -scheme &quot;MyApp&quot; | xcbeautify</pre><p>Usually xcodebuild infers the right target; add -scheme only if it cannot.</p><h3>If the Task Never Finishes</h3><ul><li>Ensure the task completes when the command exits by adding an empty matcher:</li></ul><pre>&quot;problemMatcher&quot;: []</pre><ul><li>If xcodebuild itself stalls, bypass the SPM repo cache:</li></ul><pre>&quot;command&quot;: &quot;set -o pipefail &amp;&amp; xcodebuild -resolvePackageDependencies -disablePackageRepositoryCache | xcbeautify&quot;</pre><h3>Alternatives to xcbeautify</h3><p>xcbeautify is fast and handles the modern build system well, but you can use any formatter that parses xcodebuild output:</p><pre>xcodebuild -resolvePackageDependencies | xcpretty   # legacy<br># or<br>xcodebuild -resolvePackageDependencies | your-custom-formatter</pre><h3>Why This Works</h3><p>xcodebuild does the real work (downloading and resolving packages). xcbeautify only formats the logs for readability. For pure Swift packages (no Xcode project/workspace), swift package resolve is fine; for Xcode projects, prefer xcodebuild -resolvePackageDependencies.</p><h3>Optional: Auto-close Terminal on Success</h3><p>The VSCode setting &quot;presentation.close&quot;: true closes the task panel only on success and keeps it open on failure so you can read errors. This is the default behavior of close when set to true.</p><ul><li>Success (exit code 0): panel closes automatically</li><li>Failure (non‑zero exit code): panel stays open for debugging</li></ul><p>Combining that with set -o pipefail ensures the terminal closes only when the whole pipeline succeeds (including xcbeautify).</p><h3>Quick Reference</h3><pre># Install formatter<br>brew install xcbeautify<br># Resolve with readable output<br>set -o pipefail &amp;&amp; xcodebuild -resolvePackageDependencies | xcbeautify<br># Add -scheme only if inference fails<br>xcodebuild -resolvePackageDependencies -scheme &quot;MyApp&quot; | xcbeautify<br># Workaround for hangs<br>xcodebuild -resolvePackageDependencies -disablePackageRepositoryCache | xcbeautify</pre><p>☕ Enjoyed this post?<br>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</p><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d1021b2e14b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dependency Deep Dives: IMDb’s 20 OSS Building Blocks]]></title>
            <link>https://medium.com/@se.mehmet.baykar/dependency-deep-dives-imdbs-20-oss-building-blocks-cfdc96645d82?source=rss-7037419081f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfdc96645d82</guid>
            <category><![CDATA[imdb]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Mehmet Baykar]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 23:10:47 GMT</pubDate>
            <atom:updated>2025-10-10T22:39:56.719Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Start a practical series: dissect real production apps by listing and contextualizing their third‑party dependencies. As and iOS developer using IMDb daily for watchlists, reviews, and actor bios, analyze how its iOS app assembles performance, storage, networking, and reliability with 20 open source libraries. Use this as an architectural lens, not a marketing tour.</p><h3>The Stack: IMDb’s 20 Libraries</h3><ol><li><strong>TMCache</strong> — parallel memory/disk object cache for expensive objects <a href="https://github.com/TumblrArchive/TMCache">https://github.com/TumblrArchive/TMCache</a></li><li><strong>CocoaLumberjack</strong> — high‑performance, flexible logging across Apple platforms <a href="https://github.com/CocoaLumberjack/CocoaLumberjack">https://github.com/CocoaLumberjack/CocoaLumberjack</a></li><li><strong>Protocol Buffers</strong> — efficient binary serialization for structured data <a href="https://github.com/google/protobuf">https://github.com/google/protobuf</a></li><li><strong>Bolts-ObjC</strong> — task/promise primitives and App Links protocol support <a href="https://github.com/BoltsFramework/Bolts-ObjC">https://github.com/BoltsFramework/Bolts-ObjC</a></li><li><strong>JUCE</strong> — cross‑platform C++ framework, strong in media/audio components <a href="https://github.com/juce-framework/JUCE">https://github.com/juce-framework/JUCE</a></li><li><strong>JUCE (WeAreROLI)</strong> — older JUCE repo, historically used by many apps <a href="https://github.com/WeAreROLI/JUCE">https://github.com/WeAreROLI/JUCE</a></li><li><strong>KSReachability</strong> — modern, thread‑safe network reachability with blocks/KVO <a href="https://github.com/kstenerud/KSReachability">https://github.com/kstenerud/KSReachability</a></li><li><strong>Mantle</strong> — lightweight model layer with JSON mapping for ObjC <a href="https://github.com/Mantle/Mantle">https://github.com/Mantle/Mantle</a></li><li><strong>Apollo iOS</strong> — strongly‑typed GraphQL client with caching and codegen <a href="https://github.com/apollographql/apollo-ios">https://github.com/apollographql/apollo-ios</a></li><li><strong>libextobjc</strong> — ObjC language extensions via macros and categories <a href="https://github.com/jspahrsummers/libextobjc">https://github.com/jspahrsummers/libextobjc</a></li><li><strong>NHBalancedFlowLayout</strong> — balanced Pinterest‑style UICollectionView layout <a href="https://github.com/njdehoog/NHBalancedFlowLayout">https://github.com/njdehoog/NHBalancedFlowLayout</a></li><li><strong>RxSwift</strong> — composable async with Observables and operators <a href="https://github.com/ReactiveX/RxSwift">https://github.com/ReactiveX/RxSwift</a></li><li><strong>SQLite.swift</strong> — type‑safe Swift wrapper over SQLite3 <a href="https://github.com/stephencelis/SQLite.swift">https://github.com/stephencelis/SQLite.swift</a></li><li><strong>UICKeyChainStore</strong> — minimal Keychain wrapper across Apple platforms <a href="https://github.com/kishikawakatsumi/UICKeyChainStore">https://github.com/kishikawakatsumi/UICKeyChainStore</a></li><li><strong>XMLCoder</strong> — Codable‑first XML encoder/decoder in Swift <a href="https://github.com/MaxDesiatov/XMLCoder">https://github.com/MaxDesiatov/XMLCoder</a></li><li><strong>PLCrashReporter</strong> — in‑process crash capture and symbolication <a href="https://github.com/microsoft/plcrashreporter">https://github.com/microsoft/plcrashreporter</a></li><li><strong>FMDB</strong> — mature ObjC wrapper around SQLite with queueing APIs <a href="https://github.com/ccgus/fmdb">https://github.com/ccgus/fmdb</a></li><li><strong>GZIP</strong> — NSData gzip compression/decompression helpers <a href="https://github.com/nicklockwood/GZIP">https://github.com/nicklockwood/GZIP</a></li><li><strong>Branch iOS SDK</strong> — deep linking and attribution <a href="https://github.com/BranchMetrics/ios-branch-deep-linking-attribution">https://github.com/BranchMetrics/ios-branch-deep-linking-attribution</a></li><li><strong>XMLDictionary</strong> — NSDictionary/NSArray‑centric XML parsing/generation <a href="https://github.com/nicklockwood/XMLDictionary">https://github.com/nicklockwood/XMLDictionary</a></li></ol><h3>Architecture Signals</h3><ul><li><strong>Progressive migration</strong>: Swift (RxSwift, SQLite.swift, Apollo) alongside ObjC (FMDB, Mantle, libextobjc) allows feature work in Swift while stabilizing legacy layers</li><li><strong>Data versatility</strong>: GraphQL via Apollo for typed queries, Protobuf for compact transport, dual SQLite stacks for old/new code paths</li><li><strong>Performance posture</strong>: TMCache for read paths, GZIP for payload size, Protobuf for CPU/IO efficiency</li><li><strong>Reliability posture</strong>: PLCrashReporter for crash fidelity, KSReachability for offline/poor‑network behavior, Keychain wrapper for secure tokens</li><li><strong>UI composition</strong>: NHBalancedFlowLayout for media grids, CocoaLumberjack for debug/ops visibility</li></ul><h3>Practical Takeaways</h3><ul><li><strong>Prefer typed networking</strong>: adopt GraphQL (Apollo) or Protobuf contracts to reduce runtime mapping bugs Apollo iOS docs: <a href="https://www.apollographql.com/docs/ios/get-started">https://www.apollographql.com/docs/ios/get-started</a></li><li><strong>Decouple cache tiers</strong>: pair in‑memory and disk caches to stabilize image/JSON fetch paths; PINCache is a modern alternative to TMCache</li><li><strong>Stage storage migrations</strong>: run FMDB for legacy while introducing SQLite.swift in new modules to avoid big‑bang rewrites</li><li><strong>Harden telemetry early</strong>: integrate logging and crash reporting before feature scale to keep regressions observable</li></ul><h3>Conclusion</h3><h4>This dependency map explains why IMDb feels fast, resilient, and consistent: efficient data formats, layered storage, typed APIs, and strong observability.</h4><p><em>Full list of IMDb iOS open source dependencies: </em><a href="https://www.imdb.com/iphone_app/terms_thirdparty_ios?from_app=ios"><em>https://www.imdb.com/iphone_app/terms_thirdparty_ios?from_app=ios</em></a></p><p>☕ Enjoyed this post?<br>If it helped and you’d like to support more content like this, <a href="https://buymeacoffee.com/mehmetbaykar">you can buy me a coffee</a>. Your support keeps me writing useful articles and tips for fellow developers — thank you!</p><p>Want more?<br>Explore more posts and projects at <a href="https://mehmetbaykar.com/">mehmetbaykar.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfdc96645d82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>