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 | |
// Log and/or delete keychain items for app. | |
// | |
// Credit to: | |
// https://bootstragram.com/blog/deleting-keychain-items/ | |
// | |
public class KeychainDebug: NSObject { | |
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
# Copied and modified from: | |
# https://littlebitesofcocoa.com/207-annotating-swift-with-marks-todo-s-and-fixme-s | |
# | |
# Modification is to require a comment to immediately preceed the keyword, so that the keyword can be used elsewhere in code. | |
# | |
KEYWORDS="INFO|TODO|FIXME|\?\?\?:|\!\!\!:" | |
find "${SRCROOT}" \( -name "*.swift" \) -print0 | \ | |
xargs -0 egrep --with-filename --line-number --only-matching "//\s*($KEYWORDS).*\$" | \ | |
perl -p -e "s/\/\/\s*($KEYWORDS)/ warning: \$1/" |
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
<?php | |
// WenderCast starter project referenced from original article (since updated) at: | |
// https://www.raywenderlich.com/123862/push-notifications-tutorial | |
// Put your device token here (without spaces): | |
$deviceToken = 'ad648e26c765d78bad945eaf7eed7b192ffe6ed47fbfcfe973a11e7ed96931f2'; | |
// Put your private key's passphrase here: | |
$passphrase = ''; |
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
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
if [ "true" == ${ALREADYINVOKED:-false} ] | |
then | |
echo "RECURSION: Detected, stopping" | |
else | |
export ALREADYINVOKED="true" |