Swift Playgrounds not updating automatically on macOS [duplicate] - swift

This question already has answers here:
Xcode: Any way to refresh/re-run the playground?
(7 answers)
Closed 4 years ago.
I have several Swift playgrounds on my machine that aren't updating automatically. I can manually select "Run Playground" from the Editor menu, which runs what's in the playground at that time, but it never updates when I type new code. I've tried clearing the compilation cache in "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache", restarting Xcode, restarting the simulator service, even rebooting my Mac, and none of these fix the issue. What can I look at to make my playground update automatically?

In this case, the issue was that my playgrounds were not set to run automatically. There's a Play arrow down the bottom of the playground window that will be empty if automatic running is disabled. Click and hold the arrow to reveal a dropdown menu and select "Automatically Run".

Related

Black screen on viewController in IB, Xcode 12.4 [duplicate]

This question already has answers here:
Xcode 10 storyboard UI components are not visible and painfully slow?
(7 answers)
Closed 2 years ago.
I'm updated Xcode to version 12.4 (12D4e), MacOS 10.15.7, open my project, and see it:
All elements lost labels, have black background (don't change from IB) and blue borders. If i add new element on viewController - i get same thing.
In Simulator and real iPhone all works fine, but in IB - that problem.
Clean build folder, restart Xcode and MacOS not working.
Does anyone know how to fix it? Thx
UPDATE, with solution this problem:
I'm rolled back last commit in project and problem disappeared. Maybe, that happens, because i'm used in last commit custom class with #IBDesignable properties and delete him later, before commit on Github and update Xcode. I found similar problem and answer, on this link https://stackoverflow.com/a/56121110/13110274
Now all works correctly
Have you tried to select and deselect bound rectangles from "Adjust Editor options" in your storyboard?
Also, it seems your storyboard overstuffed. I recommend you separate it into few views.

Changed Project Name and Now Can't Build In Xcode [duplicate]

This question already has answers here:
How can I change the name of an iOS app in Xcode?
(36 answers)
Closed 2 years ago.
I changed my project display name and then changed its name in the project navigator. (same new name for both). I noticed the target name didn't change. Now I'm noticing that I can't find or build the project and my intents are out of scope.
I tried changing the target name itself. It would let me click on it to edit but it wouldn't save it unless its as the old name. I also tried cleaning the build folder and restarting Xcode based on SO advice, but it didn't work.
What do I do?
On left side click project navigator and press enter.
rename the project and press enter, xcode will open a popup showing all references of old name. rename and its done.

Running iOS project with Xcode 6 enters debug mode

I'm having problems running my iOS project with Xcode 6 beta. I believe it is entering a debug mode or something. I might have done something by pressing a key shortcut, because I didn't have the problem before. Previously the iOS simulator would appear with my app showing.
Whenever I run the project now this screen appears and the iOS simulator doesn't show up at all. I would like the run button to function as before. I have tried the Product->Clean feature, closing Xcode, recreating the project, removing the app from the iOS home screen, deleting the derived data and various features in the Debug menu.
What is happening and how can I revert the change?

Xcode 4 - removing "Default.png" [duplicate]

This question already has an answer here:
Closed 12 years ago.
Possible Duplicate:
Can't remove Default.png?
I am using Xcode 4, but I am sure the issue does not pertain to this specific IDE.
I have set a "Default.png" using the organizer, but I would like to remove it.
At the time I had already created an image in my project which was no longer being used, instead replaced by the image set in the organizer. I have removed that file, and any "default.png" files from my application (*.app) folders, but the image remains.
How can I get rid of this image?
Do a "clean" of your project.

Xcode documentation links behave crazy [duplicate]

This question already has answers here:
Xcode Developer Documentation Link Hover Jumps To Top
(2 answers)
Closed 4 years ago.
The links in Xcode documentation, that mean the methods in the "Tasks" for example,
when i only put the mouse on the links, then the page go up.
What happen to Xcode?
I've seen this on and off as well in the previous version of Xcode.
I haven't seen the problem in Xcode 3.2.1.
This is a duplicate of question 1288900.
It drives me crazy, too.
I found a simple work-around that hopefully works for you. Use the mouse and select some of the text on the page somewhere. That's it. For some reason, hovering over the links no longer makes the page snap to the top.