1

I updated macOS to Big Sur and Xcode to 12.5 and I am trying to build my app locally. Build Succeeded but when it come to run the simulator I have an error Executable not found see the below image.

Note: this is a quick cocos2d generated project.

Archiving and building on test flight is working fine.

enter image description here

I tried to delete my derived data and all my caches and rebuild again I still have the same problem.

I also go to Product > Scheme > Manage Schemes, and I deleted all the current scheme and autocreate schemes again it didn't work still same issue.

  • What have you tried so far? Did you clean the project? Did you delete Derived Data? – EmilioPelaez Jun 04 '21 at 13:04
  • @EmilioPelaez yes i deleted my derived data and even all my caches and tried to rebuild same issue. – Moustafa Tlais Jun 04 '21 at 15:36
  • When you say "deleted all my chances" do you mean Clean/Deep Clean of the project? If not - please do it. Clean is Command-Shift-K and deep clean is Command-Option-Shift-K. – o15a3d4l11s2 Jun 07 '21 at 12:48
  • i can't perform a deep clean i went to product -> then i press on the option key then i can't press on clean build folder any idea... – Moustafa Tlais Jun 07 '21 at 15:47
  • This isn't a solution so I'm just adding it here. Xcode has a bug where sometimes the filesystem and its internal file database get out of sync. You may be able to figure out what is going on by opening the shell, changing directory to your project files, finding the name of your xcodeproj directory, running "xcodebuild -list -project ./Whatever.xcodeproj", then find the Scheme you are trying to use, and then run "xcodebuild -scheme SchemeName build". See this for more details: https://stackoverflow.com/questions/45681264/how-to-build-xcode-project-from-the-command-line –  Jan 26 '22 at 23:28

1 Answers1

0

What worked for me is simply go to Product > Scheme > Manage Schemes.. and delete the current scheme and create a new one. With that it worked again

Pat_Morita
  • 3,355
  • 3
  • 25
  • 36