Not ideal, but works.
- Copy
.app,.dSYMand.crashfile into a temp folder - Copy the relevant crash symbols into a txt file name 'symbols.txt'. Format should look like:
0x00110176 0xb8000
0x0011003a 0xb8000
0x001d2d44 0xb8000
| import Foundation | |
| extension String { | |
| // Example usage: "My Text".localized() | |
| func localized() -> String { | |
| return Bundle.main.localizedString(forKey: self, | |
| value: nil, | |
| table: nil) | |
| } |
| extension UIView { | |
| func reveal() { | |
| if self.alpha == 1.0 { | |
| return | |
| } | |
| UIView.animate(withDuration: 0.5) { | |
| self.alpha = 1.0 | |
| self.isUserInteractionEnabled = true | |
| } | |
| } |
| // Requirements: info.plist: 'Privacy - Camera Usage Description' | |
| import UIKit | |
| import AVFoundation | |
| import QRCodeReader //pod 'QRCodeReader.swift', '~> 8.2.0' | |
| typealias QRManagerErrorBlock = (_ error: Error)->() | |
| typealias QRManagerResultBlock = (_ valueScanned: String)->() | |
| enum QRManagerError : Error { |
| git config --global alias.st status | |
| git config --global alias.br branch | |
| git config --global alias.lo 'log --oneline --decorate=full' |
| // Add this to a new run script in a target:Build Phases tab | |
| TAGS="TODO:|FIXME:|WARNING:" | |
| echo "searching ${SRCROOT} for ${TAGS}" | |
| find "${SRCROOT}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" |
| # Add this to the bottom of existing or new `~/.bash_profile` | |
| # Git branch in prompt. | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
| ------------------------------ | |
| Font Family Name = [Copperplate] | |
| Font Names = [["Copperplate-Light", "Copperplate", "Copperplate-Bold"]] | |
| ------------------------------ | |
| Font Family Name = [Heiti SC] | |
| Font Names = [[]] | |
| ------------------------------ | |
| Font Family Name = [Kohinoor Telugu] | |
| Font Names = [["KohinoorTelugu-Regular", "KohinoorTelugu-Medium", "KohinoorTelugu-Light"]] | |
| ------------------------------ |
| class func postJSON(urlString:String, params:[String: AnyObject], completion:(responseDataAsString:String?, response:NSHTTPURLResponse?, error:NSError?)->()) { | |
| let url = NSURL(string: urlString)! | |
| let session = NSURLSession.sharedSession() | |
| // Create request | |
| let request = NSMutableURLRequest(URL: url) | |
| request.HTTPMethod = "POST" | |
| request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type") | |
| // Attempts to return requested data as Json in closure | |
| class func getJSON(urlString:String, completion:(json:AnyObject?, response:NSHTTPURLResponse?, error:NSError?)->()){ | |
| let session = NSURLSession.sharedSession() | |
| let url = NSURL(string: urlString)! | |
| // Make the POST call and handle it in a completion handler | |
| session.dataTaskWithURL(url, completionHandler: { ( data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in | |
| // Session error |