From 279a1fdaf9f5af1f234367ef3822c491c458edd5 Mon Sep 17 00:00:00 2001 From: Rhydian Thomas Date: Fri, 19 Feb 2021 18:13:26 +1100 Subject: [PATCH 1/5] Print MOBILEPROVISION_BASE64 --- fastlane/Fastfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6c56701..44c6571 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -195,6 +195,8 @@ platform :ios do File.write('../ios-build.p12', Base64.decode64(ENV['P12_BASE64'])) end + puts ENV['MOBILEPROVISION_BASE64'] + @profiles = [] ENV['MOBILEPROVISION_BASE64'].split(/\R/).each.with_index( 1 From e7f8e2bb016be445e6e315f28128ac937e0be951 Mon Sep 17 00:00:00 2001 From: Rhydian Thomas Date: Fri, 19 Feb 2021 18:55:05 +1100 Subject: [PATCH 2/5] Debug file creation --- fastlane/Fastfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 44c6571..39cc255 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -195,13 +195,13 @@ platform :ios do File.write('../ios-build.p12', Base64.decode64(ENV['P12_BASE64'])) end - puts ENV['MOBILEPROVISION_BASE64'] - @profiles = [] ENV['MOBILEPROVISION_BASE64'].split(/\R/).each.with_index( 1 ) do |profile, index| filename = "ios-build-#{index}.mobileprovision" + puts "creating ../#{filename}" + puts "using #{Base64.decode64(profile)}" File.write("../#{filename}", Base64.decode64(profile)) @profiles.push(filename) end From 939b6eaa7b966a59437ab4910ab5096305659128 Mon Sep 17 00:00:00 2001 From: Rhydian Thomas Date: Sat, 20 Feb 2021 09:15:26 +1100 Subject: [PATCH 3/5] Removed log --- fastlane/Fastfile | 1 - 1 file changed, 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 39cc255..5dd535f 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -201,7 +201,6 @@ platform :ios do ) do |profile, index| filename = "ios-build-#{index}.mobileprovision" puts "creating ../#{filename}" - puts "using #{Base64.decode64(profile)}" File.write("../#{filename}", Base64.decode64(profile)) @profiles.push(filename) end From 69079fc0b69773334549ce184146f46d9b26d1e1 Mon Sep 17 00:00:00 2001 From: Rhydian Thomas Date: Sun, 21 Feb 2021 13:18:54 +1100 Subject: [PATCH 4/5] Updated readme to avoid newline issues --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3656801..8b53847 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,10 @@ You can add a single p12 key+cert file with `p12-base64`, or if you have key and ${{ secrets.YOUR_MOBILEPROVISION_BASE64 }} ``` +> NOTE:- when creating base64 encoded inputs, make sure they don't contain newlines, e.g. + + openssl base64 -in MyAppProvisioning.mobileprovision -A + ### `project-path` **Required**: .xcodeproj path. From ce591ea65780035cff5a232ccf32cf64b10b61a4 Mon Sep 17 00:00:00 2001 From: Rhydian Thomas Date: Sun, 21 Feb 2021 13:20:18 +1100 Subject: [PATCH 5/5] Readme format --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b53847..40f913e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ You can add a single p12 key+cert file with `p12-base64`, or if you have key and ${{ secrets.YOUR_MOBILEPROVISION_BASE64 }} ``` -> NOTE:- when creating base64 encoded inputs, make sure they don't contain newlines, e.g. +Also note, when creating base64 encoded inputs, make sure they don't contain newlines, e.g. openssl base64 -in MyAppProvisioning.mobileprovision -A