WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
This file contains hidden or 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
| # iPhone with home button | |
| xcrun simctl status_bar booted clear | |
| xcrun simctl status_bar booted override \ | |
| --time "9:41 AM" \ | |
| --wifiBars 3 --cellularBars 4 --operatorName "" | |
| xcrun simctl spawn booted defaults write com.apple.springboard SBShowBatteryPercentage 1 | |
| # iPhone X | |
| xcrun simctl status_bar booted clear | |
| xcrun simctl status_bar booted override --time "9:41" --wifiBars 3 --cellularBars 4 |
This file contains hidden or 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
| import Foundation | |
| // Export running app as .ipa, then return path to exported file. | |
| // Returns String because app crashes when returning URL from async function for some reason... | |
| func exportIPA() async throws -> String | |
| { | |
| // Path to app bundle | |
| let bundleURL = Bundle.main.bundleURL | |
| // Create Payload/ directory |
This file contains hidden or 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
| import Cocoa | |
| func printBasicEmojies() { | |
| let startScalar = 0x1F600 | |
| let endScalar = 0x1F64F | |
| // Iterate over the range and print each character | |
| for scalarValue in startScalar...endScalar { | |
| if let scalar = UnicodeScalar(scalarValue) { |
OlderNewer