- Xcodegen - a Swift command line tool for generating your Xcode project;
- XcodeProj - read, update and write your Xcode projects;
- XCLogParser - tool to parse
xcactivitylog
by Spotify;
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
Sampling process 33134 for 1 second with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling firefox (pid 33134) every 1 millisecond | |
Process: firefox [33134] | |
Path: /Applications/Firefox.app/Contents/MacOS/firefox | |
Load Address: 0x1046b4000 | |
Identifier: org.mozilla.firefox | |
Version: 87.0 (8721.2.25) | |
Code Type: ARM64 | |
Platform: macOS |
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
mkdir -p ".deps" | |
cd .deps && \ | |
cmake -G 'Ninja' \ | |
/Users/dive/Projects/github/neovim/third-party | |
-- The C compiler identification is AppleClang 12.0.0.12000032 | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: /Volumes/Extended/Archives/Xcode_12.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped | |
-- Detecting C compile features | |
-- Detecting C compile features - done |
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
#!/usr/bin/env bash | |
set -eo pipefail | |
# Prepare the workspace in the TEMP directory | |
NAME="Temp.xcworkspace" | |
DATA_FILE="contents.xcworkspacedata" | |
TEMP_DIR=$(mktemp -d) | |
mkdir "${TEMP_DIR}/${NAME}" | |
touch "${TEMP_DIR}/${NAME}/${DATA_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
#!/usr/bin/env bash | |
set -euo pipefail | |
declare -a PROJECTS=() | |
function XcodeProjectsInCurrentDirectory() { | |
TEMP_FILE=$(mktemp) | |
SEARCH_PATTERN="*${1}*.xcodeproj" | |
find . -iname "$SEARCH_PATTERN" -type d -print0 | sort -z > "$TEMP_FILE" | |
while IFS= read -r -d $'\0'; do |
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 dive/org-mark-as-reviewed () | |
"Mark current selected items as REVIEWED." | |
(org-set-property "REVIEWED" (org-time-stamp '(16) nil))) | |
(add-to-list 'org-agenda-bulk-custom-functions | |
'(?R dive/org-mark-as-reviewed)) |
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
;;; package --- Fix permissions for Emacs.app on macOS Catalina | |
;;; Author: Artem Loenko | |
;;; Mail-To: <artyom.loenko@mac.com> | |
;;; Commentary: | |
;;; Code: | |
(defconst _default-emacs-app-plist-path "/Applications/Emacs.app/Contents/Info.plist") | |
(defconst _temp-buffer-name "*fixing Emacs permissions*") | |
(defconst _temp-buffer (get-buffer-create _temp-buffer-name)) | |
(with-current-buffer _temp-buffer (erase-buffer)) |
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
xctest[18838:9855653] The bundle "ios-framework-packagePackageTests.xctest" couldn't be loaded because it is damaged \ | |
or missing necessary resources. Try reinstalling the bundle. | |
xctest[18838:9855653](dlopen_preflight(./ios-example/ios-framework-package/.build/x86_64-apple-macosx10.10/debug/ios-framework-packagePackageTests.xctest/Contents/MacOS/ios-framework-packagePackageTests): | |
**Library not loaded: @rpath/libswiftUIKit.dylib** | |
... | |
Reason: no suitable image found. Did find: | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftUIKit.dylib: mach-o, | |
**but built for simulator (not macOS))** |
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
swift test --verbose \ | |
-Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" \ | |
-Xswiftc "-target" -Xswiftc "x86_64-apple-ios12.1-simulator" \ | |
-Xswiftc "-lswiftUIKit" |
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
$ otool -l .build/debug/ios_framework_package.build/ios_framework_package.swift.o | |
... | |
Load command 6 | |
cmd LC_LINKER_OPTION | |
cmdsize 32 | |
count 2 | |
string #1 -framework | |
string #2 UIKit | |
... |