Open4
iOSアプリ
新規アプリ作成時にやることリスト
・github workflowの追加
・静的解析の導入
・ios/info.plistファイルの編集
・バージョン、アプリ名前編集
・輸入コンプライアンス
App Store Connectにアップロード
- flutter build ipa --flavor prod
- Xocde開く
- Archiveしたい環境を選択肢、Any iOS Deviceを選択
- Product>Archiveをクリック
- Archiveが終わると、Archivesのページが開かれる
- 右横バーのDistribution Appをクリックし、App Store Connect> Upload>Automatically manage signing>uploadと選択していきすすむ
- DONE
参考文献
Github Actionsを使用したビルド自動化
参考記事
Archiveはできたけどアップロードに失敗する場合
エラー内容
Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]
原因
Apple has started complaining if app contains simulator architectures during distribution.
解決方法
For custom created Dynamic Framework
-
Open Terminal
-
Open your project drag path of respective framework to Terminal
For example
cd /Users/mahipal/Desktop/masterTest/Alamofire.framework
- Set your Framework name in below command and run
lipo -remove i386 Alamofire -o Alamofire && lipo -remove x86_64 Alamofire -o Alamofire
参考リンク