After included Apple Authentication to my app, I’m trying to build a standalone IOS app but it fails. I’m using my own credentials so I included the flags --dist-p12-path, --team-id and --provisioning-profile-path and I run the build clearing credentials.
App ID found on Apple Developer Portal.
Getting Distribution Certificates from Apple…
The Distribution Certificate is no longer valid on the Apple Developer Portal
Failed to set up Distribution Certificate
Failed to prepare all credentials.
The next time you build, we will automatically use the following configuration:
Project Credential Configuration:
Experience: @xxx/xxx, bundle identifier: xxx
Provisioning profile is missing. It will be generated during the next build
Apple Team ID: xxx, Apple Team Name: ---------
I had the exact same issue.
Apparantly Expo is stearing away from manually adding your credentials. The way that solved it for me was by using expo credentials:manager and upload my credentials. Then trigger the build locally and point the build to the correct credentials through the interactive flow.
After this the automated CICD with the non-interactive flow would pickup the correct credentials and work perfectly.
If you want it to work by presenting your own credentials you will need to use Expo cli version 3.18.6, that worked for me as well.
Thanks for your answer, I’ve changed to Expo cli version 3.18.6 but it still doesn’t work.
Authenticating to Apple Developer Portal…
Authenticated with Apple Developer Portal successfully!
Only 1 team associated with your account, using Apple Team with ID: xxx
Fetching available credentials
App ID found on Apple Developer Portal.
**Failed to prepare all credentials. ** The next time you build, we will automatically use the following configuration:
Project Credential Configuration:
Experience: @xxx/xxx, bundle identifier: xxx
Provisioning profile is missing. It will be generated during the next build
Apple Team ID: xxx, Apple Team Name: ---------
Distribution Certificate - Certificate ID: -----
Apple Team ID: xxx, Apple Team Name: ---------
used by @xxx/xxx (xxx)
Push Notifications Key - Key ID: xxx
Apple Team ID: xxx, Apple Team Name: ---------
used by @xxx/xxx (xxx)
Then the build starts and fail with this message: Build failed. Standalone build failed!
In Expo logs I’ve found that the error is in Building and signing IPA section:
building and signing IPA
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (buffer.js:313:9)
at Object.writeBase64ToBinaryFile (/usr/local/turtle-js/build/builders/utils/file.js:8:27)
at buildAndSignIPA (/usr/local/turtle-js/build/builders/ios/archive.js:48:21)
at Object.buildArchive [as default] (/usr/local/turtle-js/build/builders/ios/archive.js:28:15)
at async Object.iosBuilder [as ios] (/usr/local/turtle-js/build/builders/ios/index.js:29:13)
at async build (/usr/local/turtle-js/build/jobManager.js:158:24)
at async processJob (/usr/local/turtle-js/build/jobManager.js:103:32)
at async Object.doJob (/usr/local/turtle-js/build/jobManager.js:35:5)
at async main (/usr/local/turtle-js/build/server.js:44:13)
I still have the same error, any solution? I could build an app version a few days ago when I delete the distribution certificate from another expo account, but now I have this error again