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
#!/usr/bin/env xcrun swift | |
// Remove duplicated provisioning profiles in ~/Library/MobileDevice/Provisioning Profiles | |
// The most recently created profile is kept | |
// Usage: xcrun swift remove_duplicate_profiles.swift | |
import Foundation | |
import Security | |
let profilesURL = NSURL.fileURLWithPath(("~/Library/MobileDevice/Provisioning Profiles" as NSString).stringByExpandingTildeInPath); |
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
// | |
// Copyright (c) 2012-2013 Cédric Luthi / @0xced. All rights reserved. | |
// | |
#if TARGET_IPHONE_SIMULATOR | |
static const char *fakeCarrier; | |
static const char *fakeTime; | |
static int fakeCellSignalStrength = -1; |