Open4

iOSアプリ

Ryo MoroRyo Moro

新規アプリ作成時にやることリスト
・github workflowの追加
・静的解析の導入
・ios/info.plistファイルの編集
 ・バージョン、アプリ名前編集
 ・輸入コンプライアンス

Ryo MoroRyo Moro

App Store Connectにアップロード

  1. flutter build ipa --flavor prod
  2. Xocde開く
  3. Archiveしたい環境を選択肢、Any iOS Deviceを選択
  4. Product>Archiveをクリック
  5. Archiveが終わると、Archivesのページが開かれる
  6. 右横バーのDistribution Appをクリックし、App Store Connect> Upload>Automatically manage signing>uploadと選択していきすすむ
  7. DONE

参考文献
https://zenn.dev/kentaroh/articles/c97a15aaf9d09e
https://medium.com/flutter-jp/ipa-e176de0276c6

Ryo MoroRyo Moro

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

  1. Open Terminal

  2. Open your project drag path of respective framework to Terminal

For example

cd /Users/mahipal/Desktop/masterTest/Alamofire.framework
  1. Set your Framework name in below command and run
lipo -remove i386 Alamofire -o Alamofire && lipo -remove x86_64 Alamofire -o Alamofire

参考リンク
https://stackoverflow.com/questions/42641806/check-and-remove-unsupported-architecture-x86-64-i386-in-ipa-archive