Skip to content

Commit

Permalink
Fix iOS build, update profile config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblow committed Sep 25, 2023
1 parent e1ef89a commit edbeabc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/secrets/decrypt_secrets.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/sh

set -e

gpg --quiet --batch --yes --decrypt --passphrase="$IOS_PROFILE_KEY" --output ./.github/secrets/match_AppStore_comquietmobile.mobileprovision ./.github/secrets/match_AppStore_comquietmobile.mobileprovision.gpg
gpg --quiet --batch --yes --decrypt --passphrase="$IOS_CERTIFICATE_KEY" --output ./.github/secrets/Certificates.p12 ./.github/secrets/Certificates.p12.gpg

mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles

cp ./.github/secrets/match_AppStore_comquietmobile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/654a2214-095f-4939-a9e5-09f7a2ccf530.mobileprovision
cp ./.github/secrets/match_AppStore_comquietmobile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/718ac015-309f-49b6-9653-f6cf84a6377c.mobileprovision


security create-keychain -p "" build.keychain
Expand All @@ -17,4 +19,3 @@ security unlock-keychain -p "" ~/Library/Keychains/build.keychain
security set-keychain-settings ~/Library/Keychains/build.keychain #this removes autolock

security set-key-partition-list -S apple-tool:,apple: -s -k "" ~/Library/Keychains/build.keychain

Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
-scheme Quiet \
-configuration Release \
-archivePath build/Quiet.xcarchive \
PROVISIONING_PROFILE="654a2214-095f-4939-a9e5-09f7a2ccf530" \
PROVISIONING_PROFILE="718ac015-309f-49b6-9653-f6cf84a6377c" \
CODE_SIGN_IDENTITY="Apple Distribution: Zbay LLC (CTYKSWN9T4)"
- name: Export .ipa
Expand Down
4 changes: 2 additions & 2 deletions packages/mobile/ios/Quiet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5405,8 +5405,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.quietmobile;
PRODUCT_NAME = Quiet;
PROVISIONING_PROFILE_SPECIFIER = CI;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = CI;
PROVISIONING_PROFILE_SPECIFIER = "match AppStore com.quietmobile";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.quietmobile";
SWIFT_OBJC_BRIDGING_HEADER = "Quiet-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
Expand Down
4 changes: 2 additions & 2 deletions packages/mobile/ios/ci.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>provisioningProfiles</key>
<dict>
<key>com.quietmobile</key>
<string>CI</string>
<string>match AppStore com.quietmobile</string>
</dict>
</dict>
</plist>
</plist>

0 comments on commit edbeabc

Please sign in to comment.