LoginSignup
3
1

More than 5 years have passed since last update.

plistファイルの構文チェック

Last updated at Posted at 2015-10-08

短いメモですが、XCodeのビルド時にInfo.plistがエラーになった場合、あまり詳しい事を教えてくれません。
そういう時は以下のようにコマンドラインから指定して詳細を確認しましょう。

% plutil -lint Info.plist
Info.plist: Encountered unexpected character [ on line 2 while parsing inline DTD

plistファイルでおかしい箇所を教えてくれます。

Info.plist
<?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"[]>

末尾の[]がおかしいわけですね

3
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1