0

I can't add it and there's no debug optimization, yet I got the log:

ProjectName was compiled with optimization - stepping may behave oddly; variables may not be available.

enter image description here

More info: I went to the edit build scheme and it's set as debug mode.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
RodolfoAntonici
  • 1,555
  • 21
  • 34

1 Answers1

5

It looks like you've accidentally deleted your debug configuration. To prove this to yourself, look at your project's Info pane. You should see this — but I'm betting you won't:

enter image description here

A configuration is just a name, so you can easily recreate the debug configuration right here in the project settings; but that won't magically restore all the corresponding default build setting values. Your best bet is to consider this project hosed: make a new project, to get the template's values for the build settings, and migrate everything from this project into it.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • 2
    Alternatively, if you've been diligently using a version control system like git, it may be easier to just revert your .pbxproj. – rob mayoff Apr 24 '16 at 02:52
  • Well looked into the git, it happened when a co-worker deleted the Cocoapods workspace. Thank you very much. Restored everything it worked perfectly! Thank you very much! – RodolfoAntonici Apr 24 '16 at 14:01
  • @robmayoff and matt can you look inti this problem of mine please : https://stackoverflow.com/questions/45078851/optimization-stepping-may-behave-oddly-ios-unity – Sharad Chauhan Jul 15 '17 at 10:58