File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 "
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"
You can’t perform that action at this time.
0 commit comments