LoginSignup
0
0

More than 3 years have passed since last update.

Capacitorパッケージ名変更手順

Posted at

Capacitorパッケージ名変更手順

android/ios配下に手を加えていない場合

パッケージ名変更

capacitor.config.json
- "appId": "xxx.xxx.xxx",
+ "appId": "yyy.yyy.yyy",

npx cap sync;では反映されていない様子。
android/ios配下を削除し、android/ios追加からやり直す。

rm -rf android/; npx cap add android;
rm -rf ios/; npx cap add ios;

android/ios配下に手を加えている場合

パッケージ名変更

Visual Code などで各ファイル一括置換

ディレクトリ構成変更

android/app/⁨src/⁨main⁩配下のディレクトリ構成を
パッケージ名に合わせて変更

これで上手く行った様子

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