1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Flutterで作ったアプリをgithub actionsで自動アプロードする時につまずいたとこ

Last updated at Posted at 2025-02-19

Provisioning Profile作成時エラー

内容

name: Import Provisioning Profile  
  run: |  
    mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles  
    echo -n ${{ secrets.PROVISIONING_PROFILE }} | base64 -d > ~/Library/MobileDevice/Provisioning\ Profiles/<アプリのmobileprovisionファイル名>

エラー

Run mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
~~
syntax error near unexpected token `|'

原因

actionsのsecretsにapple developerのprofileから取得してbase64にエンコードして登録する際に改行文字を削除していなかった。
BAD

base64 -i <ダウンロードしたprofile file> | pbcopy

GOOD

base64 -i <profile file> | tr -d "\n" | pbcopy 

ipaファイル作成時エラー

内容

name: Export ipa  
  run: flutter build ipa --export-method "app-store" --release

エラー

Error (Xcode): No profiles for '' were found: Xcode couldn't find any iOS App Development provisioning profiles matching ''. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.

原因

provisioning file作成時に違うcertificateを選択していた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?