1

I have projects that I have created with earlier releases of Xcode. I was forced to upgrade to Xcode 12.0. When I run my old projects, not tried all of them, I am not getting any variable declared outside of the current routine, the variables within the current routine do not show any value. I have created a new project and the same thing applies. I have checked old reports and all my optimization settings are none, and I have debug for my Build configuration along with many of the other suggestions on earlier versions of Xcode with the same problem. So there's probably something very simple that I need to do but I can't find it. Hope somebody has the solution.

4 Answers 4

2

for me what did the change is removing facebookSDK from swift packages and return to use pods.

Sign up to request clarification or add additional context in comments.

Comments

1

Did you try going to warnings and pressing update to recommended settings?

Edit: The warnings are found in the tab that looks like an exclamation mark.This is what it looks like

4 Comments

Can you tell me where I can find warning please.
Tried "defaults delete com.apple.dt.Xcode" from Terminal and it did NOT do the trick.
@DavidRogers I have added it as an image above.
No that did not fix the problem
0

Open Menu

  1. Product -> Scheme -> Edit Scheme -> Test

  2. Tab [Info -> LLDB Init File]

  3. Paste the following link

     $(SRCROOT)/.lldbinit
    

Comments

0

I had the same problem, using Xcode 12.5.1, and eventually solved it by changing my default interactive shell to zsh, then closing and reopening Xcode.

To change the default interactive shell to zsh, use this command in a terminal (command line) window:

chsh -s /bin/zsh

I had already ensured that both Objective C and Swift were being compiled with no optimisation in debug mode, and that I was running a debug build of my app.

Before I made the change I couldn't see any variables, and no lldb commands worked. The change fixed both those problems.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.