-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Troubleshooting
It's possible that the project will not build at first try. This might be due to caching issues of some sort. Please try the following steps in sequential order:
- Make sure you are on
macOS 13.5
or later as well asXcode 15.0
or later - Clean the build folder (⇧⌘K)
- Reset package caches using
File > Packages > Reset Package Caches
- Update to latest package versions using
File > Packages > Update to latest Package versions
- Clear the
DerivedData
folder which is usually located in~/Library/Developer/Xcode
- Make sure
SwiftLint
is installed on your machine. See SwiftLint for more information. - Restart Xcode.
- Restart your Mac.
If none of the above mentioned steps work please have a chat with us in the help
channel on our Discord Server.
First of all make sure you have SwiftLint
installed. To do so simply run brew install swiftlint
in your terminal.
Also make sure that SwiftLint
is updated. An outdated version can result in false positive error messages.
To update SwiftLint
on your machine:
brew update && brew upgrade swiftlint
This is an error generated by SwiftLint. It means that there are space
characters after the last statement of the line. Delete all spaces
to get rid of this error.
Recommended: Go to Xcode's
Preferences > Text Editing > Editing
and enable:
- Automatically trim trailing whitespace
- Including whitespace-only lines
This is an error generated by SwiftLint. It means that there is more than one empty line between to statements. Delete all but one empty lines to get rid of this error.
Recommended: Go to Xcode's
Preferences > Text Editing > Editing
and enable:
- Automatically trim trailing whitespace
- Including whitespace-only lines
You may have noticed that SwiftUI does not work out of the box with CodeEdit
.
Previews will not work in very large and complicated views such as
WorkspaceView
When working on a specific module in CodeEditModules
just change the run target to the specific module, then make a clean build and Previews should work instantly.
When working on the main target of CodeEdit it becomes a little more complicated: Go to CodeEdit > Targets > CodeEdit > Signing & Capabilities > Signing
.
There select your personal Team
and change the Signing Certificate
to Development
.
Previews should now work in most views.
Before submitting a PR please change back the Team to
None
and the Signing Certificate toSign to Run Locally
!