![]() Once a build completes or a test suite finishes, the script takes the latest gzipped build log and analyzes it for error messages. Rather than using xcodebuild which would break my existing workflow around Xcode, to show progress I instead monitor changes to the intermediary build products in the derived data directory. ![]() Implementation: Xcode doesn’t provide any useful AppleScript hooks for determining current build progress. Long Press: Reveals the main project folder in Finder. Single Press: Opens or focuses the main project workspace in Xcode. If the build / test failed, it shows the number of errors generated or a readable error message. Text Label: If building, shows the name of the last intermediate product built, such as a static library. (Longer than just grabbing a cup of coffee.) I need a way of checking on the progress of builds and tests, and the status whether it failed or succeeded. Large Xcode projects can take a long time to build, especially after cleaning intermediaries. See also the Git documentation on best practices for background status refresh. Implementation: The widget uses caching to reduce locking on the Git index it first checks git -no-optional-locks status before performing git diff HEAD. Long Press: Pushes the current branch and shows the page for creating a new pull request on the branch. Single Press: Opens GitUp, an open-source Git interface for macOS. Text Label: Displays the number of files changed and the lines added / removed for both staged and unstaged files. When working on a project, I want to know whether the working directory is clean (so I can rebase or check out safely), or the size of my next pull request. I believe my setup meets all three goals, turning the MacBook Pro with Touch Bar into my preferred development environment.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |