问题
I am trying to run UIAutomation from terminal and getting "simulator session timed out". I have no idea whats going on.
I have tried everything on earth i could think of.
回答1:
Found the answer:
Its due to permission of the folder where the app was getting built.
So, the ios simulator is running in user context and i was building the app using sudo (in root permissions). So, the ios simulator did not have access to the build because of the permissions.
So, now i set the entire folder to everyone or loggedin user permissions using finder and its working great.
来源:https://stackoverflow.com/questions/19521720/ios-simulator-session-timed-out