I’m often having to grep through various iOS frameworks in search of error codes that appear (“What the bloody hell does -10867 mean?”). This can be a bit annoying – especially while working with Core Audio – so I put together an Alfred workflow that does it for me.
Here it is – type “hs” (short for “header search”) then the text you want to search for, and it’ll give you matching results. Hit enter to open that file:line combination in Sublime Text, or edit the action script to work with the editor of your choice.
Search Xcode Header Files.alfredworkflow
An iTunes Connect screenshot management workflow
Ugh – iTunes Connect is really annoying to use when it comes to screenshots. There’re some third party tools out there, but it was still too hands-on for my workflow.
So I wrote a little script that does the stuff I want. I have a Sketch document that exports all the screenshots, and the script updates the iTunes Connect metadata XML appropriately.
In case it’s useful to anyone else:
Sketch Template
Script
Usage:
Work on screenshots
Setup:
alias iTMSTransporter="/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/MacOS/itms/bin/iTMSTransporter"
Grab latest ITMS data:
iTMSTransporter -m lookupMetadata -u [email protected] -p password -vendor_id APPVENDORID -destination YourApp.itmsp
Open up the metadata.xml and remove the fields you don’t want to change – this is probably going to be the currently-live version, and maybe the product info at the bottom.
Export all the screenshots into the itmsp package folder
Run this tool (
update_itmsp_screenshots.php YourApp.itmsp
)Check that everything looks okay
Verify
iTMSTransporter -m verify -u [email protected] -p password -f YourApp.itmsp
Upload
iTMSTransporter -m upload -u [email protected] -p password -f YourApp.itmsp