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

Again auto click problem after updating macOS #450

Open
ghost opened this issue Jul 8, 2018 · 10 comments
Open

Again auto click problem after updating macOS #450

ghost opened this issue Jul 8, 2018 · 10 comments

Comments

@ghost
Copy link

ghost commented Jul 8, 2018

Hello, I recently updated my Mac to the new Mojave Beta and I encountered a really annoying problem.

After building and running the project I start simulating the pokemonLocation as always, but when I click "auto update xcode location" the computer freezes for a while and I can only hope to click again that button to stop the autoclicker. Then my computer returns back to its normal performance. I also get the error "osascript is not allowed assistive access", sometimes alternated with "can't get menu bar 1 of process "Xcode" (invalid index). I'm using Xcode Beta too, but I've used it until the release of Mojave Beta and everything was working fine. I have tried all the possible things like deleting and reinstalling the app and giving it accessibility permission (I also have System Events.app, Xcode-beta.app and Xcode.app in the accessibility permissions list), but nothing seems to work. I found that it is the "click" command in the applescript for the autoclicker, since if I replace that command with anything else, the Mac doesn't freeze (but of course it doesn't simulate the location). I tried all the workarounds proposed here in the issues but nothing worked.

Is there any way to fix this? I know I'm using beta software, but I noticed that also @iam4x used it in the past and also I was on Sierra/High Sierra beta until few days ago and everything worked correctly.

@tasadek
Copy link

tasadek commented Jul 13, 2018

I'm in the same exact boat as you, I am also running iOS 12 on my main device, and that is it's own set of problems.

I'll update here if I find any answers.

@thefreund
Copy link

thefreund commented Jul 14, 2018

I'm having the same problem.

• iPhone iOS 12 beta.
• Running Xcode Version 9.4.1 with DeviceSupport files (iOS 12) from the Xcode beta 10.
• Newest macOS Mojave beta.

Everything works fine until I click on auto update Xcode location, then my MacBook freezes. However, no problems with the iPhone or the apps. As soon as auto update Xcode location is deactivated everything works fine again.

Therefore don't update to macOS Mojave beta as long as you want to use the webspoof.

@tasadek
Copy link

tasadek commented Jul 14, 2018

I found a workaround!

Create an AppleScript and paste in:

repeat
tell application "System Events" to tell process "Xcode"
click menu item "pokemonLocation" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1
end tell
delay 0.1
end repeat

Run this script, along with the webspoof, and it works, mostly.
(I am getting an error in Xcode that the .gpx in invalid, but it is not effecting the output.)

Thank you, to @scottiesan for the script!

Happy Hunting!

@jamiemc6969
Copy link

Brilliant - thanks for that. sorry to ask such a stupid question, but I am new to Xcode, so how do you create the AppleScript and run with the web spoof ?

@thefreund
Copy link

thefreund commented Jul 14, 2018

@jamiemc6969 Menu bar: click on the search (magnifying glass) in the top right corner and search for Script Editor.app. A window will open and just paste in the code and click on the run button.

@tasadek The script did not work for me with delay 0.1, however, when I changed it to 0.5 it worked. I feel like if there is a too fast access on Xcode by a script it crashes. So I recommend it to change the delay a bit.

Thank you!

@jamiemc6969
Copy link

@thefreund Thanks for that, attempted that, but got an error message
error "System Events got an error: Can’t get menu item "pokemonLocation" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1 of process "Xcode"." number -1728 from menu item "pokemonLocation" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1 of process "Xcode"

@thefreund
Copy link

thefreund commented Jul 14, 2018

Okay step-by-step for anybody new.

  1. Add pokemongo-webspoof.app and Script Editor.app to System Preferences > Security & Privacy > Privacy > Accessibility.
  2. Close everything on your iPhone and MacBook.
  3. Start pokemongo-webspoof.app on MacBook.
  4. Change iam4x to your name, select your team, build and run.
  5. The app will start on your iPhone, launch Pokemon Go.
  6. Put in your Location in the Desktop App.
  7. Go to Xcode > Debug > Simulate Location > pokemonLocation
  8. Your Character on your iPhone should move a little.
  9. Start the Script Editor.app and use @tasadek script and press run (I recommend with Delay 0.5) (Mojave User only).
  10. Move around in the Desktop app.
  11. Very important! Don't click on Auto update Xcode Location! (Mojave User only).

@jamiemc6969
Copy link

Thanks for the guide @thefreund . Still got the error message as my previous post, thought it was a Mojave issue, so have rolled back to High Sierra, tried using the auto update Xcode location (as i thought the issues were with mojave) and get the same error.. I'm guessing its a issue with Xcode 10 beta ? . this would explain why the above workaround won't work either...
i guess i need to use Xcode 10 beta, as I'm running ios12 beta ?

@ghost
Copy link
Author

ghost commented Jul 20, 2018

Thank you for the workaround, I thought it was enough but now the problem seems to have moved to the .gpx file, which is not getting updated as I move in the map and so I'm stuck in the first location I pick in the map each time. And after a while, I get the error that the .gpx file is invalid.

asd123cqp added a commit to Purlot/pokemongo-webspoof that referenced this issue Nov 9, 2018
Update `autoclick.applescript` to avoid freezing issue in Mojave.

See: iam4x#450
@k-webdesign
Copy link

Hm... I followed your instructions but can't walk or use the autopilot. The script says "running" but I don't think it really does:
Screenshot 2019-03-14 15 42 56

Seems to be the same problem as @Dvdxseo has, but I don't have any error messages.

Can anybody help?

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

No branches or pull requests

4 participants