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
1. Make sure you have tagged a release version on GitHub. | |
2. The podspec file must contain the same version as GitHub. | |
// change git username | |
3. git config --global user.name MyName --replace-all | |
// change git email | |
4. git config --global user.email any@email --replace-all |
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
NSString *contextString = @"userName"; | |
NSString *searchText = @"sh"; | |
NSString *predicateString = [NSString stringWithFormat:@"%@ CONTAINS[c]", contextString]; | |
predicateString = [predicateString stringByAppendingString:@"%@"]; | |
NSPredicate *predicate = [NSPredicate predicateWithFormat:predicateString,searchText]; | |
NSArray *filteredArray = [refArray filteredArrayUsingPredicate:predicate]; | |
OR | |
Below code crash if searchText = @"" |
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
PLIST="${INFOPLIST_FILE}" | |
PLB=/usr/libexec/PlistBuddy | |
LAST_NUMBER=$($PLB -c "Print CFBundleVersion" "$PLIST") | |
NEW_VERSION=$(($LAST_NUMBER + 1)) | |
$PLB -c "Set :CFBundleVersion $NEW_VERSION" "$PLIST" | |
// | |
add for extension | |
$PLB -c "Set :CFBundleVersion $NEW_VERSION" "$SRCROOT/SGSharedExtension/Info.plist" |