Coder Social home page Coder Social logo

gchelper's People

Contributors

bcylin avatar cennydavidsson avatar davecom avatar fcanas avatar halvorsen avatar hawkfalcon avatar jackcook avatar janwagner avatar onstwedder avatar sn3ek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gchelper's Issues

Invite

Hi I'm trying out the invite though it is not receiving. Is there any docs to help figure this out Thank you

BTW - awesome resource

Error in authenticateLocalUser() method

Great helper class, thanks for that! Noticed a little bug in the authenticateLocalUser method, though: As apple states in their documentation, you should always check the authenticated-property on the local player, instead of relying on an error.

Also, if the view is not nil, there should be code to present the given view controller, so the user sees a login screen.

Thanks again!
Chris

Unrecognized selector sent to instance

I am trying to use your GCHelper and I put the line GCHelper.sharedInstance.authenticateLocalUser() in my AppDelegate but when I run the project on the simulator I get an error right away. I am new to Swift so I am probably doing something wrong. Any idea what I need to do to resolve this?

Thanks!

GCHelper authenticationChanged]: unrecognized selector sent to instance 0x78681a20'
*** First throw call stack:
(
0 CoreFoundation 0x01656746 exceptionPreprocess + 182
1 libobjc.A.dylib 0x012dba97 objc_exception_throw + 44
2 CoreFoundation 0x0165e705 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
3 CoreFoundation 0x015a5287 __forwarding
+ 1047
4 CoreFoundation 0x015a4e4e _CF_forwarding_prep_0 + 14
5 Foundation 0x0083a079 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
6 CoreFoundation 0x01620be4 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20
7 CoreFoundation 0x0150d11b _CFXNotificationPost + 3051
8 Foundation 0x008295d6 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
9 GameCenterFoundation 0x03d0ba63 __52-[GKDaemonProxy setLocalPlayer:authenticated:reply:]_block_invoke + 904
10 libdispatch.dylib 0x052355ea _dispatch_call_block_and_release + 15
11 libdispatch.dylib 0x05257bef _dispatch_client_callout + 14
12 libdispatch.dylib 0x0523d6bb _dispatch_main_queue_callback_4CF + 993
13 CoreFoundation 0x015af8ee CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 14
14 CoreFoundation 0x0156d5f0 __CFRunLoopRun + 2256
15 CoreFoundation 0x0156ca5b CFRunLoopRunSpecific + 443
16 CoreFoundation 0x0156c88b CFRunLoopRunInMode + 123
17 GraphicsServices 0x044652c9 GSEventRunModal + 192
18 GraphicsServices 0x04465106 GSEventRun + 104
19 UIKit 0x026fd0b6 UIApplicationMain + 1526

Handling invites?

Hey!

Invites don't seem to work - what's required to get invite friend part working. :)

Cheers!

Invites

Should I register the localplayerlistener somewhere in the GCHelper authentication like this
GKLocalPlayer.localPlayer().registerListener(self)
so the app can listen for invites? I did't find such registration in the GCHelper.swift

in GCHelper.swift

I've noticed a typo in the
public func loadAllAchivements(_ completion: (() -> Void)? = nil)
function

It should be loadAllAchievements(_ completion: (() -> Void)? = nil)

Turn Based matches

Any possibility to add support for turn based matches? I tried myself and made a findTurnBasedMatchWithMinPlayers(), nearly identical to the non turn based one, but that was all I could come up with before things broke. If it's not too much work I'm sure a bunch of people would appreciate it! There isn't much info out there on turn based matchmaking.

Authentication changed: player not authenticated

I added the Repo to my project and try to authenticated the user but i always directly fail with

he requested operation could not be completed because this application is not recognized by Game Center.

Notification Name Invalid

On commit 'e8f816ad06505de81de0af4945c4668281c30c80' changing 'NSNotification.Name(rawValue: GKPlayerAuthenticationDidChangeNotificationName) ' to 'Notification.Name.GKPlayerAuthenticationDidChangeNotificationName' caused builds to fail occasionally.

Unit Testing

Hey! If you're here to write some unit tests, the only note I have is to use XCTest.

If you're not sure why I wrote this issue, go take a look at the CocoaPods Testing Jam.

Thanks!

a few warnings in Xcode 8.3

hi, not a big deal, but just updated to Xcode 8.3 and I am using your (very cool) GC Helper.
Now seeing a few warnings related to it.

they are all:
String interpolation produces a debug description for an optional value; did you mean to make this explicit ?

as i say, not a big deal at all, just thought i'd mention it.

thanks for your awesome code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.