<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Xcode on miqu.me</title><link>https://miqu.me/blog/categories/xcode/</link><description>Recent content in Xcode on miqu.me</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 16 Jun 2017 23:55:27 +0100</lastBuildDate><atom:link href="https://miqu.me/blog/categories/xcode/index.xml" rel="self" type="application/rss+xml"/><item><title>Fixing autocompletion on mixed Objective-C and Swift projects</title><link>https://miqu.me/blog/2017/06/16/fixing-autocompletion-on-mixed-objective-c-and-swift-projects/</link><pubDate>Fri, 16 Jun 2017 23:55:27 +0100</pubDate><guid>https://miqu.me/blog/2017/06/16/fixing-autocompletion-on-mixed-objective-c-and-swift-projects/</guid><description>&lt;p&gt;This year I had the privilege of attending WWDC for the first time. I knew the labs were very important, and I want to share a resolution to fix a problem for our big project at &lt;a href="https://peak.net"&gt;Peak&lt;/a&gt;: Autocompletion on Swift code was not working most of the time in the IDE, and with the help of an Apple engineer in the labs we got it sorted.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update on 30/10/2017:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The issues described here seem to be fixed with latest release version of Xcode 9.0.1 (9A1004). Also the &amp;lsquo;internal&amp;rsquo; menu doesn&amp;rsquo;t seem to be accessible anymore. If you know how to access it I&amp;rsquo;d love to hear from you!&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Build settings depending on Xcode version</title><link>https://miqu.me/blog/2017/01/29/temporary-build-settings/</link><pubDate>Sun, 29 Jan 2017 23:26:54 +0000</pubDate><guid>https://miqu.me/blog/2017/01/29/temporary-build-settings/</guid><description>&lt;p&gt;This weekend I wanted to setup &lt;a href="https://swift.org/blog/bridging-pch/"&gt;Precompiled Bridging Headers&lt;/a&gt; for my project. This setting is available in the new Xcode 8.3 beta. Then building for latest official XCode (8.2.1) the code will not compile because the Swift compiler doesn&amp;rsquo;t recognize it. How do we use different build settings for different Xcode versions? &lt;strong&gt;Only possible with xcconfig files&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s an undocumented build setting called &lt;code&gt;XCODE_VERSION_MINOR&lt;/code&gt; that we can use here. And after some variable substitution we&amp;rsquo;ll make it work. Here&amp;rsquo;s the gist:&lt;/p&gt;</description></item><item><title>Reducing the pain of git bisect with Xcode</title><link>https://miqu.me/blog/2017/01/22/reducing-the-pain-of-git-bisect-with-xcode/</link><pubDate>Sun, 22 Jan 2017 11:49:01 +0000</pubDate><guid>https://miqu.me/blog/2017/01/22/reducing-the-pain-of-git-bisect-with-xcode/</guid><description>&lt;p&gt;There&amp;rsquo;s times when you need to investigate regressions in your project, and you don&amp;rsquo;t know have any clue as why something is happening. &lt;a href="https://git-scm.com/docs/git-bisect"&gt;Git bisect&lt;/a&gt; is the best tool for this cases, but it can be painful to use in non small projects using CocoaPods and Xcode. I want to share what I&amp;rsquo;ve been doing to ease the pain.&lt;/p&gt;</description></item><item><title>Xcode 8: New build settings and analyzer improvements</title><link>https://miqu.me/blog/2016/07/31/xcode-8-new-build-settings-and-analyzer-improvements/</link><pubDate>Sun, 31 Jul 2016 21:50:16 +0100</pubDate><guid>https://miqu.me/blog/2016/07/31/xcode-8-new-build-settings-and-analyzer-improvements/</guid><description>&lt;p&gt;I always like to check the new build settings and analyzer improvements of every Xcode release. And this year&amp;rsquo;s main release includes a couple of goodies. Let&amp;rsquo;s check them out!&lt;/p&gt;</description></item><item><title>Xcode 7.3 analyzer improvements</title><link>https://miqu.me/blog/2016/01/21/xcode-7-dot-3-analyzer-improvements/</link><pubDate>Thu, 21 Jan 2016 20:39:53 +0000</pubDate><guid>https://miqu.me/blog/2016/01/21/xcode-7-dot-3-analyzer-improvements/</guid><description>&lt;p&gt;The &lt;a href="https://developer.apple.com/xcode/download/"&gt;latest xcode beta&lt;/a&gt; is available for downloading. There are many improvements, and the usual problems with stuff that stops working&amp;hellip; Ah the love of Apple for it&amp;rsquo;s developers :). But I want to tell you about a feature that caught my attention: &lt;strong&gt;New analyzer settings!&lt;/strong&gt;&lt;/p&gt;
&lt;h1 id="new-analyzer-settings"&gt;New analyzer settings&lt;/h1&gt;
&lt;p&gt;From the &lt;a href="https://adcdownload.apple.com/Developer_Tools/Xcode_7.3_beta/Xcode_7.3_beta_Release_Notes.pdf"&gt;release notes&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The static analyzer warns when nil is returned from a method or function with a nonnull return
type or is passed to a parameter marked nonnull.&lt;/p&gt;</description></item></channel></rss>