Not ideal, but works.
- Copy
.app
,.dSYM
and.crash
file 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
Sometimes when you transfer your project to another computer and especially when you create a new developer certificate in the progress, you’ll run into difficulties. When you try to run your app on a device, Xcode will throw the following error: | |
Code Sign Error: Provisioning Profile '###ID###' can't be found. | |
The problem is that in your project’s project.pbxproj file the old provisioning profile identifiers are still lingering. You need to clean up that file so that Xcode can build your project without errors. | |
Here’s how you do that: | |
1. Close Xcode | |
2. Right click on your project’s .xcodeproj bundle to show it’s contents. | |
3. Open the .pbxproj file in a text editor of your choice (make a backup copy first if you feel paranoid) |
This produces a markdown table with empty headers: | |
| *** | *** | | |
| ------------- | -------------- | | |
| Inherits from | NSObject | | |
| Framework | myLibrary.framework | | |
| Compatibility | iOS 5.0 and later. | |
// 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 |
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") | |
------------------------------ | |
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"]] | |
------------------------------ |
# 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\] $ " |
// 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/" |
git config --global alias.st status | |
git config --global alias.br branch | |
git config --global alias.lo 'log --oneline --decorate=full' |
// 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 { |