<?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 Daniel Larsen on Medium]]></title>
        <description><![CDATA[Stories by Daniel Larsen on Medium]]></description>
        <link>https://medium.com/@grandlarseny?source=rss-75a1daf3e670------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ij-fKCbe9_BDOYHm.jpeg</url>
            <title>Stories by Daniel Larsen on Medium</title>
            <link>https://medium.com/@grandlarseny?source=rss-75a1daf3e670------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:53:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@grandlarseny/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[Fastlane to the Simulator]]></title>
            <link>https://medium.com/atlas/fastlane-to-the-simulator-87549b2601b9?source=rss-75a1daf3e670------2</link>
            <guid isPermaLink="false">https://medium.com/p/87549b2601b9</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[fastlane]]></category>
            <category><![CDATA[simulator]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Daniel Larsen]]></dc:creator>
            <pubDate>Tue, 15 May 2018 21:50:48 GMT</pubDate>
            <atom:updated>2018-05-15T21:51:12.102Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFH3Y_ICR9iBBmDo6vXyuQ.png" /></figure><p>Ask any experienced iOS developer and they’ll tell you that app signing is the part that smells most of farts. It won’t kill you, and you can get through it, but it’s fraught with inconvenience, anger, and a bit of mystery. That’s why Apple has worked very hard to automate the process, so that for product developers all that’s require is checking one box. And when that box can’t be checked there’s other tools to help relieve the pain.</p><p>Because it’s just the worst, we lazy engineers have made enough tools to make complete app signing tolerable. But what about the in-between steps? Just because we can fly from New York to LA doesn’t make it easier to drive to Philadelphia.</p><h4>The Simulator</h4><p>From time to time, people like to test code before they send it out. This might be a best practice, I don’t know, I’m an engineer, so sue me. Some people even like to automate their testing.</p><p>If you do like to automate your testing on iOS that means you’ll be testing in the simulator. Now how will you do that on builds made to be distributed to an actual device? You know, those fancy builds we were talking about earlier? Those won’t work for the simulator.</p><p>No, now you need a new process. This might seem mysterious, but it’s really just kinda doing what you were doing before, but stopping about a quarter of the way through.</p><p>In fact, Xcode creates what is effectively a simulator build every time you run a debug build of an application targeted on a simulator device. After running a build targeted on the simulator you can find the simulator build itself in the derived data folder. It’ll look something like: ~/Library/Developer/Xcode/DerivedData/{App GUID}/Build/Products/Debug-iphonesimulator.</p><p>But that’s no good. What, are you gonna debug your app each time you test it, pulling out the simulator app for testing like some Philistine? No, you’re better than that. You deserve something better than that. You deserve something automated. And maybe a cookie.</p><h4>Automated Simulator Builds with Fastlane</h4><p>I’d say TLDR, but it’s a little too late for that. Here’s how to create a simulator build using Fastlane.</p><pre>xcodebuild(workspace: &quot;#{workspace}&quot;,<br>           scheme: &quot;#{scheme}&quot;,<br>           xcargs: &quot;-configuration #{configuration} -sdk &#39;iphonesimulator11.3&#39; -destination &#39;generic/platform=iOS Simulator&#39;&quot;<br>           )</pre><pre>zip(path: &quot;./simulator/Build/Products/Debug-iphonesimulator/#{app-name}&quot;,<br>    output_path: &quot;./build/#{build-name}.app.zip&quot;<br>)</pre><p>So, yeah. That’s about it. There’s a bit to unpack there, as you might expect.</p><h4>Environment Variables</h4><p>A few assumptions have been made about environment variables. You’ll have to have things setup just right, like this:</p><ul><li><em>workspace</em> — This is the name of the .xcworkspace you want to build. If you’re not using a workspace, you can change the variable to be project:.</li><li><em>scheme</em> — The name of the scheme you’re building. This is the text that appears next to the run button in Xcode.</li><li><em>configuration</em> — The configuration that Xcode should use to build your app. If in doubt, use Debug.</li><li><em>app-name</em> — This is the name of the app that you’re building. You can find this in the application settings in Xcode.</li><li><em>build-name</em> — This is what you want the simulator build to be named in the filesystem. It’s useful to append the build number to the app name so you can have a reference to the individual builds going forward.</li></ul><h4>Behind the Scenes</h4><p>Fastlane is a great tool, and typically you can sign and package an app with a single command. Something along the lines of</p><pre>gym(scheme: &quot;#{scheme}&quot;, <br>    configuration: &quot;#{configuration}&quot;, <br>    output_name: &quot;#{build-name}&quot;)</pre><p>That is great, but the problem is that the gym() command is the direct flight to LA. It’s too far, and there’s no way to stop it short. That’s why we need to go back to basics. We just want Fastlane to run the xcodebuild command line utility, with the appropriate architecture, and then step away.</p><p>Fastlane provides the xcodebuild() command to do just that. Once it’s done, it’s time to zip up the .app (which is itself a directory) and you’re ready to go!</p><h4>Summary</h4><p>Using this script, Fastlane will generate a build that can be installed to the automation testing simulator by just dragging and dropping. There’s no code signing needed, so there’s no certificates or provisioning profiles involved. Just run the build and copy and paste the app to the simulator.</p><p>And that’s it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87549b2601b9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/atlas/fastlane-to-the-simulator-87549b2601b9">Fastlane to the Simulator</a> was originally published in <a href="https://medium.com/atlas">Atlas</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art + Science of Coffee]]></title>
            <link>https://medium.com/@grandlarseny/the-art-science-of-coffee-fb684e93b72?source=rss-75a1daf3e670------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb684e93b72</guid>
            <dc:creator><![CDATA[Daniel Larsen]]></dc:creator>
            <pubDate>Sat, 22 Jun 2013 03:53:24 GMT</pubDate>
            <atom:updated>2013-06-22T03:53:24.950Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vIIGhoAB8lD8f54x.jpeg" /><figcaption>jason knaur (500px)</figcaption></figure><h4>Excellent coffee tastes.</h4><p>It is common knowledge that coffee can be delicious. No, not delicious. It can be enticing, bewildering and satisfying; a drink of consequence. But for coffee to be its best the brew process must be iterated again and again, just like any good product meant for consumption. It must be designed.</p><p>Design lives and dies with you, the user. You don’t know what you want, but you’ll love it when you use it.</p><p>When we talk of great coffee, using it is tasting it. You walk into a Blue Bottle Coffee shop, stand entranced while water is heated with a reddish light, watch it move up to meet coffee grounds in a glass pitcher above the bowl where it started, talk to the barista about the abomination against physics you are witnessing (it isn’t an abomination, it’s just science, you learn), and finally have a transcendental culinary experience. Or, you can walk into Counter Culture Coffee for a cup of their Fetco brew (read: auto-drip coffee done right), for a similar everyday transcendental experience.</p><p><em>Yes friends, coffee is designed, but getting a great cup is as much about science as it is about art.</em></p><p>Allow me to present a list of variables that affect just how your coffee tastes every single time you brew a cup:</p><ul><li>Ratio of coffee to water</li><li>Roast level</li><li>Days since the coffee was roasted</li><li>Bean varietal and density</li><li>Coffee grind size</li><li>Grind size consistency</li><li>Water temperature</li><li>Filter type</li><li>Filter shape</li><li>Brew time</li><li>Bloom time</li><li>Water pressure</li><li>Water quality</li><li>Agitation while brewing (the coffee that is, not you)</li></ul><p>This list is incomplete.</p><p>Each variable is objective and quantifiable. We can understand scientifically how they affect what’s in your cup, and communicate about specific brew parameters. If you’re so inclined you can even use the <a href="http://www.mountaincity.com/brewing-1.html">SCAA’s brew control chart</a> to know just how your coffee is statistically tasting.</p><p>Although there some obvious problems with using only this data, there is some very valuable direction it can provide. Is your coffee tasting grassy, peanut-like, or generally sour? It’s under-extracted and you should change one variable like grind size/ratio/brew time.Is your coffee bitter? It’s over-extracted, change variable to compensate and try again. What we cannot do with complete certainty is know how the coffee will taste.</p><h4>At the end of the day you still have to taste the drink to know if it’s any good.</h4><p>Design is subjective, but not at odds with science. Please allow me to punt on giving you another definition for design, I think I’d rather jump in a pile of nails. Here’s a <a href="https://medium.com/design-ux/c4be733141f1">really great one</a> that I didn’t think of:</p><blockquote>Design means… beautiful solutions</blockquote><p>Yes.</p><p>So, if you’re creating a beautiful solution you need to use tools, right? You’ll need to measure, quantify, understand, and test. Create data that can be analyzed to enable decisions. <strong>Do not be afraid of these words.</strong></p><p>Data is a tool that can help designers know what hasn’t worked a vast majority of times. Even if you’re driving your design towards the fringes you’ll need to know where the fringes are, and maybe how to make a small part of your design relatable.</p><h3>I hate <a href="http://stopdesign.com/archive/2009/03/20/goodbye-google.html">41 shades of blue</a></h3><p>Sorry, did I just yell that? That’s chosing not to chose. That’s just going by the brew control chart, taste be damned. Data has its place, but its place is in a support role.</p><p>What I love, truly, about coffee is that at best it is a continual balance of art and science. Hold design in the same balance. When you just focus on the art of coffee you are in for a world of pain. You will be frustrated because all you know is the coffee is crap and every little change you make tastes worse or better and you can’t get a hold on any of it. When you design based on committee, well, <a href="http://adobegripes.tumblr.com/">crap happens</a>.</p><p>Well, I love that and just holding a great cup of coffee in my hand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb684e93b72" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>