Brew the Mash

クラフトビール好きなITエンジニア@mashmorgan_jpの開発メモなど

【iOS】"missing iOS distribution signing identity for ..."エラー

別のMacで開発したiOS AppプロジェクトをGit経由で持ってきて、内部テスト用にiTunes Connectにアップロードしようとすると以下のエラーが発生。

missing iOS distribution signing identity for "XXXXXXXX"

stackoverflowで探してみると引用元の回答通り、キーチェーンアプリで期限切れのAppleWWDRCAを削除すると解決。

Thanks for bringing this to the attention of the community and apologies for the issues you’ve been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.

stackoverflow.com

【Android】既存ProjectをbuildしようとしたらGradle errorが発生

MacAndroid Studioをインストールし、既存プロジェクトをGitから持ってきて立ち上げようとしたらGradle errorなるものが発生。

Gradle sync failed: Cause: failed to find target with hash string 'android-xx' ...

色々ググッてみたもののあまり情報がなかったですがStackOverFlowに同じような事象を発見。

解決策

Android SDK Managerを立ち上げ、 [*] Something depends on this package となっている項目をインストールしてあげればOKでした。 つまり必要パッケージが足りてなかっただけですね。 もう少しわかりやすいエラー表示して頂けると幸いです。。。

【ルーター】wzr-hp-ag300h復旧手順

※この記事は2014/04/21時点の情報です

我が家のbuffalo製 無線LANルーター「wzr-hp-ag300h」が運悪くファームウェアアップデート中に電源が切れてしまい、起動しなくなってしまいました。

正確に言うと起動しても赤いDIAGランプ2回点滅でルーターとして機能しない状態です。ちなみに説明書を見ると赤点滅2回はROMの破損で修理に出してくださいとのこと…

なんとか出来ないかネット探してみると同じような症状の人も多く、 以下の手順でなんとか復帰できましたのでメモしておきます。

続きを読む

【Mac】El CapitanのSourceTreeにてgit-svnがエラーになる件

Subversion管理のリモートリポジトリをSourceTreeでクローンしようとしたら以下のようなエラーになってしまいました。

Can't locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)

ググッてみたところ、シンボリックリンクに問題があるようで以下のコマンドで解決しました。

sudo mkdir /Library/Perl/5.18/auto
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi‌-2level/SVN /Library/Perl/5.18/darwin-thread-multi-2level
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi‌-2level/auto/SVN /Library/Perl/5.18/auto/

情報元は以下。 paulschreiber.com

【PHP】CakePHPでSessionがnullになってしまう

小1時間悩んでしまったので備忘録。

原因は、session保存先フォルダに書き込み権限がなかったため。 Linux系のあるあるとは言えすぐ忘れてしまうので必ず確認しましょう。

【Mac】プリンタのデフォルト印刷設定を変更する

会社は経費削減でカラー印刷禁止なのですが、Macの印刷設定を毎回モノクロに変えるのも手間なので以下の方法で設定変更。

Macでプリントプリセットの初期値を変更する - Qiita

Windowsと違って面倒くさいですね。。。

【Mac】Finderでフルパスを取得する方法

WindowsのExplorerだと簡単にフルパスのコピーが出来ますが、Macはなかなか手間がかかる印象でした。 [情報を見る]ウィンドウを開いてパスをコピーする、Automatorで設定を追加する、などいろいろありますがこれが一番ラクだったのでメモ残し。

http://holybea.com/2015/10/06/el-capitan-path-copy/holybea.com

右クリックメニュー表示時にOptionキーを押す、だけ。