If you have a lot of schemes in your Xcode project, searching for the one you want to run may be slow, even if you use the “search as you type” feature. Because of this, you may choose to hide or not generate schemes that you don’t regularly use. Here’s an example of an Xcode project with a lot of schemes:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsp--stdio-wait: Content-Length: 1534 | |
{ | |
"jsonrpc": "2.0", | |
"method": "initialize", | |
"params": { | |
"processId": 512, | |
"rootPath": "/Users/dmartin/Downloads/CryptoSwift-master/Sources/CryptoSwift/", | |
"rootUri": "file:///Users/dmartin/Downloads/CryptoSwift-master/Sources/CryptoSwift/", | |
"capabilities": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dm/copy-as-rtf () | |
"Export region to RTF and copy it to the clipboard." | |
(interactive) | |
(save-window-excursion | |
(let* ((buf (org-export-to-buffer 'html "*Formatted Copy*" nil nil t t)) | |
(html (with-current-buffer buf (buffer-string)))) | |
(with-current-buffer buf | |
(shell-command-on-region | |
(point-min) | |
(point-max) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
/// Some helpers for having nice test assertions. | |
public func expectationFailure( | |
_ reason: String, | |
trace message: String) { | |
print(reason, terminator: reason == "" ? "" : "\n") | |
print(message, terminator: message == "" ? "" : "\n") | |
} |
If you work on a Swift project that follows the Model-View-ViewModel (MVVM) architecture or similar, you may want to jump to counterpart in Xcode from your view to your model, and then to your view model. (ie. by using Ctrl+Cmd+Up and Ctrl+Cmd+Down).
You can do this in recent versions of Xcode by setting a configuration default.
From a terminal, just type this command and press Enter:
defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View"
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"spec": "com.apple.compilers.metal", | |
"path": "/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/Metal.xcplugin/Contents/Resources/Metal Compiler.xcspec", | |
"options": [ | |
{ | |
"name": "CLANG_DIAGNOSTICS_FILE" | |
}, | |
{ | |
"name": "MTLCOMPILER_DEPENDENCY_INFO_FILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dm/kill-diff (arg) | |
"Kill added/removed lines of diff output, removing the diff markers. | |
Without a prefix argument or a positive argument, kill the added | |
lines. With a negative argument, kill the removed lines." | |
(interactive "P") | |
(kill-new | |
(thread-last (buffer-substring-no-properties | |
(region-beginning) | |
(region-end)) | |
(replace-regexp-in-string |
OlderNewer