モケラ

Tech Sheets

mokelab

iOSで、ビルドしたipaファイルについているentitlementsを調べる

最終更新日:2018-12-12

codesign` コマンドを使うと、ipaファイルに含まれる `entitlements` の中身を見ることができます。

unzipでipaファイルを展開する

ipa` ファイルは単なるzipなので、 `unzip` で展開できます。

# -d はどのフォルダを展開先とするか指定するオプション
$ unzip -d work output.ipa

無事展開が完了したら、次は `work/Payload/` の中に `.app` ファイルがあるので、これに対し次のコマンドを実行します。

$ codesign -d --entitlements - work/Payload/moke.app 

成功すると、次のようなXMLが表示されます。

?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>application-identifier</key>
	<string>xxxxxx.com.mokelab.app001</string>
	<key>com.apple.developer.associated-domains</key>
	<array>
		<string>applinks:xxxxxxxx.page.link</string>
	</array>
	<key>com.apple.developer.team-identifier</key>
	<string>xxxxxx</string>
	<key>get-task-allow</key>
	<false/>
</dict>
</plist>

一覧に戻る