first idea, can we both edit this?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* For debugging only; output goes to stderr | |
Use CFShow() to printf the description of any CFType; | |
Use CFShowStr() to printf detailed info about a CFString | |
*/ | |
public func CFShow(_ obj: CFTypeRef!) | |
public func CFShowStr(_ str: CFString!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh --login --errexit | |
version=$((GITHUB_RUN_NUMBER+version_offset)) | |
ORGANIZER_ARCHIVE=$(find ~/Library/Developer/Xcode/Archives -name MyApp-$version.xcarchive) | |
if [[ $ORGANIZER_ARCHIVE ]] | |
then | |
echo "::notice::Uploading: $ORGANIZER_ARCHIVE" | |
else | |
echo "::error::Archive MyApp-$version.xcarchive not found" | |
find -s ~/Library/Developer/Xcode/Archives -name \*.xcarchive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
scriptDir=${0:a:h} | |
deleteAndCreate() { | |
xcrun simctl delete "$1" | |
xcrun simctl create "$1" com.apple.CoreSimulator.SimDeviceType.iPad-mini-6th-generation 2> /dev/null | |
} | |
createSimulatorWithContact() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dependencies update | |
# Weekly PR to update dependencies: | |
# - Swift Packages | |
# - Github actions | |
on: | |
workflow_dispatch: | |
push: | |
branches: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TestFlight | |
on: | |
workflow_dispatch: | |
inputs: | |
changelog: | |
type: string | |
description: What to test | |
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test on Simulator | |
on: | |
workflow_dispatch: | |
schedule: | |
# At every 10th minute past every hour from 9 through 13. | |
# which is 1 am PST | |
- cron: '*/10 9-13 * * *' # https://crontab.guru/#*/10_9-13_*_*_* | |
pull_request: | |
branches: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
system_profiler SPHardwareDataType | |
system_profiler SPDisplaysDataType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
cd /Applications/Xcode.app/Contents/Developer/usr/lib/bitcode_build_tool/ | |
sudo patch < ${0:a:h}/buildenv.patch |
Sometimes it is useful to have full access to macOS aqua session on github actions runner, for example to debug UI tests.
ngrok account - free signup https://ngrok.com
save your authtoken from https://dashboard.ngrok.com/get-started/your-authtoken
we will refer to it as <NGROK_AUTH_TOKEN>
below
NewerOlder