Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not see iOS 11 Simulator #21

Closed
andrewwiik opened this issue Jul 5, 2017 · 17 comments · Fixed by #23
Closed

Does not see iOS 11 Simulator #21

andrewwiik opened this issue Jul 5, 2017 · 17 comments · Fixed by #23

Comments

@andrewwiik
Copy link

It just doesn't :(

@PoomSmart
Copy link
Collaborator

PoomSmart commented Jul 6, 2017

#22 This pull request uses more reliable way to inject dylibs and it should now see any simulator truly available. You can try. @andrewwiik

@andrewwiik
Copy link
Author

andrewwiik commented Jul 6, 2017

Still having issues, I have the beta XCode and stable installed, but I used xcode-select to select the beta one yet it still can't see them :(

Edit: Wait it seems I lost connection to all my simulators, restarting and testing again

@andrewwiik
Copy link
Author

andrewwiik commented Jul 6, 2017

Injecting appropriate dynamic libraries from /opt/simject... Respringing 6E80CF2C-C1E3-4932-BEDD-6DE39D2B0523 (iPhone 7) ... An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): The operation couldn’t be completed. No such file or directory No such file or directory Respringing 98DF8D53-E751-4CEF-8683-CF9A02BDA6B8 (iPhone 7) ... An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): The operation couldn’t be completed. No such file or directory No such file or directory

@PoomSmart

@PoomSmart
Copy link
Collaborator

PoomSmart commented Jul 7, 2017

@andrewwiik I presume it is by the absence of launchctl in iOS 11+ runtime folder, causing an error that file is not found. One could copy the aforementioned binary from earlier runtime (iOS 10 is recommended) to /bin of the runtime root.

Edited: SDK -> Runtime

@andrewwiik
Copy link
Author

isn't this something that simject should somehow handle though? @PoomSmart

@PoomSmart
Copy link
Collaborator

PoomSmart commented Jul 7, 2017

@andrewwiik It was something I overlooked. There are two ways: (1) Auto-detect iOS 10.x runtime and copy the binary on-the-fly if necessary. (2) Just warn the user that the binary is not there and it must exist in iOS 11 runtime folder in order to make simject work.

Edited: SDK -> Runtime.

@PoomSmart
Copy link
Collaborator

PoomSmart commented Jul 7, 2017

@andrewwiik Please confirm if the solution works for you so maybe this issue can be finally closed.

@andrewwiik
Copy link
Author

@PoomSmart I wouldn't be able to consider this issue closed until one of those solutions is actually implemented in the code and a pull request is made, but I will test and get back to you give me a few mins

@andrewwiik
Copy link
Author

@PoomSmart maybe I am putting it in the wrong place but I am still getting the error

@PoomSmart
Copy link
Collaborator

@andrewwiik Could you check if in ~/Library/Developer/CoreSimulator/Devices contains any folder named UDID of any simulator as indicated in your simject output?

@andrewwiik
Copy link
Author

@PoomSmart A folder for the UDID of the simulator that simject outputs is indeed present

@andrewwiik
Copy link
Author

andrewwiik commented Jul 7, 2017

@PoomSmart Simject sees the simulator now, that is fixed, but simject is not working on the XCode beta simulators for actual respringing and injecting

@andrewwiik
Copy link
Author

@PoomSmart If I run the command manually this is the output:

xcrun simctl spawn 98DF8D53-E751-4CEF-8683-CF9A02BDA6B8 launchctl setenv DYLD_INSERT_LIBRARIES /opt/simject/simject.dylib An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): The operation couldn’t be completed. No such file or directory No such file or directory

@PoomSmart
Copy link
Collaborator

@andrewwiik Please check if launchctl is actually inside /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/bin.

@andrewwiik
Copy link
Author

@PoomSmart OHHHH, you said put it in the SDK above, not the runtime root, these are two different folders haha give me one sec

@andrewwiik
Copy link
Author

@PoomSmart worked

@andrewwiik
Copy link
Author

I'll close this issue but let's see if we can get a command to copy that file put in the GroupMe @angelXwind @PoomSmart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants