Skip to content

Instantly share code, notes, and snippets.

@brianmed
Last active September 4, 2022 00:44
Show Gist options
  • Save brianmed/c8020ad6341aeea06e90d4e6d3aae702 to your computer and use it in GitHub Desktop.
Save brianmed/c8020ad6341aeea06e90d4e6d3aae702 to your computer and use it in GitHub Desktop.
Build and deploy an iOS app for testing with .Net Maui
# Either the OS will delete or manually delete later
export FORDELETE="forDelete-$(date '+%FT%T')" && (test -d bin || test -d obj) && sh -c 'mkdir "$FORDELETE" && echo "$FORDELETE"' && ((test -d bin && mv -i bin "$FORDELETE") ; (test -d obj && mv -i obj "$FORDELETE")) && mv -i "$FORDELETE" /tmp
dotnet clean -f net6.0-ios && dotnet publish -f net6.0-ios -p:BuildType=Device && ideviceinstaller -u 00000000-00000000000000 -i bin/Debug/net6.0-ios/publish/TheApp.ipa
tput -T$TERM init
...
# This is also helpful
idevicesyslog | tee -a ios-syslog-$(date '+%F').log
# And this
tail -F ios-syslog-$(date '+%F').log | ggrep Joy --line-buffered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment