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

Auto click error - Xcode (Code 2) #5

Open
anushkmittal opened this issue Jul 16, 2016 · 85 comments
Open

Auto click error - Xcode (Code 2) #5

anushkmittal opened this issue Jul 16, 2016 · 85 comments

Comments

@anushkmittal
Copy link

execution error: System events got an error: osascript is not allowed assistive access . (-1719)

@l33t0
Copy link

l33t0 commented Jul 16, 2016

Goto System Preferences -> Security & Privacy -> Privacy Tab -> Accessibility in the List -> Then Authorize your self by clicking the lock in the lower left hand corner, then in the right list, check pokemongo-webspoof.

@anushkmittal
Copy link
Author

Yes, it works! I was trying to find a to allow Apple Scripts like in earlier versions of macOS but yes, this works!

@sagestein461
Copy link

didn't fix it for me...

@g3crossfire
Copy link

Didn't fix it for me.

@iam4x
Copy link
Owner

iam4x commented Jul 16, 2016

@sagestein461 @g3crossfire

  1. Focus Xcode
  2. Into menu bar, click Xcode, click into menu Debug -> Simulate Location -> pokemonLocation
  3. Try to move on the map, if it stills fails click into menu Debug -> Simulate Location -> Don't Simulate Location

If it stills fails, do these 3 steps again and again it works for me after severals tries

I get this error sometime, can't find out why I supposed it was macOS Sierra beta. On what OS are you running?


Thank's @stefan-o I'll add it on the README.md 👍

@iam4x
Copy link
Owner

iam4x commented Jul 16, 2016

Added section on the README https://github.com/iam4x/pokemongo-webspoof#known-issues

@anushkmittal
Copy link
Author

I'm again getting the same error even after trying all workarounds

Error Auto Click Xcode - Code 2

/Content/Resources/app/autoclick.applescript execution error: System events got an error: osascript is not allowed assistive access . (-1719)

@iam4x
Copy link
Owner

iam4x commented Jul 16, 2016

@anushkmittal try to:

  • Delete the app
  • Remove pokemongo-webpsoof.app from authorized app to Accessibility
  • Download last release
  • Add new pokemongo-webspoof.app into authorized app to Accessibility

@anushkmittal
Copy link
Author

@iam4x Yes! This works -:) Unfortunately the Pokémon Go servers are down atm.

@anushkmittal
Copy link
Author

@iam4x I was thinking that this project could be really way beyond GPS-Spoof if you think about it in other terms. This could be the perfect solution for all location based app developers who would like to simulate more complex GPS locations than which could be found by static or directional GPX files.

@iam4x
Copy link
Owner

iam4x commented Jul 16, 2016

Will think about it, you are totally right!

@Qabd88
Copy link

Qabd88 commented Jul 18, 2016

im trying to change simulate location under Debug but all options are faded and while im at it what do you mean by changing the bundle name.

@jayantr94
Copy link

The provisioning profile "iOS Team Provisioning Profile: com.iam4x.pokemon-webspoofjr94" is expiring soon
warning: skipping file '/Users/jayantrao/Desktop/pokemongo-webspoof-master/pokemonLocation.gpx' (unexpected file type 'text' in Frameworks & Libraries build phase)

  1. I don't get the Location file on Debug - Simulate Location
  2. Nor do I get - Check the Auto update Xcode location in the app when everything is running
  3. When I am on Pokemon Go and Xcode opens on my phone, it's all white. :/

@sokki
Copy link

sokki commented Jul 19, 2016

How to deal with Accessibility when running through npm run dev ?

EDIT: This did the trick for me: http://jacobsalmela.com/bash-script-enable-access-assistive-devices-programmatically-os-x-mavericks-10-9-x-simulate-keystrokes/ (only the tccutil.py variation worked for me)

@iam4x
Copy link
Owner

iam4x commented Jul 19, 2016

Thank's @sokki will add a note on the README.md

@ollyde
Copy link
Contributor

ollyde commented Jul 19, 2016

Tried all of above. None are working.

Still getting
screen shot 2016-07-19 at 9 22 30 pm

@ollyde
Copy link
Contributor

ollyde commented Jul 19, 2016

Scratch that, people don't use the quick route it breaks.

Here's the solution.

Breaks
screen shot 2016-07-19 at 9 24 38 pm

Works
screen shot 2016-07-19 at 9 25 04 pm

Please update the documentation, some of us xCode users are using shortcuts that link into the editor hehe :-)

@sibor64
Copy link

sibor64 commented Jul 20, 2016

Hello
I have the same problem, I have to enable or disable location in order to teleport.
Once on the place, I can not move I'm forced to activate or disable location

This was referenced Jul 20, 2016
@ollyde
Copy link
Contributor

ollyde commented Jul 20, 2016

Updated to 1.1.0; issue now exists again. Won't auto-update 👎

@Talhabestaz
Copy link

My problem is bigger, no message pop up but location still not change on iphone :S

@anushkmittal
Copy link
Author

@Frozenpopola you have to be careful and edit the coordinates rather than using 'delete' and rewriting it which won't be possible..

@ghost
Copy link

ghost commented Jul 27, 2016

@bigbangtheory22 @iam4x hey, im new here, and i have, i guess, two problems.

first of all the pokemon web spoof appears on my mac with an crossed out emblem. what does that mean?
bildschirmfoto 2016-07-27 um 16 42 13
apparently the crossed out emblem means that the "program" is a power pc app and only runs on older pcs.
the second weird thing is, that i get this message when i want to launch the pokemon-location: "Location simulation cannot continue because the GPX file "pokemonLocation.gpx" is invalid. Failed to parse GPX file (/Users/.../pokemongo-webspoof-master/pokemonLocation.gpx)"

what shall i do? please excuse my bad english. thx

@EnglandBaby
Copy link

EnglandBaby commented Jul 28, 2016

Guys help me i have a problem:
1st -XCODE dosen't support phone's IOS 9.3.3
2nd- I cant rename bundle identifier

@Yomerito
Copy link

Is there a way to run this in iOS 10?, I've been trying but keep getting the could find developer disk image message, anyone has any ideas or do I have to forcibly get back to iOS 9?

@nickg819
Copy link

You need xcode 8 beta for ios 10 support.

@xXFettiXx
Copy link

Hello , I do not understand the step to install a developer account !
can you help me? everything else works but I'm disconnected every 5 minutes and this forces me to repeat this process indefinitely
thank you in advance

@nlenus
Copy link

nlenus commented Jul 30, 2016

I tried to install the app via terminal commands and I get this loads of warnings- is this normal? When I run it, xcode opens and also an app called electron but it's a blank white page.

npm WARN package.json pokemongo-webspoof@1.2.0 No repository field.
npm WARN package.json pokemongo-webspoof@1.2.0 No bin file found at ./bin/pgws
npm WARN package.json pokemongo-webspoof@1.2.0 No bin file found at ./bin/pgws
npm WARN package.json Dependency 'electron-prebuilt' exists in both dependencies and devDependencies, using 'electron-prebuilt@^1.3.0' from dependencies
npm WARN package.json Dependency 'google-map-react' exists in both dependencies and devDependencies, using 'google-map-react@^0.16.3' from dependencies
npm WARN deprecated electron@0.4.1: The original electron project has been moved. Visit github.com/logicalparadox/electron for more details.
npm WARN peerDependencies The peer dependency babel-core@^6.0.0 included from babel-loader will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency eslint@^2.9.0 included from eslint-config-airbnb will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency eslint-plugin-jsx-a11y@^1.2.0 included from eslint-config-airbnb will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency eslint@^2.9.0 included from eslint-config-airbnb-base will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency angular@< 2 included from autocomplete.js will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency jquery@>= 1.7 included from autocomplete.js will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

Pass --update-binary to reinstall or --build-from-source to recompile
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package eslint-plugin-jsx-a11y@2.0.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer eslint-config-airbnb@9.0.1 wants eslint-plugin-jsx-a11y@^1.2.0

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Neil/pokemongo-webspoof/npm-debug.log

@anguyen56
Copy link

im getting Location simulation cannot continue because the GPX file "pokemonLocation.gpx" is invalid. please help

@ghost
Copy link

ghost commented Jul 31, 2016

I get error: WebSpoof[1033:56683] -canOpenURL: failed for URL: "b335b2fc-69dc-472c-9e88-e6c97f84091c-3://" - error: "(null)"

