Skip to content

Commit b79340a

Browse files
author
“CodewithCJ”
committed
ios permission fix try 100
1 parent a120bc5 commit b79340a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/ios.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ jobs:
120120
done
121121
122122
echo "Applying Ad-Hoc signature to App binary with entitlements..."
123-
# Sign the main binary EXPLICITLY
124-
codesign -s - --entitlements SparkyFitnessMobile/SparkyFitnessMobile.entitlements --force "$APP_PATH/SparkyFitnessMobile"
123+
# Sign the main binary EXPLICITLY with DER entitlements
124+
codesign -s - --entitlements SparkyFitnessMobile/SparkyFitnessMobile.entitlements --force --generate-entitlement-der "$APP_PATH/SparkyFitnessMobile"
125125
126126
echo "Applying Ad-Hoc signature to App Bundle..."
127-
# Sign the bundle wrapper
128-
codesign -s - --entitlements SparkyFitnessMobile/SparkyFitnessMobile.entitlements --force "$APP_PATH"
127+
# Sign the bundle wrapper (without entitlements, they are in the binary)
128+
codesign -s - --force "$APP_PATH"
129129
130130
# VERIFY the entitlements were applied
131131
echo "Verifying Entitlements on Binary:"

SparkyFitnessMobile/ios/SparkyFitnessMobile.xcodeproj/project.pbxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@
135135
TargetAttributes = {
136136
13B07F861A680F5B00A75B9A = {
137137
LastSwiftMigration = 1120;
138+
SystemCapabilities = {
139+
com.apple.HealthKit = {
140+
enabled = 1;
141+
};
142+
};
138143
};
139144
};
140145
};

0 commit comments

Comments
 (0)