Amazon API 叩くのに HMAC-SHA256 が必要でその過程の部分のメモ。 極力他ライブラリを使わない方向。CryptoSwift とか便利だとは思います。 CommonCrypto はいつ廃止されるかは知らないですが、ひとまずは最初から入っているもの、ということで(多分)。 大まかな作業順番。 BridgingHeader.h で CommonCrypto/CommomHMAC.h を定義 プロジェクトに BridgingHeader.h を追加する Xcode 9.0 のプロジェクト設定で Objective-C Bridging Header の設定に 1. のファイルを指定する ソース側で HMAC-SHA256 を計算するコードを書く 呼び出し側で呼び出す 具体的な手順。 1. BridgingHeader.h #ifndef BridgingHeader_h #de