Skip to content

Commit a7cc6f4

Browse files
committed
fix: add missing embedded mobileprovision
1 parent c68e18a commit a7cc6f4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mobile/scripts/buildApp.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ else
112112

113113
echo "Installed provisioning profile: $PROFILE_UUID"
114114

115+
# Embed provisioning profile into the app bundle
116+
echo "Embedding provisioning profile into app..."
117+
cp "$IOS_PROVISIONING_PROFILE" "$BIN_DIR/Status-tablet.app/embedded.mobileprovision"
118+
115119
# Get signing identity (support both old "iPhone Distribution" and new "Apple Distribution")
116120
echo "Searching for signing identity in keychain..."
117121
security find-identity -v -p codesigning "$KEYCHAIN_NAME"
@@ -127,8 +131,9 @@ else
127131

128132
echo "Signing with identity: $SIGNING_IDENTITY"
129133

130-
# Sign the app
131-
codesign --force --sign "$SIGNING_IDENTITY" --timestamp=none "$BIN_DIR/Status-tablet.app"
134+
# Sign the app with embedded provisioning profile
135+
codesign --force --sign "$SIGNING_IDENTITY" --entitlements "$BIN_DIR/Status-tablet.app/archived-expanded-entitlements.xcent" "$BIN_DIR/Status-tablet.app" 2>/dev/null || \
136+
codesign --force --sign "$SIGNING_IDENTITY" "$BIN_DIR/Status-tablet.app"
132137

133138
# Verify signature
134139
codesign --verify --verbose "$BIN_DIR/Status-tablet.app"

0 commit comments

Comments
 (0)