Expected output of NSSearchPathForDirectoriesInDomains on iOS simulator vs actual device

While using NSSearchPathForDirectoriesInDomains on an iOS simulator with NSLocalDomainMask, we get directory paths which are same with respect to the device the simulator is running on.

Is this expected behavior because in the apple docs it says NSLocalDomainMask is supported in iOS 2.0+? How will the output on the device be different from that seen in the simulator? 

Did you try it?

NSSearchPathForDirectoriesInDomains(.libraryDirectory, .localDomainMask, false)

Simulator:
["/Library"]

Real Device:
["/Library"]

Can you be more specific about what you are asking?

Expected output of NSSearchPathForDirectoriesInDomains on iOS simulator vs actual device
 
 
Q