Skip to content

Commit 8f5dd7f

Browse files
YumNummcursoragent
andcommitted
fix: iOSビルドでCloud-managed distribution signingを使用するように修正
- CODE_SIGN_IDENTITY="Apple Distribution"を追加 - Podfile: Privacy Manifest Bundle の署名設定を修正 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8b73fb1 commit 8f5dd7f

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/deploy-app.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ jobs:
136136
-destination 'generic/platform=iOS' \
137137
-archivePath build/ios/Runner.xcarchive \
138138
CODE_SIGN_STYLE=Automatic \
139+
CODE_SIGN_IDENTITY="Apple Distribution" \
139140
CODE_SIGNING_REQUIRED=YES \
140141
CODE_SIGNING_ALLOWED=YES \
141142
-allowProvisioningUpdates \
@@ -156,6 +157,7 @@ jobs:
156157
-authenticationKeyID $APP_STORE_CONNECT_API_KEY_ID \
157158
-authenticationKeyPath "$HOME/.private_keys/AuthKey_$APP_STORE_CONNECT_API_KEY_ID.p8" \
158159
CODE_SIGN_STYLE=Automatic \
160+
CODE_SIGN_IDENTITY="Apple Distribution" \
159161
CODE_SIGNING_REQUIRED=YES \
160162
CODE_SIGNING_ALLOWED=YES \
161163
| xcbeautify --renderer github-actions
@@ -376,15 +378,15 @@ jobs:
376378
377379
- name: Output git log
378380
run: |
379-
# LAST TAG
380-
LAST_TAG=$(git describe --tags --abbrev=0)
381-
git log $LAST_TAG..HEAD --pretty=format:"- [%ad] %an: %s %h" >> changelog.tmp
382-
383-
# 最大2000文字
384-
head -c 2000 changelog.tmp > changelog.txt
385-
if [ $(wc -c < changelog.txt) -gt 2000 ]; then
386-
echo '...' >> changelog.txt
387-
fi
381+
# LAST TAG
382+
LAST_TAG=$(git describe --tags --abbrev=0)
383+
git log $LAST_TAG..HEAD --pretty=format:"- [%ad] %an: %s %h" >> changelog.tmp
384+
385+
# 最大2000文字
386+
head -c 2000 changelog.tmp > changelog.txt
387+
if [ $(wc -c < changelog.txt) -gt 2000 ]; then
388+
echo '...' >> changelog.txt
389+
fi
388390
389391
# https://github.com/google-github-actions/auth
390392
- name: Authenticate to Google Cloud Platform

app/ios/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ post_install do |installer|
4040
if target.respond_to?(:product_type) && target.product_type == "com.apple.product-type.bundle"
4141
target.build_configurations.each do |config|
4242
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
43+
config.build_settings['CODE_SIGN_IDENTITY'] = ''
44+
config.build_settings['DEVELOPMENT_TEAM'] = 'CPL7H8SHVM'
4345
end
4446
end
4547
end

0 commit comments

Comments
 (0)