tool 调用oss 中sdk的上传方法调用-[__NSCFConstantString continueWithBlock:]: unrecognized selector sent to instance 0x102e838b8,同样代码如果是app中集成oss上传是成功的。
OSSTask * putTask = [self.client putObject:put];(
-[__NSDictionaryM oss_setObject:forKey:]: unrecognized selector sent to instance 0x1060065d0)
[__NSCFConstantString continueWithBlock:]: unrecognized selector sent to instance 0x102e838b8
[putTask continueWithBlock:^id(OSSTask *task) {
if (!task.error) {
NSLog(@"task = %@",task.result);
NSLog(@"upload object success!");
//获取图片地址
[self getImgAddress:imgFileName];
} else {
NSLog(@"upload object failed, error: %@" , task.error);
}
return nil;
}];