- Prepare New Signing Assets
$ security cms -D -i path/to/MyProfile.mobileprovision > provision.plist
$ /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' provision.plist > entitlements.plist
- Replace Provisioning Profile
$ security cms -D -i path/to/MyProfile.mobileprovision > provision.plist
$ /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' provision.plist > entitlements.plist
@interface NSArray (NullReplacement) | |
- (NSArray *)arrayByReplacingNullsWithBlanks; | |
@end | |
@implementation NSArray (NullReplacement) | |
- (NSArray *)arrayByReplacingNullsWithBlanks { |
@interface NSDictionary (NullReplacement) | |
- (NSDictionary *)dictionaryByReplacingNullsWithBlanks; | |
@end | |
@implementation NSDictionary (NullReplacement) | |
- (NSDictionary *)dictionaryByReplacingNullsWithBlanks { |
if ([date1 compare:date2] == NSOrderedDescending) { | |
NSLog(@"date1 is later than date2"); | |
} else if ([date1 compare:date2] == NSOrderedAscending) { | |
NSLog(@"date1 is earlier than date2"); | |
} else if ([date1 compare:date2] == NSOrderedSame) { | |
NSLog(@"dates are the same"); | |
} |
+ (BOOL)isMobileNumber:(NSString *)mobileNum { | |
/** | |
* 手机号码 | |
* 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 | |
* 联通:130,131,132,152,155,156,185,186 | |
* 电信:133,1349,153,180,189 | |
*/ | |
NSString * MOBILE = @"^1(3[0-9]|5[0-35-9]|8[025-9])\\d{8}$"; | |
/** | |
10 * 中国移动:China Mobile |
#!/bin/sh | |
for dir in $(ls -d */) | |
do | |
if [ -d "$dir"/.git ]; then | |
echo "$dir" && cd "$dir" && git pull && cd .. | |
fi | |
done |
// | |
// CLLocation+Sino.h | |
// | |
// Created by i0xbean@gmail.com on 13-4-26. | |
// 火星坐标系转换扩展 | |
// | |
// earth(国外 WGS84), mars(国内 GCJ-02), bearPaw(百度 BD-09) 坐标系间相互转换 | |
// 未包含 mars2earth. 需要这个可参考 http://xcodev.com/131.html | |
#import <CoreLocation/CoreLocation.h> |
soga,2=▔▽▔ | |
qushi,2=(´▽` ) | |
shima,2=( ̄m ̄) | |
haokeai,2=(*^-^*) | |
lala,2=♪(^∇^*) | |
kongbu,2=┌(。Д。)┐ | |
nihao,2=( ̄▽ ̄)ノ | |
haoxihuan,2=(≧∇≦)ノ | |
jiujiuwo,2=_(__)ノ彡 | |
chidiao,2=ψ(`∇´)ψ |