FirebaseExtended / cocos2dx-cpp-sample

Firebase Cocos2d-x samples
http://firebase.google.com/games
MIT License
53 stars 25 forks source link

IOS Compile #19

Closed saulex closed 5 years ago

saulex commented 6 years ago

Only run: ./setup_firebase_sample.py Database

Install all perfect compile in Xcode when run it in Simulator show in console this error:

018-08-22 13:10:37.651463-0500 HelloCpp-mobile[6981:234685] +[CATransaction synchronize] called within transaction

{ gl.supports_OES_map_buffer: true gl.supports_vertex_array_object: true cocos2d.x.version: cocos2d-x-3.14.1 gl.vendor: Apple Inc. gl.supports_PVRTC: true gl.renderer: Apple Software Renderer cocos2d.x.compiled_with_profiler: false gl.supports_S3TC: false gl.version: OpenGL ES 2.0 APPLE-16.4.2 cocos2d.x.build_type: DEBUG gl.max_texture_size: 4096 gl.supports_ETC1: false gl.supports_BGRA8888: false gl.max_texture_units: 8 gl.max_samples_allowed: 4 gl.supports_OES_packed_depth_stencil: true gl.supports_ATITC: false gl.supports_NPOT: true gl.supports_discard_framebuffer: true cocos2d.x.compiled_with_gl_state_cache: true gl.supports_OES_depth24: true }

Initializing Firebase for iOS. 2018-08-22 13:10:44.382383-0500 HelloCpp-mobile[6981:234685] No default app present, ignore the previous FIRApp configuration warning (I-COR000003). 2018-08-22 13:10:44.383055-0500 HelloCpp-mobile[6981:237170] [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure]; (FirebaseApp.configure() in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. 2018-08-22 13:10:44.383 HelloCpp-mobile[6981] [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure]; (FirebaseApp.configure() in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. 2018-08-22 13:10:46.527216-0500 HelloCpp-mobile[6981:238042] [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb 2018-08-22 13:10:46.527 HelloCpp-mobile[6981] [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb 2018-08-22 13:10:46.533859-0500 HelloCpp-mobile[6981:238042] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40002000 started 2018-08-22 13:10:46.534 HelloCpp-mobile[6981] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40002000 started 2018-08-22 13:10:46.534332-0500 HelloCpp-mobile[6981:238042] [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2018-08-22 13:10:46.534 HelloCpp-mobile[6981] [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2018-08-22 13:10:47.876208-0500 HelloCpp-mobile[6981:234685] +[FIRApp registerLibrary:withVersion:]: unrecognized selector sent to class 0x109a61580 2018-08-22 13:10:49.010612-0500 HelloCpp-mobile[6981:234685] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[FIRApp registerLibrary:withVersion:]: unrecognized selector sent to class 0x109a61580' First throw call stack: ( 0 CoreFoundation 0x00000001103ec1e6 exceptionPreprocess + 294 1 libobjc.A.dylib 0x000000010fa81031 objc_exception_throw + 48 2 CoreFoundation 0x000000011046d6c4 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x000000011036e898 __forwarding + 1432 4 CoreFoundation 0x000000011036e278 _CF_forwarding_prep_0 + 120 5 HelloCpp-mobile 0x00000001093b43a8 ZN8firebase3App15RegisterLibraryEPKcS2 + 120 6 HelloCpp-mobile 0x00000001093b1cdc _ZN8firebase10app_common6AddAppEPNS_3AppEbPNSt313mapINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10InitResultENS3_4lessISA_EENS8_INS3_4pairIKSA_SB_EEEEEE + 610 7 HelloCpp-mobile 0x00000001093b30fd _ZN8firebase3App6CreateERKNS_10AppOptionsEPKc + 661 8 HelloCpp-mobile 0x0000000109218778 _ZN11AppDelegate29applicationDidFinishLaunchingEv + 888 9 HelloCpp-mobile 0x00000001093ea564 _ZN7cocos2d11Application3runEv + 36 10 HelloCpp-mobile 0x00000001092195ee -[AppController application:didFinishLaunchingWithOptions:] + 670 11 UIKit 0x000000010c44b6fb -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 278 12 UIKit 0x000000010c44d172 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4123 13 UIKit 0x000000010c4525cb -[UIApplication _runWithMainScene:transitionContext:completion:] + 1677 14 UIKit 0x000000010c814f7e 111-[UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866 15 UIKit 0x000000010cbe7a39 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153 16 UIKit 0x000000010c814bba -[UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236 17 UIKit 0x000000010c8153db -[UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675 18 UIKit 0x000000010d186614 82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299 19 UIKit 0x000000010d1864ae -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433 20 UIKit 0x000000010ce6a75d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221 21 UIKit 0x000000010d0654b7 _performActionsWithDelayForTransitionContext + 100 22 UIKit 0x000000010ce6a627 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223 23 UIKit 0x000000010cbe70e0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392 24 UIKit 0x000000010c450eac -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515 25 UIKit 0x000000010ca23bcb -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361 26 FrontBoardServices 0x00000001147352f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331 27 FrontBoardServices 0x000000011473dcfa 56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225 28 libdispatch.dylib 0x00000001109637ec _dispatch_client_callout + 8 29 libdispatch.dylib 0x0000000110968db8 _dispatch_block_invoke_direct + 592 30 FrontBoardServices 0x0000000114769470 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24 31 FrontBoardServices 0x000000011476912e -[FBSSerialQueue _performNext] + 439 32 FrontBoardServices 0x000000011476968e -[FBSSerialQueue _performNextFromRunLoopSource] + 45 33 CoreFoundation 0x000000011038ebb1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 34 CoreFoundation 0x00000001103734af CFRunLoopDoSources0 + 271 35 CoreFoundation 0x0000000110372a6f __CFRunLoopRun + 1263 36 CoreFoundation 0x000000011037230b CFRunLoopRunSpecific + 635 37 GraphicsServices 0x00000001133baa73 GSEventRunModal + 62 38 UIKit 0x000000010c454057 UIApplicationMain + 159 39 HelloCpp-mobile 0x0000000109224ce1 main + 65 40 libdyld.dylib 0x00000001109e0955 start + 1 41 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)