当我通过Pod文件集成GoogleSingIn或GoogleCloudMessage在我的项目中时,我正面临这个问题.
问题 - > ld:找不到-lGIPNSURL + FIFE clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://titusandbindu.com/bm/wc-api/v2/customers"]];
request.HTTPMethod = @"GET";
static NSString *key=@"ck_3045dfb6122e50a79b1a35268078c4bc";
static NSString *secret=@"cs_a7ac11bc25431b1234377d4c30aed8ce";
static NSString *HMAC_SHA1=@"HmacSHA1";
NSString *timestamp=[NSString stringWithFormat:@"%f",[[NSDate date] timeIntervalSince1970] * 1000];
NSString *nonce=[NSString stringWithFormat:@"%d",(int)arc4random() * 100000000];
NSLog(@"key:%@,secret:%@,timestamp:%@",key,secret,timestamp);
NSLog(@"%@",nonce);
NSMutableDictionary *jsonpassdict=[[NSMutableDictionary alloc]init];
[jsonpassdict setValue:key forKey:@"oauth_consumer_key"];
[jsonpassdict setValue:HMAC_SHA1 forKey:@"oauth_signature_method"];
[jsonpassdict setValue:timestamp forKey:@"oauth_timestamp"];
[jsonpassdict setValue:nonce forKey:@"oauth_nonce"];
Run Code Online (Sandbox Code Playgroud)
错误是:
NSString *parametersString = [NSString stringWithFormat:@"%d",CHQueryStringFromParametersWithEncoding(jsonpassdict , NSUTF8StringEncoding)];
NSLog(@"%@",parametersString);
//NSString *parametersString = CHQueryStringFromParametersWithEncoding(jsonpassdict, NSUTF8StringEncoding);
Run Code Online (Sandbox Code Playgroud)