次のいずれかの方法を使用してホーム ディレクトリを取得しようとすると、デフォルトの SenTestingkit を使用して iPhone シミュレーターでコードをテストするために sqlite データベースを使用するテスト ケースを実行しています。
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docsPath = [paths objectAtIndex:0];
また
NSString *home = NSHomeDirectory();
次のお風呂を指している間違ったパスを取得しました
/Users/{user}/Library/Application Support/iPhone Simulator/5.1
sqlite データベースを作成できませんでした。テスト ケースで正しいパスを取得する方法を教えてください。
ありがとう