正しいプロビジョニング プロファイルがオーガナイザーにインストールされていることを確認。System Preferences -> Profiles からもプロビジョニング プロファイルを確認して下さい。
高解像度のアイコンセットを作成
UnityPlayer.iconset (あるいは info.plist での表示設定)という名前のフォルダを作成し,次の画像名を含めます。フォルダ名には .iconset
拡張子をつけて下さい。
icon_16x16.png
icon_16x16@2x.png
icon_32x32.png
icon_32x32@2x.png
icon_128x128.png
icon_128x128@2x.png
icon_256x256.png
icon_256x256@2x.png
icon_512x512.png
icon_512x512@2x.png
iconutil -c icns UnityPlayer.iconset
info.plist
および GAMENAME.entitlements
ファイルを作成します。もっとも簡単方法は http://jemast.com/unity/entitlements.php を使用して代わりに生成します。Unity で生成された .app から info.plist
を抽出して修正する方法もあります。
基本的な GAMENAME.entitlements
は次の通りに表示され,Apple サンドボックスでアプリを実行できるようにします。iCloud 対応はしていません。: <?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>com.apple.security.app-sandbox</key> <true/>
</dict>
</plist>
if (Screen.fullScreen)
{
//MacBook Pro Retina 15: width = 2880 , MacBook Pro Retina 13: width = 2496 ?
//could check device model name, but not sure now about retina 13 device model name
//if last resolution is almost retina resolution...
var resolutions : Resolution[] = Screen.resolutions;
if (resolutions.length && resolutions[resolutions.length - 1].width > 2048)
{
Screen.fullScreen = false;
yield;
Screen.fullScreen = true;
yield;
}
}
chmod -R a+xr "/path/to/GAMENAME.app"
codesign -f -s '3rd Party Mac Developer Application: DEVELOPER NAME' --entitlements "GAMENAME.entitlements" "/AppPath/GAMENAME.app"
productbuild --component GAMENAME.app /Applications --sign "3rd Party Mac Developer Installer: DEVELOPER NAME" GAMENAME.pkg