Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: github action for auto-codesign #327

Merged
merged 12 commits into from
Sep 29, 2024
Merged

Conversation

YoloMao
Copy link
Collaborator

@YoloMao YoloMao commented Sep 11, 2024

1. 在生成 release 产物的同时,自动签名 xcframework

使用了以下环境变量:

  • BUILD_CERTIFICATE_BASE64: 当前使用的证书使用 base64 编码
  • P12_PASSWORD: 当前使用的证书密码
  • CODESIGN_IDENTIFY_NAME: 当前使用的证书名称
  • KEYCHAIN_PASSWORD: 随机 uuid 字符串

参考:

前情提要:#259

2. xcframework 产物将包含所有 SDK 支持的平台类型

目标平台 SDK 类型
iOS 无埋点 SDK
macOS 埋点 SDK
watchOS 埋点 SDK
tvOS 无埋点 SDK
visionOS 埋点 SDK

3. privacy bundle 分离,SPM 最低支持从 Swift 5.9 开始

https://developer.apple.com/cn/news/upcoming-requirements/?id=04292024a

@YoloMao YoloMao changed the title feat: auto codesign xcframework build: github action for auto-codesign Sep 11, 2024
@YoloMao
Copy link
Collaborator Author

YoloMao commented Sep 18, 2024

如果在本地生成 xcframework 而不是通过 workflow,需要手动输入已导入到 keychain 中的相应的签名证书的名称:

sh ./scripts/generate_xcframework.sh --codesign --codesign-id-name <Your Certificate Name> --verbose

Copy link

codecov bot commented Sep 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.74%. Comparing base (2c03519) to head (9d59c49).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #327      +/-   ##
==========================================
- Coverage   83.68%   82.74%   -0.95%     
==========================================
  Files         137      137              
  Lines        8056    10171    +2115     
==========================================
+ Hits         6742     8416    +1674     
- Misses       1314     1755     +441     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Sep 29, 2024

@YoloMao YoloMao merged commit 997c87c into master Sep 29, 2024
1 of 13 checks passed
@YoloMao YoloMao deleted the feat/codesign_xcframework branch September 29, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants