iam4x / pokemongo-webspoof

👾 Play Pokémon Go from your Mac
2.14k stars 229 forks source link

Failed for url #302

Closed bobloco closed 8 years ago

bobloco commented 8 years ago

Hi !

Everything was working smoothly but now I've got a problem on my phone when I click on the 'launch pokemon go" nothing happens but i get this message on Xcode : Pokemon WebSpoof[318:23032] -canOpenURL: failed for URL: "b335b2fc-69dc-472c-9e88-e6c97f84091c-3://" - error: "(null)

The weird part is that it's working well on another phone so I tried to delete the application on mine and installing it again but nothing seems to work. Any solution to my problem ?

Thanks

zrherda commented 8 years ago

Running into the same issue.

feichengh commented 8 years ago

same for me

MikeGarz commented 8 years ago

Possibly the new update broke something?

bittuahlawat commented 8 years ago

Here are the steps to fix the issue for now

`- (IBAction)launchPokemonGo:(id)sender {

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"b335b2fc-69dc-472c-9e88-e6c97f84091c-3://"]]) {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"b335b2fc-69dc-472c-9e88-e6c97f84091c-3://"]];
}

}`

and replace it with the following:

- (IBAction)launchPokemonGo:(id)sender { [[LMAppController sharedInstance] openAppWithBundleIdentifier:@"com.nianticlabs.pokemongo"]; }

Also, add the " #import "LMAppController.h" at top of the file next to other imports. (Thanks, @sbitswc )

sbitswc commented 8 years ago

I met same problem, follow bittuahlawat@'s procedure and add #import "LMAppController.h" at top of ViewController.m file. Should fix the problem. Thanks

gingerrob1986 commented 8 years ago

I've have downloaded the new bits, how do I add them to the web spoof project please? I'm new to all this and I'm struggling.

gingerrob1986 commented 8 years ago

I can not see this bit of code (IBAction)launchPokemonGo:(id)sender {

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"b335b2fc-69dc-472c-9e88-e6c97f84091c-3://"]]) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"b335b2fc-69dc-472c-9e88-e6c97f84091c-3://"]]; }

bittuahlawat commented 8 years ago

@gingerrob1986 you can drag and drop them to the files list from the other project to the webspoof project. The code you are looking for is in the file called "ViewController.m" somewhere around line 40-ish.

gingerrob1986 commented 8 years ago

OK, I've copied all those downloaded files to the project, I can not find that line, I might have to give up, but thanks.

gingerrob1986 commented 8 years ago

screen shot 2016-07-31 at 10 06 33

goodasgood commented 8 years ago

hey - i got that problem that the "launch pokemon go" button disappears when i follow your steps .. :/

LaureenKuntz commented 8 years ago

I've done all steps but still not working.. Here's what's written on Xcode:

Undefined symbols for architecture arm64: "_OBJCCLASS$_LMAppController", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm a novice and I don't know what this means.. Can someone help ?

michael430 commented 8 years ago

Followed @bittuahlawat method , Launch Pokemon Go button is working now with the new update.

Somehow I need to re-do the Accessibility of System Preferences/ Security & Privacy for the WebSpoof. After that seems everything is working as before.

Thanks bittuahlawat :)

Btw @gingerrob1986 you are looking for the wrong file where I saw your posted picture. You should able to find the code in "ViewController.m" file.

bobloco commented 8 years ago

@bittuahlawat Thanks for the solution it works perfectly now ! Hop everyone will get it to work too!

absolut-times commented 8 years ago

Thanks @bittuahlawat, works fine for me!

gingerrob1986 commented 8 years ago

@michael430 yeah, it isn't in any of the folders, oh well, thanks though.

gingerrob1986 commented 8 years ago

OK, found those lines, still doesn't work. Do we think web spoof will be released with all this in at any point?

paxuh commented 8 years ago

I just get an error message saying; "use of undeclared identifier LMAppController when trying to replace the code. Why is that?

AidanMcArdle commented 8 years ago

@paxuh I had the same issue.

I just get an error message saying; "use of undeclared identifier LMAppController when trying to replace the code. Why is that?

means you haven't imported the file correctly. For me it was as simple as not having the closing " on the import statement at the top of that file.

import "LMAppController.h"

Should be with the rest of the import statements like so

like so

paxuh commented 8 years ago

@AidanMcArdle Thanks a lot. It solved the issue.

iruy commented 8 years ago

Hi, I get this error:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_LMAppController", referenced from:
      objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1

I can I fix this?

FIXED: I was adding files to the app in the wrong way (through finder). Instead, I had to right click the folder in Xcode and select "Add files" like in picture. After adding files, I had to set again the Privacy option for pokemongo-webspoof in System Preferences schermata 2016-07-31 alle 17 12 59

gingerrob1986 commented 8 years ago

What am I doing wrong?

screen shot 2016-07-31 at 16 06 49

iruy commented 8 years ago

@gingerrob1986 you have to right click on the folder and select "Add files.." and add those 4 files that @bittuahlawat mentioned

gingerrob1986 commented 8 years ago

