教材開発してみた

教材開発のあれこれ

Info.plist の書き方

info.plist の書き方を間違うとiBooksiPadで作動しません。

Appleのサイトに載っている

iBooks Author用のHTML5ウィジェットを作成する」

https://support.apple.com/ja-jp/HT204433

の例を用いると、Macでは動くが、iPadで作動しない。

一番最後の

<key>IBNotifiesOnReady</key>

<true/>

が原因ではないかと推測しています。

この情報がWebには載っていないので、作動させるためにiBooksでの教材開発をあきらめかけていた。ふと見つけたApple以外のサイトのiBooksのデータを入れて作動したので、 Info.plist を見てみると・・・「ちがっている!」。

 

iPadでも作動した例:

 

<?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>CFBundleDisplayName</key>

<string>iwateMap</string>

<key>CFBundleIdentifier</key>

<string>jp.iwate-manabi-net.iwateMap</string>

<key>CFBundleName</key>

<string>iwateMap</string>

<key>CFBundleShortVersionString</key>

<string>1.0</string>

<key>CFBundleVersion</key>

<string>1.0</string>

<key>Height</key>

<integer>600</integer>

<key>Width</key>

<integer>800</integer>

<key>MainHTML</key>

<string>index.html</string>

</dict>

</plist>