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
NSURLSessionConfiguration *configr = [NSURLSessionConfiguration defaultSessionConfiguration]; | |
self.sessionManager = [NSURLSession sessionWithConfiguration:configr]; | |
NSString *urlString = [NSString stringWithFormat:@"https://%@:20343/api/bots/%@",hostIp, fixId]; | |
NSMutableURLRequest *mutR = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]]; | |
[mutR setHTTPMethod:@"GET"]; | |
NSURLSessionDataTask *task1 = [self.sessionManager dataTaskWithRequest:mutR completionHandler:^(NSData * _Nullable data1, NSURLResponse * _Nullable response1, NSError * _Nullable error1) { | |
NSLog(@"%@",error1); | |
NSMutableDictionary *responseObject = [NSJSONSerialization JSONObjectWithData:data1 options:(NSJSONReadingMutableContainers) error:nil]; | |
NSLog(@"%@",responseObject); |
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
#!/bin/zsh | |
podpath=$(echo `which pod`) | |
poddir=$(dirname $podpath) | |
podcoregemdir="$poddir"/../gems/cocoapods-core-1.1.1/lib/cocoapods-core/ | |
echo "$podcoregemdir"lockfile.rb | |
cd $podcoregemdir | |
curl -fsSL https://raw.githubusercontent.com/CocoaPods/Core/1.1.1/lib/cocoapods-core/lockfile.rb -O |
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
#!/bin/zsh | |
podpath=$(echo `which pod`) | |
poddir=$(dirname $podpath) | |
podcoregemdir="$poddir"/../gems/cocoapods-core-1.1.1/lib/cocoapods-core/ | |
echo "$podcoregemdir"lockfile.rb | |
cd $podcoregemdir | |
curl -fsSL https://raw.githubusercontent.com/dacaiguoguogmail/Core/master/lib/cocoapods-core/lockfile.rb -O |