Trying to launch from XCode to device results in "Project file not found"

i just came with same problem, could you please tell me more about how to “explicitly Cooked and Packaged in Editor before running from XCode”?
And, my .uproject file is in ProjectX/XGame.uproject, but in logs, it’s XGame/XGame.uproject, i changed buildingSettings > Product Name in XGame.xcworkspace, but it didn’t work, how can i change this config?