手順は次のようになります。
- CommonCryptoというディレクトリを作成
- module.mapというファイルを作成
- プロジェクト設定のBuild Settings -> Swift Compiler - Search Paths -> Import Pathsに、上記のCommonCryptoディレクトリを指定
次はサンプルです。 module.mapにSDK内のヘッダファイルのPathを記述します。
module CommonCrypto [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/CommonCrypto/CommonCrypto.h"
- link "CommonCrypto"
export *
}
link "CommonCrypto"を削除します。
0 件のコメント:
コメントを投稿