This error occurs when pressing the Launch Pokemon Go button.

Could this be because of the recent update? Or is it me.

@patrickjeu
Copy link

Same as above ^. I get error: WebSpoof[1033:56683] -canOpenURL: failed for URL: "b335b2fc-69dc-472c-9e88-e6c97f84091c-3://" - error: "(null)"

This error occurs when pressing the Launch Pokemon Go button.

Could this be because of the recent update?

@Mr10001
Copy link

Mr10001 commented Aug 1, 2016

Check out the following for the canopenurl failed error:

#302

@R333166
Copy link

R333166 commented Aug 2, 2016

Hi to all,
This is what is happening to me (simulate location is not enabled). Any help?
schermata 2016-08-02 alle 11 37 12

@elvquant
Copy link

elvquant commented Aug 3, 2016

locking around my issue there is no menu entry "pokemonLocation" and I haven't found any "*.gpx" which are able to select in Xcode Debug menu ... I found: http://stackoverflow.com/questions/16780366/xcode-greys-out-gpx-files-in-filebox

May be the problem is for both issues (missing entry and unable to load gpx) are possible, that there is an misspelling contenttype-mapping on the system.

I have no solution at the moment ... ;-(

@bullseye1975
Copy link

I added all the code and it compiled just fine on my phone. But the map/controller doesn't launch on my Mac. I went to Accessibility and I can't add it. Any other suggestions?

@elvquant
Copy link

elvquant commented Aug 4, 2016

After installing a fresh minimal OS X 10.10 and Xcode 7.3.1 all works correctly!
The contenttype-mapping is now correct and the correct icon will shown.

Now I have to check, what I can do for my "regular" working system ...

@boom-time
Copy link

boom-time commented Aug 6, 2016

what actually updates the pokemonLocation.gpx file because I have everything working except that file always remains empty so xcode complains if I have the auto update location on (running in dev mode)

@cesarvh
Copy link

cesarvh commented Aug 8, 2016

what is the exact format of the pokemonLocation.gpx?
lat = "xxx"
lon = "yyy"??
"xxx, yyy" ??

halp

@elvquant
Copy link

elvquant commented Aug 8, 2016

https://www.google.de/#q=gpx+file+format

  <gpx version="1.1" creator="abc">
    <wpt lat="1" lon="2"></wpt>
  </gpx>

But for Xcode you need also a correct "contenttype-mapping"

@Yomerito
Copy link

Anyone having trouble with the latest iOS 10 beta update (14A5341a) ? I just installed it and I keep getting the "unknown error" message or "couldn't read from device", been looking for a while but I can't find the problem. Any ideas or suggestions?

@MoOx
Copy link
Contributor

MoOx commented Aug 17, 2016

@Yomerito getting the same issue since the latest update. I tried things here http://stackoverflow.com/questions/38963815/xcode8-0-beta-6-unable-to-read-from-device but nothing worked for me. I can't use this project for now :(

@Yomerito
Copy link

I'm on the same boat, tried everything listed there and some other ideas but nothing works :/ worst is I can't use any project and basically Xcode became useless since I don't have another iPhone, hope they fix it soon, ill keep trying and post it if I can solve the problem. By the way did you try returning the iPhone to factory values, for some reason I can't do it, not sure if it is part of the same problem.

@asonephady
Copy link

@iam4x i still get code 2 error every time i open up the app. it usually takes like 5 minute (even if i toggle debug sim location on and off) for it to start working again lol. have to sit through 5 minutes of the error then it'll let me walk. aynthing i can do?

@chadnielsen
Copy link

Running High Sierra 10.13.4 and iOS 11.3. I was able to solve this by adjusting the Deployment Target to 11.3. I saved the project, quit everything, then reopening everything again per the Read Me. Works great!

@Yuri224488
Copy link

I CAN'T UPDATE MY COMPUTER TO USE THIS SOMEONE PLEASE MAKE THIS WORK ON OSX 10.8.5

@kyle7908
Copy link

Got It working perfect, trouble I am having is getting it to go to Santa Monica pier, it does uk and Europe brilliant just not USA. It will teleport me straight back. Any ideas? Thanks

@WebSpoofer
Copy link

You need to enter a lat and log in the US and then you can move around in the US by entering addresses. Good Luck.

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

No branches or pull requests