matopeto / xcode-build-times Goto Github PK
View Code? Open in Web Editor NEWThis BitBar/SwiftBar plugin shows the time you spend waiting for Xcode to do your builds
License: MIT License
This BitBar/SwiftBar plugin shows the time you spend waiting for Xcode to do your builds
License: MIT License
Fix
PHP Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
When you run the plugin for the first time and there is no data file yet, it should not show a warning. I would just show 0m so a warning is not the first thing a user sees.
Current version of SwiftBar (https://github.com/swiftbar/SwiftBar/) doesn't works well with the plugin.
Investigate issues, create PR or Issue in SwiftBar repo
The repository is missing license, I would suggest MIT.
Hi @matopeto I'm having issues getting this working (had it working on a previous machine). I've narrowed it down to an issue with Xcode running the script. If I call it myself in terminal (php xcodeBuildTimes.1m.php start
and php xcodeBuildTimes.1m.php success
) it works (and records an entry in the .csv), but when I build via Xcode it's not getting executed for some reason. Here's a screenshot of my Xcode prefs which clearly shows it's there. Is there any additional debugging or logging I can do to figure out what's going on? Any recent issues you're aware of? Thank you! 🙏
Because ine new macOS Monterey PHP will be removed, rewrite from PHP to other language, eg swift
swiftbar is now xbar, it reboot from @matryer https://github.com/matryer/xbar/ try if this plugin is fully compatible with new binary
Implement share button to copy statistics to clipboard
refreshOnOpen is broken in swiftbar lower than 1.4.3
Now in data file is written only time without timezone (in UTC?) and duration. And we compute and show statisticts in default php timezone) So today's statistics is not always correct. For correct today's statistics use system timezone for compute and show statistics.
Implement some file locking for data and startTime file
maybe use https://github.com/nette/safe-stream or something simpler
I create this issue because in macOS Monterey there is no PHP that can run this script.
If you have this problem and you want to use this plugin on Monterey you must
E.g. from Hombrew
brew install php
If you are using https://github.com/swiftbar/SwiftBar and you are getting
env: php: No such file or directory
It is because $PATH
is not correct for the plugin.
If your default shell is Zsh
just go to Swiftbar Settings and switch Shell to the "Zsh"
If it is your problem you must now after plugin download change first line of plugin
from:
#!/usr/bin/env php
or #!/usr/bin/php
to path where PHP is actually stored (you can determine it by run the command which php
#!/opt/homebrew/bin/php
I will resolve this issue later. Sorry for inconvenience.
If you don't want use this plugin anymore, just disable it in SwiftBar/Bitbar in settings, Remove from plugin directory and remove from Xcode Behaviours
Xcode -> Preferences -> Behaviors, and uncheck "Run" at the end of all the phases (oposite as is in the readme)
I maybe rewrite this plugin from PHP to other language, but maybe not. See #12 for updates :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.