ファイルベースの URL で RestKit を使用したい:
file://localhost/Users/me/somefile.json
ただし、RestKit でリクエストを開始するとRKURL
、元のオブジェクトは有効なNSURL
オブジェクト ( completeURL
nil)ですが、RestKit は対応するオブジェクトを作成できません。
NSURL *completeURL = [NSURL URLWithString:completePathWithQuery relativeToURL:theBaseURL];
if (!completeURL) {
RKLogError(@"Failed to build RKURL by appending resourcePath and query parameters '%@' to baseURL '%@'", theResourcePath, theBaseURL);
[self release];
return nil;
}
ファイルベースの URL は通常、RestKit でサポートされていますか?
更新:RestKitに問題を投稿しました