Thanks @iruy this seems to be my last issue

screen shot 2016-07-31 at 16 16 53

kebabortega commented 8 years ago

i have a problem that after i added the files, I re-opened the webspoof app in mac,it doesn't build anymore because those 4 files were missing. it seems that the location where the files were added is just temporary....

iruy commented 8 years ago

@kebabortega just read the last few post in this issue...

amamut commented 8 years ago

@gingerrob1986 I am getting the same issue.

joshuanoon commented 8 years ago

Everything seems fine for me after following @bittuahlawat steps, but I get left with the Launch Pokemon Go button on the Simulator, a seemly useable web spoof app and a stationary avatar on my iPhone screen. Any suggestions?

benoitrongeard commented 8 years ago

Thanks a lot @bittuahlawat :D

MuratV commented 8 years ago

I receive following error on desktop app webspoof. Any idea why?

screen shot 2016-07-31 at 23 37 47
fwartner commented 8 years ago

Same here. as @MuratV

MuratV commented 8 years ago

@fwartner I solved it. I actually just forgot to go to xcode -> debug -> simulate location -> pokemonLocation.

ghost commented 8 years ago

so, everything starts and runs on my phone, but just giving a blank white screen instead of "Launch PokemonGo" screen. any help ?

screen shot 2016-08-01 at 01 37 55
bittuahlawat commented 8 years ago

@nvoniatis you see the blue pin right after "#import "LMAppController.h" on the left hand side. That is called a breakpoint. You can disable that breakpoint (by clicking on it again) or remove it (by dragging it to the right side). Run your code again and it will work.

ghost commented 8 years ago

@bittuahlawat ahh nevermind, fixed it! runs smoothly right now, but if close Xcode, everything is reset (even bundle identifier), any ideas? :/

bittuahlawat commented 8 years ago

@nvoniatis This is a short term (per session solution). For it to be permanent, these files and code changes needs to be part of the package contents. If @iam4x thinks this is the right fix for long term, maybe he can make it part of the release download.

ghost commented 8 years ago

@bittuahlawat ahhh ok ok, thanks for your time mate, great work !

Truro commented 8 years ago

Hi guy ! I'm following @bittuahlawat method but it can't work . I've got this error

capture d ecran 2016-08-01 a 01 11 56

How to fix it please ? sorry i'm totally new to this and english is not my native language. by the way thanks your for you work @iam4x @bittuahlawat

bittuahlawat commented 8 years ago

@Truro replace this:

screen shot 2016-07-31 at 5 04 24 pm

with this:

screen shot 2016-07-31 at 5 03 32 pm
Truro commented 8 years ago

Thanks you @bittuahlawat but it still not working i've got this error this time

capture d ecran 2016-08-01 a 02 38 33
bittuahlawat commented 8 years ago

@Truro at the top of the file, make sure you you write "#import "LMAppController.h" next to other import statements.

screen shot 2016-07-31 at 5 59 06 pm
Truro commented 8 years ago

Yes it's ok thank you for you time and your help @bittuahlawat 😁

quattrodonkey commented 8 years ago

@bittuahlawat Thanks for the input! I have a silly question though, after making the changes, how do I save them? I tried using "save" but when I reopen, all changes would disappear.

bittuahlawat commented 8 years ago

@quattrodonkey I mentioned this earlier, this is a per session solution. Long term solution would be to have this part of the download of the project. There is one thing you can do now to "save it" so you don't have to keep repeating these steps every time you launch the app.

These steps will not do anything unless you follow the steps I have given above and have the project working

Here are the steps:

screen shot 2016-07-31 at 6 24 41 pm screen shot 2016-07-31 at 6 24 19 pm screen shot 2016-07-31 at 6 24 59 pm screen shot 2016-07-31 at 6 25 18 pm screen shot 2016-07-31 at 6 26 35 pm

These steps will "save" these changes to your app and you won't have to keep redoing these steps for every session. Now when you will relaunch the webspoof app, the files will be there every time. Hopefully this helps. Let me know if you run into any issues.

quattrodonkey commented 8 years ago

@bittuahlawat Thank you! It worked! Is it true that when I open the app, it only opens an instance of the Xcode project? So to make changes to the original content, I'll have to replace the original content with the instance that I've updated. Padrone me if it sounds silly, I'm new to Xcode. Thanks!

bittuahlawat commented 8 years ago

@quattrodonkey in a nutshell, yes. The package contains an xcode project that opens up when you launch the app but any changes to that app can't be saved back. In order to do so, you have to open the app and replace the packaged files within the changed files from the current instance. Glad to hear it worked for you.

gingerrob1986 commented 8 years ago

So is there no answer to my issue with location? screen shot 2016-07-31 at 16 16 53

iruy commented 8 years ago

@gingerrob1986 did you set the privacy settings for webspoof? Allowed Profiles in your phone general settings? Do you get any error, or just a warning? If it is just a warning, it should run the same

gingerrob1986 commented 8 years ago

I did the privacy things, but that message keeps appearing so I can't do anything.

gingerrob1986 commented 8 years ago

The gpx location file is invalid, what can i do?