Skip to content

Commit d1d49e2

Browse files
committed
update
1 parent 507f40c commit d1d49e2

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

docs/platforms/apple/guides/ios/size-analysis/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ description: Upload iOS builds to Sentry for size analysis.
4242

4343
<Include name="size-analysis/watch-architecture-thinning" />
4444

45-
### Binary Code Signature
45+
### Code Signature
4646

47-
<Include name="size-analysis/binary-code-signature" />
47+
<Include name="size-analysis/code-signature" />
4848

4949
### App Store Connect File Sizes
5050

includes/size-analysis/binary-code-signature.mdx

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
App bundles contain code signature data within `_CodeSignature/` directories which contain plist files with hashes of each file within the bundle. Similarly, Mach-O binaries contain additional hashes of every page block within its `LC_CODE_SIGNATURE` load command. This means the size of code signature data will scale linearly with the amount of files in your bundle and size of your binaries.
2+
3+
By default Sentry calculates the size of this data as-is. You may notice differences when comparing against your app downloaded from the App Store. For example, Xcode 26 archives only codesign with `SHA256` hashes, but the App Store can use both `SHA1` and `SHA256` hashes. In other words, App Store downloads of your app may be slightly larger than what's produced by Xcode. This App Store behavior is subject to change at any time.
4+
5+
If you'd like to compare the impact of this on your app, you can re-sign your app before uploading to Sentry:
6+
7+
```bash
8+
# Inspect the current code signature
9+
codesign -dvvv '/path/to/your/app.app'
10+
11+
# Re-sign with a new code signature
12+
codesign --force \
13+
--sign 'Apple Distribution: Your Team (team_id)' \
14+
--digest-algorithm sha1 \
15+
--digest-algorithm sha256 \
16+
'/path/to/your/app.app'
17+
```
18+
19+
This will force both `SHA1` and `SHA256` hashes to be used.

0 commit comments

Comments
 (0)