Expo build:ios standalone build failed

#1

My iOS standalone build is failing, something to do with certificates.

Any idea how I can fix this

Error output:

importing distribution certificate into keychain...
importing certificate into keychain...
certificate has password
[stderr] security: SecKeychainItemImport: Unknown format in import.
unable to import distribution certificate into keychain
Error: security exited with non-zero code: 1
    at ChildProcess.completionListener (/usr/local/turtle-js/node_modules/@expo/spawn-async/build/spawnAsync.js:51:23)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Socket.stream.socket.on (internal/child_process.js:336:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:561:12)
    ...
    at spawnAsync (/usr/local/turtle-js/node_modules/@expo/spawn-async/build/spawnAsync.js:16:21)
    at /usr/local/turtle-js/node_modules/xdl/build/detach/ExponentTools.js:78:71
    at Generator.next (<anonymous>)
    at step (/usr/local/turtle-js/node_modules/xdl/build/detach/ExponentTools.js:249:191)
    at /usr/local/turtle-js/node_modules/xdl/build/detach/ExponentTools.js:249:437
    at new Promise (<anonymous>)
    at /usr/local/turtle-js/node_modules/xdl/build/detach/ExponentTools.js:249:99
    at spawnAsyncThrowError (/usr/local/turtle-js/node_modules/xdl/build/detach/ExponentTools.js:89:18)
    at args (/usr/local/turtle-js/node_modules/xdl/build/detach/ExponentTools.js:325:12)
    at Object.<anonymous> (/usr/local/turtle-js/node_modules/xdl/build/detach/IosKeychain.js:78:11)
    at Generator.next (<anonymous>)
    at step (/usr/local/turtle-js/node_modules/xdl/build/detach/IosKeychain.js:176:191)
    at /usr/local/turtle-js/node_modules/xdl/build/detach/IosKeychain.js:176:437
    at new Promise (<anonymous>)
    at Object.<anonymous> (/usr/local/turtle-js/node_modules/xdl/build/detach/IosKeychain.js:176:99)
    at Object.importIntoKeychain (/usr/local/turtle-js/node_modules/xdl/build/detach/IosKeychain.js:83:18)
    at Object.importCert (/usr/local/turtle-js/build/builders/utils/ios/keychain.js:57:33)
    at <anonymous>
#2

Hey @yoursclothing,

Can you try running expo build:ios --clear-credentials which will wipe the credentials slate clean and then you’ll generate new ones which hopefully will remedy the issue.

Cheers,
Adam