Expo for some reason has started giving me the following error when I try to build using "npx expo run:ios":
Your computer requires some additional setup before you can build onto physical iOS devices.
Learn more
CommandError: No code signing certificates are available to use.
However, I have no intention of building for physical iOS devices, only for simulator. Googling this error, all the solutions talk about getting this to run on. a physical device, but this is not what I want – I want to go back to using a simulator.
I’ve been trying to deal with this issue for the past day as it has never shown this message before in the past; tried deleting my ios folder and looked in config and xcode settings for anything which might be relevant, as well as settings or additional commands but it keeps thinking I wish to build to a physical iOS device.
Also working with a new node_modules and pods folder and yarn.lock file.
Please help!
2
Answers
In my case, adding
usesAppleSignIn
toapp.json
and runningexpo prebuild --clean
added an entitlement to the Xcode project, which produced this error.Here are the two entitlements listed that will trigger this. https://github.com/expo/expo/blob/main/packages/%40expo/cli/src/run/ios/codeSigning/simulatorCodeSigning.ts#L10
The issue was resolved when I removed
usesAppleSignIn
and then ranexpo prebuild --clean
again.This happened to me and I just had to open up my workspace in Xcode (
xed ios
) and configureTeam
with my code signing identity underSigning & Capabilities
https://github.com/expo/fyi/blob/main/setup-xcode-signing.md. It wasn’t my app, so it showed some warnings likeCannot create a iOS App Development provisioning profile for ...
, but I just ignored them andexpo run:ios
on the command line was happyYou might need to create a cert in Xcode first https://developer.apple.com/documentation/xcode/sharing-your-teams-signing-certificates#Create-a-new-code-signing-identity