Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example apps testflight continuous delivery #483

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Further setup and fixes
  • Loading branch information
JakubJankowski committed Dec 7, 2022
commit 213914b8dd66280e3e92b0e17426273a5e162df6
Original file line number Diff line number Diff line change
@@ -444,11 +444,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = /Resources/Info.plist;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2022.12.07.1304;
DEVELOPMENT_TEAM = XXY98AVDR6;
INFOPLIST_FILE = Resources/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@@ -457,7 +457,7 @@
MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.ably.tracking.example.subscriber;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
PROVISIONING_PROFILE_SPECIFIER = "match dist com.ably.tracking.example.subscriber";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
@@ -468,11 +468,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Distribution";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = /Resources/Info.plist;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2022.12.07.1304;
DEVELOPMENT_TEAM = XXY98AVDR6;
INFOPLIST_FILE = Resources/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@@ -481,7 +481,7 @@
MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.ably.tracking.example.subscriber;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
PROVISIONING_PROFILE_SPECIFIER = "match dist com.ably.tracking.example.subscriber";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
19 changes: 13 additions & 6 deletions Examples/SubscriberExample/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -5,18 +5,25 @@ default_platform(:ios)
# Creates a temporary keychain. Without this, the build could
# freeze and never finish. https://docs.fastlane.tools/actions/setup_ci/
setup_ci if ENV['CI']
update_project_team(
path: "SubscriberExample.xcodeproj",
teamid: "XXY98AVDR6")
# update_build_number
# We want to leave the default config as Automatic code signing, since it's easier
# to use for users. So instead of changing those settings in pbxproj, we're using the
# `update_code_signing_settings` step.
update_code_signing_settings(
use_automatic_signing: false,
path: "SubscriberExample.xcodeproj",
team_id: "XXY98AVDR6",
code_sign_identity: "iPhone Distribution",
profile_name: "match dist com.ably.tracking.example.subscriber")
update_build_number
match(
git_url: ENV["MATCH_GIT_URL"],
app_identifier: "com.ably.tracking.example.subscriber",
type: "appstore",
readonly: true)
build_app(scheme: "SubscriberExample",
project: "SubscriberExample.xcodeproj",
export_method: 'app-store',
configuration: "Release",
export_method: "app-store",
output_name: "SubscriberExample.ipa",
clean: true,
include_bitcode: true)
@@ -39,7 +46,7 @@ default_platform(:ios)
# Helper lane, not used by CI, but can be used on local machines
# to fetch currently used certificate and profile from match repo
# by running `bundle exec fastlane fetch_certificate`
desc "Fetch the distribution certificate and appstore provisioning profile from git repo"
desc "Fetch the distribution certificate and appstore provisioning profile from match git repo"
lane :fetch_certificate do
match(type: "appstore", readonly: true)
end
2 changes: 1 addition & 1 deletion Examples/SubscriberExample/fastlane/README.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ Build and upload the Subscriber Example app to TestFlight
[bundle exec] fastlane ios fetch_certificate
```

Fetch the distribution certificate and appstore provisioning profile from git repo
Fetch the distribution certificate and appstore provisioning profile from match git repo

----