[__NSCFConstantString matchesRegularExpression:]: unrecognized selector sent to instance xxx is thrown after I manually integrate the SDK and set regionName for the QCloudCOSXMLEndPoint instance?matchesRegularExpression is a method in the NSString category. Objective-C does not define linker symbols for each method, but for each class. The SDK is a static library. If a category has been defined for an existing class in the static library, the system assumes that the class already exists and will not integrate the code of the class and category. As a result, methods in the category will be missing in the executable code.-Objc and -all_load parameters.-ObjC loads the classes and categories in the static library to the executable file. If there are only categories but no classes in the library, -ObjC will not take effect. In this case, -all_load is needed to load all object files to the executable file.Default OCR configuration is not set/Key is not set to 'xxx' in the OCR configuration. Call this method after it is configured is thrown after I integrated the SDK and sent a request?QCloudCOSXMLService and QCloudCOSTransferMangerService (advanced upload APIs depend on this instance). If the corresponding service is not registered before the request is sent, this error will be thrown.QCloudServiceConfiguration *configuration = [QCloudServiceConfiguration new];configuration.appID = "AppId";configuration.signatureProvider = self;QCloudCOSXMLEndPoint *endpoint = [[QCloudCOSXMLEndPoint alloc] init];endpoint.regionName = @"region";endpoint.useHTTPS = YES;configuration.endpoint = endpoint;[QCloudCOSXMLService registerDefaultCOSXMLWithConfiguration:configuration];[QCloudCOSTransferMangerService registerDefaultCOSTransferMangerWithConfiguration:configuration];
Default COSXMLService already exists. To use new configurations, re-register using registerCOSXMLWithConfiguration:withKey: is thrown after I integrated the SDK?COSXMLService instances correspond to different configurations (for the configurations, see relevant attributes). For example, setting regionName to guangzhou and beijing indicates two different configurations, where two services need to be registered. If you already used ap-guangzhou to register a service and then set region to ap-guangzhou to register again, this error will occur.registerDefaultCOSXMLWithConfiguration: and the key does not need to be specified.// Determine whether the key to register exists.if(![QCloudCOSXMLService hasServiceForKey:@"Key to register"]){// If the key does not exist, register a new service.[QCloudCOSXMLService registerCOSXMLWithConfiguration:configuration withKey:@"Key to register"]}
- (void)signatureWithFields:(QCloudSignatureFields *)fileds request:urlRequest:compelete: proxy is not called after I run the SDK?task resume).signatureProvider is configured (for example, configured as configuration.signatureProvider = self, in which self is the class where the proxy method belongs) after the QCloudServiceConfiguration instance is created.QCloudCredentailFenceQueue to cache or reuse the key. For more information, see Getting Started.QCloudCOSXMLUploadObjectRequest throws the error Body of this type is not supported. Supported types are NSData, QCloudFileOffsetBody, and NSURL?[NSURL fileURLWithPath:@"Local path of the object"]QCloudCOSXMLUploadObjectRequest to upload videos or files from the system photo library, but checkpoint restart fails, throwing the error The specified Content-Length is zero?[NSURL URLWithString:@"file:////var/mobile/Containers/Data/Application/DBPF7490-D5U8-4ABF-A0AF-CC49D6A60AEB/Documents/exampleobject"][NSURL fileURLWithPath:@"/var/mobile/Containers/Data/Application/DBPF7490-D5U8-4ABF-A0AF-CC49D6A60AEB/Documents/exampleobject"]file:///var/mobile/Media/DCIM/101APPLE/ cannot be accessed directly. Photos in this path can only be obtained using the request method in the Photos framework.[[PHImageManager defaultManager] requestPlayerItemForVideo:asset options:option resultHandler:^(AVPlayerItem *playerItem, NSDictionary *info) {
// Move the file to the sandbox in time or save the playerItem.
}]; method to save the obtained playerItem, or move the desired files to the App Sandbox during the callback. The cause of this error is that for iOS11, when playerItem is released, read permission on the file specified in playerItem will expire, making the size of the uploaded file 0.tmp directory (e.g., /var/mobile/Containers/Data/Application/0BFBB3FE-0FD0-46CB-ADDE-DDE08F6D62C3/tmp/). Files in tmp will be cleared by the system any time. You can move your files to a securer directory in case they are cleared during the upload. For more information about sandbox, see File System Basics.The MD5 checksum is inconsistent with the local file. Check whether the file is modified during the upload. During multipart uploads, the MD5 checksum of each uploaded part will be verified against the local file. Any inconsistency will cause an error is reported?ETag will be compared with that of local parts. If there is any inconsistency, this error will be thrown.QCloudServiceConfiguration *config = [QCloudServiceConfiguration new].timeoutInterval attribute of config, for example, .timeoutInterval = 30;.Undefined symbols for architecture arm64: "_ne10 init dsp", referenced from: error is reported?Feedback