<?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 tail -f my tech life. on Medium]]></title>
        <description><![CDATA[Stories by tail -f my tech life. on Medium]]></description>
        <link>https://medium.com/@hdk2200?source=rss-8aa6b4edeab3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fWdH8ZqrRjBi7wOdGpun_A.jpeg</url>
            <title>Stories by tail -f my tech life. on Medium</title>
            <link>https://medium.com/@hdk2200?source=rss-8aa6b4edeab3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 11:55:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hdk2200/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[XCGLogger アプリ実行時に image not found でCrashする。]]></title>
            <link>https://medium.com/@hdk2200/xcglogger-%E3%82%A2%E3%83%97%E3%83%AA%E5%AE%9F%E8%A1%8C%E6%99%82%E3%81%AB-image-not-found-%E3%81%A7crash%E3%81%99%E3%82%8B-f481195bf4c6?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f481195bf4c6</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[carthage]]></category>
            <category><![CDATA[xcglogger]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Sat, 10 Aug 2019 04:40:10 GMT</pubDate>
            <atom:updated>2019-08-10T04:40:10.269Z</atom:updated>
            <content:encoded><![CDATA[<h3>現象</h3><p>CarthageでXCGLoggerを利用していますが、アプリ実行時に image not found でCrash するようになりました。 次のような状況です。</p><ul><li>デバッグコンソールにReason: image not foundが出力され、クラッシュする。</li></ul><pre>dyld: Library <strong>not</strong> loaded: @rpath/ObjcExceptionBridging.framework/ObjcExceptionBridging<br>Referenced <strong>from</strong>: /Users/bj/Library/Developer/CoreSimulator/Devices/FBFFBD28-EDAD-4FBE-963C-64CAEF8C6326/data/Containers/Bundle/Application/8862D19F-31D9-4F28-B8C0-37988D81B891/InkPaint.app/Frameworks/XCGLogger.framework/XCGLogger<br>Reason: image <strong>not</strong> found<br>(lldb)</pre><ul><li>プロジェクトの Linked Frameworks and Libraries には XCGLogger.frameworkを指定している。再設定しても改善しない。</li><li>Build Phases の /usr/local/bin/carthage copy-frameworks も設定している。</li><li>carthage update --platform iOS --no-use-binaries 再ビルドしても改善しない</li></ul><h3>解決方法</h3><p>XCGLoggerのGitHubを見てみると、説明がありました。 Build Phases の /usr/local/bin/carthage copy-frameworks で、ObjcExceptionBridging.framework が必須になったようです。</p><p>Build Phasesスクリプトの Input Files に追加したところ、クラッシュしなくなりました。</p><pre>$(SRCROOT)/Carthage/Build/iOS/ObjcExceptionBridging.framework</pre><blockquote><em>Developers running 5.0 and above in Swift will need to add $(SRCROOT)/Carthage/Build/iOS/ObjcExceptionBridging.framework to their Input Files in the Copy Carthage Frameworks Build Phase.</em></blockquote><blockquote><a href="https://github.com/DaveWoodCom/XCGLogger"><em>DaveWoodCom/XCGLogger</em></a></blockquote><p>よく見ると、クラッシュしたときのログにも、ObjcExceptionBridging.framework/ObjcExceptionBridging がロードできないと書いてありました‥</p><p>てっきりCarthageの設定だと思って解決に時間がかかりました…</p><h3>参考</h3><h4>XCGLogger</h4><p><a href="https://github.com/DaveWoodCom/XCGLogger">DaveWoodCom/XCGLogger</a></p><h4>Carthage</h4><p><a href="https://github.com/Carthage/Carthage">GitHub - Carthage/Carthage: A simple, decentralized dependency manager for Cocoa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f481195bf4c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xcode10.2 のEditor > Structure > Add Documentメニューが使えない]]></title>
            <link>https://medium.com/@hdk2200/xcodeadddocumentmenuunavbailable-7ec1ec85c568?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ec1ec85c568</guid>
            <category><![CDATA[xcode-10]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Tue, 16 Jul 2019 02:11:17 GMT</pubDate>
            <atom:updated>2019-07-16T02:11:17.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Xcode10.2でAdd Documentメニューが使えない" src="https://cdn-images-1.medium.com/max/889/1*CR3_u9Vo4nGOlL79BjEBHA.png" /></figure><h3>Swiftソースコードにコメントを付与する</h3><p>Swiftコードで関数などコメントを記述しておくと、Quickヘルプが表示されるので説明を見る場合などに便利だ。</p><pre>/// calcularte a + b<br>///<br>/// - Parameters:<br>///   - a: value1<br>///   - b: value2<br>/// - Returns: result of a + b<br>func <strong>add</strong>(a:Int ,b:Int) -&gt; Int{<br>  <strong>return</strong> a + b<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*esD_LzsO1s_wWREa930Cpg.png" /></figure><h3>XcodeのAdd Documentメニュー</h3><p>Xcodeでコメントを入れたいときに、Editor &gt; Structure &gt; Add Document メニューを選択すると、コメントテンプレートを作成してくれるので便利だ。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*qjchDOFoWptuHKmDP-MS4A.png" /></figure><h3>Add DocumentメニューがDisableの場合がある</h3><p>しかしウチの環境(<a href="https://www.apple.com/jp/macos/mojave/">macOS Mojave</a> 10.14.5) Xcode10.2ではAdd Documentメニューがグレーアウトしていて利用できなかった。</p><p>次の方法で再びAddDocumentメニューが利用できるようになった。</p><ul><li>Xcodeを終了</li><li>Xcode.app の名前を一旦変更し、元に戻す。<br>(自分の場合はFinderでアプリケーションフォルダを開き、手動で名前変更した。)</li></ul><p>~/Library/Developer/Xcode/DerivedData/ 以下のフォルダを削除すると良いという情報もあったが、自分の場合は直らなかった。</p><h3>参考</h3><p><a href="https://stackoverflow.com/questions/47101437/add-documentation-is-disabled-in-xcode-9-1-9b55">&quot;Add Documentation&quot; is disabled in Xcode 9.1 (9B55)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ec1ec85c568" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CocoaPodsを使ったプロジェクトのビルドでコンパイルエラーが発生。]]></title>
            <link>https://medium.com/@hdk2200/cocoapods-swift-compiler-error-70626b3f01bf?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/70626b3f01bf</guid>
            <category><![CDATA[cocoapods]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[error]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 02:14:05 GMT</pubDate>
            <atom:updated>2019-06-19T21:15:05.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G51YP8vOH16tx6mOByq5uA.png" /></figure><p>XcodeでiOSアプリをビルドするとき、CocoaPodsのエラーが発生してハマったので、戒めを含めて記録します。</p><p>CocoaPodsを使ったプロジェクトをビルドするときに、Podsの問題や、プロジェクト設定がおかしくなりエラーが発生することがあります。</p><p>今回は、Swift製プロジェクトをビルドするときに、 ’FirebaseCore/FirebaseCore.h’ file not found が発生しました。</p><pre>Swift Compiler Error<br>/xxx/Pods/Firebase/CoreOnly/Sources/Firebase.h:1:9: &#39;FirebaseCore/FirebaseCore.h&#39; file not found</pre><pre>/xxx/picinfo/Preferences.swift:6:8: Could not build Objective-C module &#39;Firebase&#39;</pre><h3>CocoaPodsを再設定する。</h3><p>このエラーメッセージで検索すると、同様の現象の方の対策が見つかります。CocoaPods 側になんらかのビルド設定の問題が起きている場合は、プロジェクトのCocoaPodsを再設定すると良いようです。</p><p><a href="https://stackoverflow.com/questions/41709912/error-could-not-build-objective-c-module-firebase">Error: Could not build Objective-C module &#39;Firebase&#39;</a></p><blockquote>There is only one way to solve this issue.</blockquote><blockquote>1. Quit Xcode.<br>2. Delete project’s temp files located at ~/Library/Developer/Xcode/DerivedData<br>3. Delete ProjectName.xcworkspace<br>4. Delete Podfile.lock file and Pods folder<br>5. Run pod install.<br>6. Open the newly created ProjectName.xcworkspace file and build.</blockquote><p>Xcodeの中間ファイル・.xcworkspace・Podfile.lockを削除。<br> pod install を実行。<br>再度.xcworkspace を開く。</p><p>これでCocoaPodsのライブラリ群が再インストールされます。</p><h3>Podsがビルドされていない。</h3><p>自分の場合はCocoaPods再設定ではコンパイルエラーは解消されませんでした。（大ハマリしました）</p><p>原因は プロジェクトの<strong> Build Options — Find Implicit Dependenciesのチェックが外れているせいで、Podsがビルドされていませんでした。</strong></p><p>Find Implicit DependenciesのチェックをONにするとビルドは成功しました。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7P3UjTmRuaap6PnAssQ-fg.png" /><figcaption>Build Options — Find Implicit Dependenciesのチェックが外れている</figcaption></figure><h3>なぜ Find Implicit DependenciesのチェックがOFFになっていたのか？</h3><p>自分でOFFにしました…</p><p>Swiftのビルドが遅いので、しばらくPodsの更新がないからとOFFにして忘れていました…反省…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70626b3f01bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to check if iOS device supports HEIC.]]></title>
            <link>https://medium.com/@hdk2200/how-to-check-if-ios-device-supports-heic-14bb881b71f0?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/14bb881b71f0</guid>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[heic]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Tue, 11 Jun 2019 09:38:47 GMT</pubDate>
            <atom:updated>2019-06-24T06:28:48.838Z</atom:updated>
            <content:encoded><![CDATA[<h3>Swift:How to check if iOS device supports HEIC.</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/365a0a0851f5e2cd37f29d90bcdda556/href">https://medium.com/media/365a0a0851f5e2cd37f29d90bcdda556/href</a></iframe><p>CGImageDestinationCopyTypeIdentifiers() returns these result.</p><p>It is the difference of the result acquired on iPhone 6 and 8.If HEIC is supported, “public. Heic” is included.</p><p>This check function use this feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*wzXoX3SQYIRADWCILnvCfA.png" /><figcaption>CGImageDestinationCopyTypeIdentifiers() diff between iPhone6 and 8</figcaption></figure><h3>Reference</h3><p><a href="https://developer.apple.com/documentation/imageio/1465316-cgimagedestinationcopytypeidenti">https://developer.apple.com/documentation/imageio/1465316-cgimagedestinationcopytypeidenti</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14bb881b71f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swiftのenum Associated ValuesはRaw Valuesと同時に利用できない]]></title>
            <link>https://medium.com/@hdk2200/swift-enum-associatedvalues-and-rawvalues-error-29d2bc92b90a?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/29d2bc92b90a</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[japanese]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Mon, 03 Jun 2019 09:15:25 GMT</pubDate>
            <atom:updated>2019-06-03T23:31:32.197Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Asab2UQ-iTny_IPu-MsXXQ.jpeg" /></figure><h3>Swift enum Associated Values</h3><p>Swiftで enum を利用する場合、Associated Valuesを使うと、enumのcase値に付加情報を保持可能。 このenumのblueという値はStringとInt値を追加で保持できます。</p><pre>enum ColorName{<br>	case red<br>	case blue(String,Int)<br>	case green<br>}</pre><p>次の例では、bという変数にblueに 追加の値 &quot;beautiful&quot; , 999 を保持しています。 bをprintしてみると、blue(&quot;beautiful&quot;, 999) が返り、付与情報も保持されていることがわかります。</p><pre>let a:ColorName = .red<br>let b:ColorName = .blue(&quot;beautiful&quot;,999)<br>let c:ColorName = .green</pre><pre>print(&quot;a=[\(a)]&quot;)  // a=[red]<br>print(&quot;b=[\(b)]&quot;)  // b=[blue(&quot;beautiful&quot;, 999)]<br>print(&quot;c=[\(c)]&quot;)  // c=[green]</pre><p>Associated Valuesは次のように取り出すことが可能です。</p><pre>func PrintColorName(color:ColorName){</pre><pre>switch color {<br>	case .blue(let metaStr,let metaInt):<br>		print(&quot;\(color) metaStr=\(metaStr) metaInt=\(metaInt)&quot; )<br>	default:<br>		print(&quot;\(color)&quot; )<br>	}<br>}</pre><p>結果</p><pre>PrintColorName(color:a)  // red<br>PrintColorName(color:b)  // blue(&quot;beautiful&quot;, 999) metaStr=beautiful metaInt=999<br>PrintColorName(color:c)  // green</pre><h3>Associated Values と Raw Values を同時に利用できない。</h3><p>しかし、Associated Valuesを使ったenumにRaw Valuesを使って、enumの各caseに特定の値を割り振るとコンパイルエラーになり、利用できません。 この例ではString型のEnumにして、各Caseの値を設定していますが、エラーとなります。</p><pre>enum ColorName:String{	// エラーになる書き方<br>	case red=&quot;aka&quot;<br>	case blue(String,Int)=&quot;ao&quot;<br>	case green=&quot;midori&quot;<br>}</pre><pre>error: enum with raw type cannot have cases with arguments</pre><p>SwiftのEnumでは Associated Values と Raw Values は同時に利用できません。 どうやら、これは、Raw Valuesにすると、rawValue から enumをinit できないからのようです。</p><p>どうしても、enumのcase値に対応する値を結びつけたい場合は値を返す関数や変数を定義してあげると良いようです。</p><pre>enum ColorName{<br>	case red<br>	case blue(String,Int)<br>	case green</pre><pre>	var colorStr:String{<br>		switch self {<br>		case .red:<br>			return &quot;aka&quot;<br>		case .blue(_, _):<br>			return &quot;blue&quot;<br>		case .green:<br>			return &quot;green&quot;<br>		}<br>	}<br>}</pre><p>文字列に変換する場合はCustomStringConvertibleを実装しても良いでしょう。</p><pre>enum ColorName:CustomStringConvertible<br>{<br>    case red<br>    case blue(String,Int)<br>    case green</pre><pre>    var description : String {<br>        switch self {<br>        case .red:<br>            return &quot;aka&quot;<br>        case .blue(_, _):<br>            return &quot;blue&quot;<br>        case .green:<br>            return &quot;green&quot;<br>        }<br>    }<br>}</pre><h3>参考</h3><ul><li><a href="https://medium.com/@PhiJay/why-swift-enums-with-associated-values-cannot-have-a-raw-value-21e41d5ec11">Why Swift Enums with Associated Values Cannot Have a Raw Value</a></li><li><a href="https://docs.swift.org/swift-book/LanguageGuide/Enumerations.html#//apple_ref/doc/uid/TP40014097-CH12-ID148">Enumeration - The Swift Programming Language (Swift 5)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29d2bc92b90a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[R.swift  5.0でビルドエラーが発生する。]]></title>
            <link>https://medium.com/@hdk2200/r-swift-5-0-migration-bab45572453b?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/bab45572453b</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[rswift]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Fri, 04 Jan 2019 04:02:06 GMT</pubDate>
            <atom:updated>2019-02-06T12:35:14.303Z</atom:updated>
            <content:encoded><![CDATA[<h3>R.swift 5.0でビルドエラーが発生する。</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Asab2UQ-iTny_IPu-MsXXQ.jpeg" /></figure><p>Swiftプロジェクトのリソースのtypoを減らすために <a href="https://github.com/mac-cain13/R.swift">R.swift</a>を利用しています。</p><p><a href="https://github.com/mac-cain13/R.swift">GitHub - mac-cain13/R.swift: Strong typed, autocompleted resources like images, fonts and segues in Swift projects</a></p><p>久しぶりにpod update でCocoaPodsのライブラリを更新しプロジェクトをビルドするとエラーが発生しました。</p><pre>error: [R.swift] Output path must specify a file, it should not be a directory.<br>Example: $PODS_ROOT/R.swift/rswift generate $SRCROOT/R.generated.swift<br>error: [R.swift] Build phase Intput Files does not contain &#39;$TEMP_DIR/rswift-lastrun&#39;.<br>error: [R.swift] Build phase Output Files do not contain &#39;$SRCROOT/R.generated.swift&#39;.<br>warning: [R.swift] For updating to R.swift 5.0, read our migration guide: <a href="https://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md">https://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md</a></pre><h3>原因</h3><p>ちゃんとエラーログに出力されていました。</p><pre>warning: [R.swift] For updating to R.swift 5.0, read our migration guide: <a href="https://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md">https://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md</a></pre><p>pod updateでR.swiftのバージョンが5.0系に更新され、R.swiftのスクリプトの指定方法が変わったため古い記法ではエラーとなるようです。</p><h3>解決方法</h3><p>R.swiftのMigrationガイドの通りに、プロジェクトのBuild Phasesのスクリプトを変更します。</p><blockquote>Upgrading to 5.0</blockquote><blockquote><a href="https://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md">R.swift/Migration.md at master · mac-cain13/R.swift · GitHubhttps://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md</a></blockquote><ul><li>スクリプトの変更</li></ul><pre>&quot;$PODS_ROOT/R.swift/rswift&quot; generate &quot;$SRCROOT/$PROJECT_NAME/R.generated.swift&quot;</pre><ul><li>“Input Files”に追加</li></ul><pre>$TEMP_DIR/rswift-lastrun</pre><ul><li>“Output Files” に追加</li></ul><pre>$SRCROOT/$PROJECT_NAME/R.generated.swift</pre><p>[YOUR_PATH]の部分は自分のプロジェクトの構成に合わせて指定します。 このプロジェクトではプロジェクト名が入るXcodeの環境変数$PROJECT_NAMEを使ってみました。</p><p>これでビルドは成功しました。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bab45572453b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to read Codabar(NW-7) on iPhone]]></title>
            <link>https://medium.com/@hdk2200/how-to-read-codabar-on-iphone-d288a9027644?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d288a9027644</guid>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[nw-7]]></category>
            <category><![CDATA[codabar]]></category>
            <category><![CDATA[barcode]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Sat, 27 Oct 2018 12:35:18 GMT</pubDate>
            <atom:updated>2018-10-27T12:35:18.293Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*YqermbGQgE0C7eFzS8TCJQ.jpeg" /><figcaption>Barcode Scanner X iPhone apps created by digitalnauts inc.</figcaption></figure><h3>Many of iPhone apps can’t read Codabar.</h3><p>iOS have capability of scan many type of barcodes.But Many barcode reader apps in AppStore can not read Codabar.</p><p>Because, currently(iOS12), the iOS barcode recognition function does not support Codabar(same as NW-7).</p><p><a href="https://en.wikipedia.org/wiki/Codabar">Codabar - Wikipedia</a></p><h3>How to read Codabar(NW-7)</h3><p>So is there no barcode reader application that can scan Codabar?</p><p>No, I made it. It is “<a href="https://itunes.apple.com/us/app/barcode-reader-x-qr-1-d/id1374143263?mt=8"><strong>Barcode Scanner X</strong></a>” <strong>.</strong></p><p><a href="https://itunes.apple.com/us/app/barcode-reader-x-qr-1-d/id1374143263?mt=8">‎Barcode Scanner X - QR &amp; 1D</a></p><h3>“Barcode Scanner X” demo video</h3><p>This is a demo video of Barcode Scanner X working on iPhone8.<br>It reads the barcode smoothly and is recorded in the history.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9zzQuftBFV0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9zzQuftBFV0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9zzQuftBFV0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e2a382ccf11f85f7fa271b1f14f42e8d/href">https://medium.com/media/e2a382ccf11f85f7fa271b1f14f42e8d/href</a></iframe><h3>Supported barcode type by “Barcode Scanner X”</h3><p>“Barcode Scanner X” can read format of barcodes as follows.<br>QR Code<br>Data Matrix<br>Aztec<br>PDF 417</p><p>UPC-A<br>UPC-E<br>EAN-8 (JAN-8)<br>EAN-13 (JAN-13)<br>Code 39<br>Code 39 Extended<br>Code 93<br>Code 93 Extended<br>Code 128 (EAN-128 GS1–128)<br>Codabar (NW-7)<br>ITF<br>Interleaved 2 of 5<br>GS1 Databar(RSS-14)<br>GS1 Databar Expanded<br>GS1 Databar Limited</p><p>Please enjoy it with this application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d288a9027644" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[macOSのDock自動表示を高速化する]]></title>
            <link>https://medium.com/@hdk2200/macos-dock-autohide-speedup-12222b2cb8a3?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/12222b2cb8a3</guid>
            <category><![CDATA[tuning]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[settings]]></category>
            <category><![CDATA[dock]]></category>
            <category><![CDATA[mojave]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Sat, 13 Oct 2018 03:06:01 GMT</pubDate>
            <atom:updated>2018-10-13T03:06:01.801Z</atom:updated>
            <content:encoded><![CDATA[<p>macOSで画面を広く使うためにDockを自動的に非表示にしています。 Dockの表示・非表示切り替わりがもっと早いと良いなと思っていたら設定がありました。</p><p>ターミナルから次のコマンドを実行します。</p><p>・Dockの表示・非表示を高速化するとき</p><pre>defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock</pre><p>・Dockの表示・非表示の速度をもとに戻すとき</p><pre>defaults delete com.apple.dock autohide-time-modifier;killall Dock</pre><p>macOS 10.14 Mojave で動作しました。</p><h3>参考</h3><blockquote><em>macos — How can I make auto-hide/show for the dock faster? — Ask Different</em></blockquote><blockquote><a href="https://apple.stackexchange.com/questions/33600/how-can-i-make-auto-hide-show-for-the-dock-faster"><em>https://apple.stackexchange.com/questions/33600/how-can-i-make-auto-hide-show-for-the-dock-faster</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12222b2cb8a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[pyenv install 3.6.6 でエラーが発生する。]]></title>
            <link>https://medium.com/@hdk2200/pyenv-install-error-mac-dcbd28fdc9db?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcbd28fdc9db</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pyenv]]></category>
            <category><![CDATA[mojave]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 07:49:34 GMT</pubDate>
            <atom:updated>2018-10-01T07:49:34.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*ilkohc0ThpKwdXyvq46r3A.png" /></figure><p><strong>pyenv </strong>install <strong>でエラーが発生する。</strong></p><p>macOS Mojave に pyenv install 3.6.6 でPython3系をインストールしようとしたらエラーが発生した。</p><pre>~ $ pyenv install 3.6.6<br>python-build: use openssl from homebrew<br>python-build: use readline from homebrew<br>Downloading Python-3.6.6.tar.xz...<br>-&gt; https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz<br>Installing Python-3.6.6...<br>python-build: use readline from homebrew</pre><pre>BUILD FAILED (OS X 10.14 using python-build 20180424)</pre><pre>Inspect or clean up the working tree at /var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145113.76758<br>Results logged to /var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145113.76758.log</pre><pre>Last 10 log lines:<br>  File &quot;/private/var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145113.76758/Python-3.6.6/Lib/ensurepip/__main__.py&quot;, line 5, in &lt;module&gt;<br>    sys.exit(ensurepip._main())<br>  File &quot;/private/var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145113.76758/Python-3.6.6/Lib/ensurepip/__init__.py&quot;, line 204, in _main<br>    default_pip=args.default_pip,<br>  File &quot;/private/var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145113.76758/Python-3.6.6/Lib/ensurepip/__init__.py&quot;, line 117, in _bootstrap<br>    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)<br>  File &quot;/private/var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145113.76758/Python-3.6.6/Lib/ensurepip/__init__.py&quot;, line 27, in _run_pip<br>    import pip._internal<br>zipimport.ZipImportError: can&#39;t decompress data; zlib not available<br>make: *** [install] Error 1</pre><h3>解決方法</h3><pre>xcode-select --install</pre><p>をやると良いらしい。しかし、ウチの環境では<strong>同じエラーとなった</strong>。 pyenv installの前に環境変数の設定が必要の模様。</p><pre>CFLAGS=&quot;-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include&quot; \<br>LDFLAGS=&quot;-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib&quot; \<br>PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \<br>pyenv install -v 3.6.6</pre><p>これで、ビルドができるようになった。</p><pre>python-build: use openssl from homebrew<br>python-build: use readline from homebrew<br>/var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145414.90277 ~<br>Downloading Python-3.6.6.tar.xz...<br>-&gt; https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz<br>/var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145414.90277/Python-3.6.6 /var/folders/d4/2z2crny959n4sbybccx45jhm0000gn/T/python-build.20181001145414.90277 ~<br>Installing Python-3.6.6...<br>python-build: use readline from homebrew<br>configure: WARNING: unrecognized options: --enable-unicode<br>checking build system type... x86_64-apple-darwin18.0.0<br>checking host system type... x86_64-apple-darwin18.0.0<br>checking for python3.6... no<br>checking for python3... no<br>checking for python... python<br>・<br>・<br>・ <br>Installed Python-3.6.6 to /Users/XXXXX/.pyenv/versions/3.6.6 </pre><p>その後、次の手順で、python3系が使えるようになった。</p><p>$HOME/.pyenv/shims にパスを通す。</p><pre>~ $ vi .bash_profile<br>export PATH=$HOME/.pyenv/shims:$PATH</pre><p>.bash_profile を再読込する。</p><pre>~ $ source .bash_profile</pre><p>最後にpython バージョン確認。</p><pre>~ $ pyenv global 3.6.6<br>~ $ python -V<br>Python 3.6.6</pre><h3>参考</h3><p>Can’t compile any versions of python on El Capitan · Issue #451 · pyenv/pyenv</p><p><a href="https://github.com/pyenv/pyenv/issues/451">https://github.com/pyenv/pyenv/issues/451</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcbd28fdc9db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftでC/C++の組み込みマクロ__FILE__ __LINE__ の書き方]]></title>
            <link>https://medium.com/@hdk2200/swift4-special-literal-de20ab86cf0b?source=rss-8aa6b4edeab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/de20ab86cf0b</guid>
            <category><![CDATA[日本語]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[tail -f my tech life.]]></dc:creator>
            <pubDate>Sat, 19 May 2018 01:38:38 GMT</pubDate>
            <atom:updated>2019-06-16T01:55:12.113Z</atom:updated>
            <content:encoded><![CDATA[<p>SwiftでC/C++の組み込みマクロ<em>__FILE__</em> <em>__LINE__</em> の書き方</p><p>__FILE__ __LINE__ のような組み込みマクロは C/C++言語ではプリプロセッサによって、ソースファイルパスやソース行数に変換されます。</p><p>Swiftでも<em>__FILE__</em> <em>__LINE__ と同等の</em>書き方ができます。<br>デバッグ時に大変お世話になったので、Swiftでもお世話になりましょう。</p><h3>Swiftで定義された特別リテラル</h3><p>#file #line #column #function を使います。</p><pre>class ViewController: UIViewController {</pre><pre>func doSomething(){<br>		print(&quot;function=\(#function)&quot;)<br>		print(&quot;line=\(#line)&quot;)<br>		print(&quot;file=\(#file)&quot;)<br>		print(&quot;column=\(#column)&quot;)<br>	}<br>}</pre><p>このように出力されます。</p><pre>function=doSomething()<br>line=27<br>file=/Users/xxx/SwiftFunctionExam/SwiftFunctionExam/ViewController.swift<br>column=19</pre><ul><li>#file ファイル名</li><li>#line 行数</li><li>#column カラム位置（行頭から何文字目にか。TABも1文字としてカウント。）</li><li>#function 現在の関数名 クラス名は出ないようです。</li></ul><h3>参考</h3><blockquote><em>Literal Expression A literal expression consists of either an ordinary literal (such as a string or a number), an array or dictionary literal, a playground literal, or one of the following special literals:</em></blockquote><blockquote><a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Expressions.html"><em>The Swift Programming Language (Swift 4.1): Expressions</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*VBbJHKlUwV13jj6FGydrlw.png" /><figcaption>Literal Expression</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de20ab86cf0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>