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

Error: security: SecKeychainItemImport: Unknown format in import. #71

Open
RobTranquillo opened this issue Dec 22, 2021 · 1 comment
Open

Comments

@RobTranquillo
Copy link

Hi and thanks for your work,

we can't get this thing to work, we get this error:

[07:36:33]: -----------------------------
[07:36:33]: --- Step: create_keychain ---
[07:36:33]: -----------------------------
[07:36:33]: $ security list-keychains -d user
[07:36:33]: ▸ "/Users/runner/Library/Keychains/ios-build.keychain-db"
[07:36:33]: Found keychain '/Users/runner/Library/Keychains/ios-build.keychain-db' in list-keychains, adding to search list skipped
[07:36:33]: --------------------------------
[07:36:33]: --- Step: import_certificate ---
[07:36:33]: --------------------------------
[07:36:33]: $ security import ios-build-key.p12 -k '/Users/runner/Library/Keychains/ios-build.keychain-db' -P ******** -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild
[07:36:33]: security: SecKeychainItemImport: Unknown format in import.
[07:36:33]: --------------------------------
[07:36:33]: --- Step: import_certificate ---
[07:36:33]: --------------------------------
[07:36:33]: $ security import ios-build-key.cer -k '/Users/runner/Library/Keychains/ios-build.keychain-db' -P ******** -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild
[07:36:33]: security: SecKeychainItemImport: Import/Export format unsupported.
[07:36:33]: ------------------------------------------
[07:36:33]: --- Step: install_provisioning_profile ---
[07:36:33]: ------------------------------------------
[07:36:33]: Installing provisioning profile...
[07:36:33]: Failure to decode /Users/runner/work/StadtgeschichtlichesMuseumLeipzigAR/StadtgeschichtlichesMuseumLeipzigAR/ios-build-1.mobileprovision. Exit: 1: security: failed to add data to decoder: UNKNOWN (-8183(d)
security: problem decoding

and our yaml looks like that:

      # Creates the iOS project and package files
      - name: Create iOS project and package ⚙️
        uses: yukiarrr/ios-build-action@v1.5.0
        id: ios-payload
        if: success()
        with:
          p12-key-base64: ${{ secrets.P12_KEY_BASE64 }}
          p12-cer-base64: ${{ secrets.P12_CER_BASE64 }}
          mobileprovision-base64: ${{ secrets.MOBILEPROVISION_BASE64 }}
          certificate-password: ${{ secrets.CERTIFICATE_PASSWORD }}
          code-signing-identity: ${{ secrets.CODE_SIGNING_IDENTITY }}
          team-id: ${{ secrets.TEAM_ID }}
          project-path: ${{ env.BUILD_PATH }}/${{ env.UNITY_TARGET }}/${{ env.PROJECT_NAME }}/Unity-iPhone.xcodeproj
          output-path: ${{ env.BUILD_PATH }}/${{ env.UNITY_TARGET }}/${{ env.PROJECT_NAME }}.ipa
          scheme: Unity-iPhone
          export-method: development
          configuration: Release
          update-targets: Unity-iPhone
          cloned-source-packages-path: ""
          build-sdk: ""
          build-destination: ""

I don't know what wrong here. Could you help me?

Note1: I have successfully done the signing via Fastlane Match and Game-CI. Therefore, I think the credentials should be fine.

Note2: The Step: [07:36:32]: Driving the lane 'ios export_ipa' 🚀 creates ofer 400 mobilesprovision files: [07:36:33]: creating ../ios-build-432.mobileprovision But we only have around one hundred devices in our Apple account. Addendum our Bundle ID is "* (wildcard)". Dont know if its related.

Thanks

@AkshayPathakMLF
Copy link

Having this problem as well. @RobTranquillo Did you find a solution for this problem? I am able to get it working if I provide the mobile provision path directly but that's not something that I would like to commit into git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants