Skip to content

Commit

Permalink
Testing iOS build fix, 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 a452d3f commit 39f379e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/secrets/decrypt_secrets.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/sh

gpg --quiet --batch --yes --decrypt --passphrase="$IOS_PROFILE_KEY" --output ./.github/secrets/match_AppStore_comquietmobile.mobileprovision ./.github/secrets/match_AppStore_comquietmobile.mobileprovision.gpg
set -e

gpg --quiet --batch --yes --decrypt --passphrase="$IOS_PROFILE_KEY2" --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.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup provisioning profile
run: ./.github/secrets/decrypt_secrets.sh
env:
IOS_PROFILE_KEY: ${{ secrets.IOS_PROFILE_KEY }}
IOS_PROFILE_KEY2: ${{ secrets.IOS_PROFILE_KEY2 }}
IOS_CERTIFICATE_KEY: ${{ secrets.IOS_CERTIFICATE_KEY }}

- name: Build
Expand All @@ -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 39f379e

Please sign in to comment.