Skip to content

Commit 15f49c6

Browse files
committed
Auto-convert.
1 parent 112914c commit 15f49c6

5 files changed

Lines changed: 361 additions & 108 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
2626
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
2727
KEYCHAIN_NAME: build.keychain # Temporary keychain name
28+
# Use the specific identity from the logs/certificate
29+
SIGNING_IDENTITY: "Apple Development: sacha.sayan@gmail.com (2RH7R3YX2H)"
2830
run: |
2931
# Create temporary keychain
3032
security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_NAME"
@@ -38,9 +40,14 @@ jobs:
3840
# Decode the base64 certificate
3941
echo "$BUILD_CERTIFICATE_BASE64" | base64 --decode > certificate.p12
4042
41-
# Import the certificate into the keychain
43+
# Import the certificate into the keychain, allowing codesign access
4244
security import certificate.p12 -k "$KEYCHAIN_NAME" -P "$P12_PASSWORD" -T /usr/bin/codesign
4345
46+
# Explicitly allow codesign to access the imported private key without prompts
47+
# This is often necessary in CI environments
48+
echo "Setting key partition list for identity: $SIGNING_IDENTITY"
49+
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" -t private "$KEYCHAIN_NAME" -D "$SIGNING_IDENTITY" || echo "Warning: Setting key partition list failed. Check if SIGNING_IDENTITY env var matches the certificate's Common Name exactly."
50+
4451
# Clean up the certificate file
4552
rm -f certificate.p12
4653

CleanCopy.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
291291
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
292292
MACOSX_DEPLOYMENT_TARGET = 15.0;
293-
MARKETING_VERSION = 1.0;
293+
MARKETING_VERSION = 1.0.1;
294294
PRODUCT_BUNDLE_IDENTIFIER = interimSolutions.CleanCopyTest;
295295
PRODUCT_NAME = "$(TARGET_NAME)";
296296
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -333,7 +333,7 @@
333333
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
334334
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
335335
MACOSX_DEPLOYMENT_TARGET = 15.0;
336-
MARKETING_VERSION = 1.0;
336+
MARKETING_VERSION = 1.0.1;
337337
PRODUCT_BUNDLE_IDENTIFIER = interimSolutions.CleanCopyTest;
338338
PRODUCT_NAME = "$(TARGET_NAME)";
339339
PROVISIONING_PROFILE_SPECIFIER = "";

0 commit comments

Comments
 (0)