How to use iTMSTransporter

Issue #563 Transporter app Transporter Now Available on the Mac App Store The new Transporter app for macOS makes it easy to upload your binary to App Store Connect. To get started, download Transporter from the Mac App Store, and simply drag and drop your binaries into the upload window. With Transporter you can https://stackoverflow.com/questions/8094317/where-to-find-application-loader-app-in-mac/40419328 As of Xcode 11, "Application Loader is no longer included with Xcode", per the Xcode 11 Release Notes: Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool....

January 1, 2020 · 3 min · 498 words · Khoa

How to keep command line tool running with async in Swift

Issue #549 Use Semaphore public class Sequence: Task { public func run(workflow: Workflow, completion: @escaping TaskCompletion) { let semaphore = DispatchSemaphore(value: 0) runFirst(tasks: tasks, workflow: workflow, completion: { result in completion(result) semaphore.signal() }) semaphore.wait() } } public class Concurrent: Task { public func run(workflow: Workflow, completion: @escaping (Result<(), Error>) -> Void) { var runTaskCount = 0 let taskCount = tasks.count let semaphore = DispatchSemaphore(value: 0) tasks.forEach { task in task.run(workflow: workflow, completion: { _ in self....

December 18, 2019 · 1 min · 97 words · Khoa

How to use xcodebuild

Issue #544 man xcodebuild man xcodebuild XCODEBUILD(1) BSD General Commands Manual XCODEBUILD(1) NAME xcodebuild -- build Xcode projects and workspaces SYNOPSIS xcodebuild [-project name.xcodeproj] [[-target targetname] ... | -alltargets] [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [action ...] [buildsetting=value ...] [-userdefault=value ...] xcodebuild [-project name.xcodeproj] -scheme schemename [[-destination destinationspecifier] ...] [-destination-timeout value] [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [action ...] [buildsetting=value ...] [-userdefault=value ...] xcodebuild -workspace name.xcworkspace -scheme schemename [[-destination destinationspecifier] ....

December 15, 2019 · 40 min · 8363 words · Khoa

How to set language and locale with xcodebuild

Issue #540 testLanguage and testRegion -testLanguage language Specifies ISO 639-1 language during testing. This overrides the setting for the test action of a scheme in a workspace. -testRegion region Specifies ISO 3166-1 region during testing. This overrides the setting for the test action of a scheme in a workspace. xcodebuild -project 'TestApp.xcodeproj' -scheme 'TestAppUITests' -configuration Debug -sdk iphonesimulator -UseModernBuildSystem=YES -destination 'OS=13.2.2,name=iPhone 11,platform=iOS Simulator' -testLanguage ja -testRegion ja_JP test

December 12, 2019 · 1 min · 68 words · Khoa

How to use bundle with rbenv

Issue #534 Workaround /Users/khoa/.rbenv/shims/bundler install

December 10, 2019 · 1 min · 5 words · Khoa

How to setup multiple git accounts for GitHub and Bitbucket

Issue #514 Generate SSH keys ssh-keygen -t rsa -C "onmyway133@gmail.com" -f "id_rsa_github" ssh-keygen -t rsa -C "onmyway133bitbucket@gmail.com" -f "id_rsa_bitbucket" pbcopy < ~/.ssh/id_rsa_github.pub pbcopy < ~/.ssh/id_rsa_bitbucket.pub ssh-add -D ssh-add id_rsa_github ssh-add id_rsa_bitbucket vim ~/.ssh/config #Github (personal) Host gh HostName github.com User git IdentityFile ~/.ssh/id_rsa_github #Bitbucket (work) Host bb HostName bitbucket.org User git IdentityFile ~/.ssh/id_rsa_bitbucket Config git config --global user.email "onmyway133@gmail.com" git config --local user.email "onmyway133bitbucket@gmail.com" Read more https://medium.com/avocoders/github-and-bitbucket-accounts-in-a-same-pc-5f8c67fd89d2 https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config Updated at 2020-10-04 06:52:07

November 22, 2019 · 1 min · 72 words · Khoa

How to enable z and zsh-autosuggestions on zsh

Issue #512 https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/z git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions vim ~/.zsh.rc /plugins plugins=( git z zsh-autosuggestions ) source ~/.zshrc

November 19, 2019 · 1 min · 18 words · Khoa

How to work around app damaged warning in macOS

Issue #238 “App” is damaged and can’t be opened. You should move it to the Trash. 👉 Disable gate keeper sudo spctl --master-disable spctl --status Current workaround is to remove Launch At Login handling code.

May 15, 2019 · 1 min · 35 words · Khoa

How to resize image using imagemagick

Issue #202 mogrify -resize 1280x800 s2.png

April 10, 2019 · 1 min · 6 words · Khoa