我正在嘗試將GCM v3集成到cocos2d-x v3.6項目中,並且在使用CocoaPods和Xcode工作了幾天後,我終於能夠構建該應用程序。但是,在部署在設備上進行測試時,它會在調用[[GGLInstanceID sharedInstance] tokenWithAuthorizedEntity:_gcmSenderID scope:kGGLInstanceIDScopeGCM options:_registrationOptions handler:_registrationHandler]
時崩潰,並顯示錯誤EXC_BAD_ACCESS
。是什麼賦予了?EXC_BAD_ACCESS with GCM 3.0
截圖:http://i.imgur.com/s0HnxTp.png
我的配置如下:
daffodilistic$ pod --version 0.39.0.beta.4 daffodilistic$ cat Podfile platform :ios, '8.1' source 'https://github.com/CocoaPods/Specs.git' target 'project-redacted iOS' do pod 'Google/CloudMessaging' end target 'project-redacted Mac' do end
這裏是一個很好的起點: http://loufranco.com/blog/understanding-exc_bad_access – KayAnn