This file contains hidden or 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
/Library/Preferences/Logging/Subsystems/<com.your.app>.plist | |
sudo log config --mode "level:debug,persist:debug" --subsystem com.myapp.subsystem |
This file contains hidden or 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
xcrun simctl spawn booted log stream --debug --predicate 'subsystem == "com.yourapp.subsystem"' |
This file contains hidden or 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
1. CREATE EXTENSION "uuid-ossp"; | |
2. ALTER TABLE fluent RENAME TO fluent_old; | |
CREATE TABLE fluent | |
AS (SELECT uuid_generate_v4() as id, name, batch, created_at as createdAt, updated_at as updatedAt from fluent_old); | |
3. After you have verified the table was transferred properly, you can drop the old fluent table: DROP TABLE fluent_old; |
This file contains hidden or 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
# Output version numbers into a label on LaunchScreen.storyboard | |
sed -i "" -e "/userLabel=\"LAUNCH_APP_VERSION\"/s/text=\"[^\"]*\"/text=\"App Version: $MARKETING_VERSION\"/" "$PROJECT_DIR/daytwo/App/View/Base.lproj/LaunchScreen.storyboard" | |
# Output version & build number to the APP_VERSION label on LaunchScreen.storyboard | |
versionNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLIST_FILE}") | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}") | |
sed -i "" -e "/userLabel=\"APP_VERSION\"/s/text=\"[^\"]*\"/text=\"Version: $versionNumber ($buildNumber)\"/" "$PROJECT_DIR/$PROJECT_NAME/Storyboards/Base.lproj/LaunchScreen.storyboard" |
This file contains hidden or 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
git log -5 --format='%C(yellow)%ad%Creset% Cgreen(%cN)%Creset - %s' --date=human | |
git log -5 --format='%C(yellow)%ar%Creset% Cgreen(%cN)%Creset - %s' |
This file contains hidden or 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
mdfind "com_apple_xcode_dsym_uuids == <UDID>" | |
mdfind "com_apple_xcode_dsym_uuids == *" |
This file contains hidden or 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
function run(input, parameters) { | |
var xcode = Application("Xcode"); | |
var ws = xcode.activeWorkspaceDocument(); | |
var genericDest = null; | |
var devices = []; | |
ws.runDestinations().forEach(function(runDest) | |
{ | |
if (runDest.platform() != "iphoneos") | |
return; | |
if (runDest.device().generic()) |
This file contains hidden or 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
sudo chmod 0777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist | |
code /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist | |
<key>User Edit</key> | |
<dict> | |
<key>Duplicate Current Lines Down</key> | |
<string>selectParagraph:, delete:, yank:, moveToBeginningOfParagraph:, yankAndSelect:</string> | |
</dict> |