How does react-native run-ios
determine the arguments when invoking xcodebuild
?
#1816
Labels
question
Further information is requested
I'm running into an issue trying to run my React Native app after updating to 0.71.2.
When using
react-native run-ios
, I see that axcodebuild
command is ran:This has worked fine for months however since this update it seems this destination UDID no longer exists. Resulting in xcodebuild failing:
Building the app using Xcode works without problems, and it opens on the simulator I selected in Xcode.
My question is: where is this destination UDID coming from? I'm not passing anything, I've cleaned my build folders, I've updated Xcode to latest (14.2), I've cleared the DerivedData and simulators, I've manually changed the selected simulator in Xcode, yet this problem still persists.
Manually overriding the UDID using the
--udid
flag like so:DOES work, however, this does not "update" the stored UDID, and when I try to go back to just
npx react-native run-ios
, it still invokes xcodebuild with the wrong/old UDID.How can I reset this? How can I change the destination permanently without passing the --udid flag?
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: