Closed bobloco closed 8 years ago
Running into the same issue.
same for me
Possibly the new update broke something?
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 )
I met same problem, follow bittuahlawat@'s procedure and add #import "LMAppController.h" at top of ViewController.m file. Should fix the problem. Thanks
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.
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://"]]; }
@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.
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.
hey - i got that problem that the "launch pokemon go" button disappears when i follow your steps .. :/
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 ?
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.
@bittuahlawat Thanks for the solution it works perfectly now ! Hop everyone will get it to work too!
Thanks @bittuahlawat, works fine for me!
@michael430 yeah, it isn't in any of the folders, oh well, thanks though.
OK, found those lines, still doesn't work. Do we think web spoof will be released with all this in at any point?
I just get an error message saying; "use of undeclared identifier LMAppController when trying to replace the code. Why is that?
@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.
Should be with the rest of the import statements like so
@AidanMcArdle Thanks a lot. It solved the issue.
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
What am I doing wrong?
@gingerrob1986 you have to right click on the folder and select "Add files.." and add those 4 files that @bittuahlawat mentioned
Thanks @iruy this seems to be my last issue
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....
@kebabortega just read the last few post in this issue...
@gingerrob1986 I am getting the same issue.
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?
Thanks a lot @bittuahlawat :D
I receive following error on desktop app webspoof. Any idea why?
Same here. as @MuratV
@fwartner I solved it. I actually just forgot to go to xcode -> debug -> simulate location -> pokemonLocation.
so, everything starts and runs on my phone, but just giving a blank white screen instead of "Launch PokemonGo" screen. any help ?
@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.
@bittuahlawat ahh nevermind, fixed it! runs smoothly right now, but if close Xcode, everything is reset (even bundle identifier), any ideas? :/
@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.
@bittuahlawat ahhh ok ok, thanks for your time mate, great work !
Hi guy ! I'm following @bittuahlawat method but it can't work . I've got this error
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
@Truro replace this:
with this:
Thanks you @bittuahlawat but it still not working i've got this error this time
@Truro at the top of the file, make sure you you write "#import "LMAppController.h" next to other import statements.
Yes it's ok thank you for you time and your help @bittuahlawat 😁
@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.
@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:
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.
@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!
@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.
So is there no answer to my issue with location?
@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
I did the privacy things, but that message keeps appearing so I can't do anything.
The gpx location file is invalid, what can i do?
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