LoginSignup
0
0

More than 5 years have passed since last update.

Error: Unexpected key "NSMainNibFile~ipad" while parsing <dict/>

Posted at

cordova build ios を実行するとエラーが発生。

Error: Unexpected key "NSMainNibFile~ipad" while parsing <dict/>

どうも cordova-ios のエラー?
https://github.com/apache/cordova-ios/issues/572

plist ファイルで "NSMainNibFile~ipad" キーの値が誤って処理されていることが原因らしい。
そこで cordova-custom-config プラグインを使って該当のキーを書き換えて対処。

<platform name="ios">
    ...
    <custom-config-file mode="replace" parent="NSMainNibFile" target="*-Info.plist">
        <string />
    </custom-config-file>
    <custom-config-file mode="replace" parent="NSMainNibFile~ipad" target="*-Info.plist">
        <string />
    </custom-config-file>
</platform>

これだけでは修正が反映されないのでプラットフォームを作り直し。

cordova platform rm ios
cordova platform add ios

私の環境ではこれで修正されました。

0
0
0

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
0
0