exp build ios got Error: Cannot read PKCS#12 PFX

#1

Hi there

I’m trying to build and submit to App Store.
I used “exp build:ios -c” command and let expo handle all the processes.

Then I got the below error.

? How would you like to upload your credentials?
 Expo handles all credentials, you can still provide overrides

We need your Apple ID/password to manage certificates and
provisioning profiles from your Apple Developer account.

Note: Expo does not keep your Apple ID or your Apple password.
    
? What's your Apple ID? xxxxx@nnnn.com
? Password? [hidden]
[16:14:58] Validating Credentials...
[16:15:01] Only 1 team associated with your account, using Team ID: 7439VY682Y
? Will you provide your own Distribution Certificate? Let Expo handle the process
? Will you provide your own Push Certificate? Let Expo handle the process
[16:15:10] Error while gathering & validating credentials
[16:15:10] Error: Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.
[16:15:10] Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.
[16:15:10] Error: Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.
    at Object.p12.pkcs12FromAsn1 (/usr/local/lib/node_modules/exp/node_modules/node-forge/lib/pkcs12.js:329:17)
    at _getCertData (/xdl@50.4.2/src/detach/IosCodeSigning.js:50:28)
    at Object.findP12CertSerialNumber (/xdl@50.4.2/src/detach/IosCodeSigning.js:35:20)
    at /xdl@50.4.2/src/Credentials.js:137:26
    at Array.map (<anonymous>)
    at Object.<anonymous> (/xdl@50.4.2/src/Credentials.js:134:16)
    at Generator.next (<anonymous>)
    at step (/usr/local/lib/node_modules/exp/node_modules/xdl/build/Credentials.js:205:191)
    at /usr/local/lib/node_modules/exp/node_modules/xdl/build/Credentials.js:205:361
    at run (/usr/local/lib/node_modules/exp/node_modules/core-js/modules/es6.promise.js:75:22)

Here is my development environment.

Environment:
  OS: macOS Sierra 10.12.6
  Node: 10.1.0
  Yarn: Not Found
  npm: 5.10.0
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: Not Found

Packages: (wanted => installed)
  react: ^16.3.2 => 16.4.1
  react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2

Have you ever seen the similar error?

I really appreciate if anyone could help?
I have to submit my app to App Store this week. So the schedule is really tight.

I got another error on another environment.

You can refer it here.

Thank you so much?

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.