Open jerome-morgado opened 3 years ago
I am having a somewhat similar issue; did you manage to resolve yours?
[10:09:39]: ------------------------------------------
[10:09:39]: --- Step: install_provisioning_profile ---
[10:09:39]: ------------------------------------------
[10:09:39]: Installing provisioning profile...
[10:09:39]: Failure to decode /Users/runner/work/iosCICD/iosCICD/ios-build-1.mobileprovision. Exit: 1: security: failed to decode message: UNKNOWN (-8183(d)
Update: That error was resolved for me. My prob was in how I copied the base64 encoded profile from my machine.
I copied this mobile profile base64 encoded on GitHub secrets because the env var is named mobileprovision-base64 Shall I use the mobileprovision-base64 env with a non-encoded content ?
Maybe it would be great if we have more debug on the content sent from the user. Just to be sure that the content is well set.
Regards
Mine worked with base64 encoded. I just made sure I copied the whole thing. not just cat it to screen. I opened the encoded file in a text file and copied it to the secrets. that way I made sure I copied the whole thing
Ok, il did it in my terminal cat /Path/to/file.mobileprovision | base64 | pbcopy
Sorry for the late response. @ibrandis Thanks for the solution!
How to be sure that env are well set ?
I made a script tu build :
#/bin/bash
export P12_KEY_BASE64="MIIM...........AQE=";
export CERTIFICATE_PASSWORD="Xxxxxx";
export MOBILEPROVISION_BASE64="MIIc.....Oubs=";
export PROJECT_PATH="MyProject.xcodeproj";
export CODE_SIGNING_IDENTITY="iPhone Distribution";
export TEAM_ID="Team Name";
export WORKSPACE_PATH="MyProject.xcodeproj/project.xcworkspace";
export SCHEME="MyProject";
export UPDATE_TARGETS="MyProject";
export DISABLE_TARGETS="MyProject preprod,MyProject dev,MyProject qa,MyProjectUITest";
env // This is to show env
## RUN FASTLANE
fastlane ios export_ipa
And I have this issue :
[11:09:38]: Error in your Fastfile at line 180
[11:09:38]: 178: def decode_file
[11:09:38]: 179: @is_split_cer =
[11:09:38]: => 180: !ENV['P12_KEY_BASE64'].empty? && !ENV['P12_CER_BASE64'].empty?
[11:09:38]: 181: if @is_split_cer
[11:09:38]: 182: File.write('../ios-build-key.p12', Base64.decode64(ENV['P12_KEY_BASE64']))
I think we really need a Working Example with a Fake project (Fake Name, Fake Keys, Fake Team) but with screenshots explain g. And why not a script to make a test locally (D/L fast lane, and build script )
We can't debug easily, make breakpoints or display info during the build.
Regards.
Sorry for the late response. You need to set an empty string even for environment variables that you are not using. For more information about environment variables, please click here.
If you have already imported the certificate to your Mac, remove the code here.
I believe that this code should be removed anyway. Cause it somehow replaced my 'login' keychain with 'ios-build' and I have no password. @yukiarrr is it normal behaviour?
If you have already imported the certificate to your Mac, remove the code here.
Cause it somehow replaced my 'login' keychain with 'ios-build' and I have no password. @yukiarrr is it normal behaviour?
Confirm, I bumped into the same behaviour.
Hi,
I have this issue :
How can I debug ? How to be sure that mobileprovision and certs are correct ? Is it possible to list the names (not the content) to be sure ?