PhoneGap 3.0 CLI を使用して、次のコマンドでサンプル アプリを作成しました。
phonegap create MyTestApp com.example.mytestapp MyTestApp
次に、2 つの異なる config.xml ファイルを確認しました。以下は、プロジェクト ルートの www フォルダーで見たものです。
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.mytestapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
id 属性は正しく、バージョンは 1.0.0 でした
しかし、私が見た /platforms/ios/MyTestApp/config.xml は少し異なっていました:
<widget id="io.cordova.helloCordova" version="2.0.0" xmlns="http://www.w3.org/ns/widgets">
ID が間違っていて、バージョンが 2.0.0 だった
なぜ違うのですか?phonegap build ios コマンドを実行するたびに、iOS の config.xml ファイルが再作成されます。