Example里面的工程一运行就崩溃【已解决】
Closed this issue · 2 comments
mlcldh commented
2017-08-09 10:19:50.186 BeeHive_Example[3760:46584] config = ShopModule
2017-08-09 10:19:50.234 BeeHive_Example[3760:46584] ShopModule init
2017-08-09 10:19:50.235 BeeHive_Example[3760:46584] config = { "HomeServiceProtocol" : "BHViewController"}
2017-08-09 10:19:50.235 BeeHive_Example[3760:46584] config = { "UserTrackServiceProtocol" : "BHUserTrackViewController"}
2017-08-09 10:19:50.267 BeeHive_Example[3760:46584] TradeModule init
2017-08-09 10:19:50.473 BeeHive_Example[3760:46584] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2017-08-09 10:19:50.474 BeeHive_Example[3760:46584] TradeModule init
2017-08-09 10:19:50.474 BeeHive_Example[3760:46584] ShopModule init
2017-08-09 10:19:50.475 BeeHive_Example[3760:46584] ShopModule setup
2017-08-09 10:19:50.475 BeeHive_Example[3760:46584] TradeModule setup
2017-08-09 10:19:50.475 BeeHive_Example[3760:46584] UserTrackModule setup
2017-08-09 10:19:50.480 BeeHive_Example[3760:46584] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'TradeServiceProtocol protocol has been registed'
*** First throw call stack:
(
0 CoreFoundation 0x0000000108082c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000107d1bbb7 objc_exception_throw + 45
2 BeeHive 0x000000010631f8ae -[BHServiceManager registerService:implClass:] + 1326
3 BeeHive 0x000000010630fcec -[BeeHive registerService:service:] + 108
4 BeeHive_Example 0x0000000106272cac -[TradeModule modSetUp:] + 140
5 BeeHive 0x0000000106319d2f __77-[BHModuleManager handleModuleEvent:forTarget:withSeletorStr:andCustomParam:]_block_invoke + 143
6 CoreFoundation 0x0000000107fb8f22 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 114
7 CoreFoundation 0x0000000107fb867c -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 300
8 BeeHive 0x0000000106319c00 -[BHModuleManager handleModuleEvent:forTarget:withSeletorStr:andCustomParam:] + 1104
9 BeeHive 0x0000000106318a2b -[BHModuleManager handleModuleEvent:forTarget:withCustomParam:] + 411
10 BeeHive 0x00000001063168bc -[BHModuleManager triggerEvent:withCustomParam:] + 76
11 BeeHive 0x0000000106316862 -[BHModuleManager triggerEvent:] + 66
12 BeeHive 0x0000000106310b40 -[BHAppDelegate application:didFinishLaunchingWithOptions:] + 128
13 BeeHive_Example 0x0000000106270692 -[TestAppDelegate application:didFinishLaunchingWithOptions:] + 690
14 UIKit 0x00000001065a4748 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 240
15 UIKit 0x00000001065a5357 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2540
16 UIKit 0x00000001065a819e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
17 UIKit 0x00000001065a7095 -[UIApplication workspaceDidEndTransaction:] + 179
18 FrontBoardServices 0x000000010c3885e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
19 CoreFoundation 0x0000000107fb641c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
20 CoreFoundation 0x0000000107fac165 __CFRunLoopDoBlocks + 341
21 CoreFoundation 0x0000000107fabf25 __CFRunLoopRun + 2389
22 CoreFoundation 0x0000000107fab366 CFRunLoopRunSpecific + 470
23 UIKit 0x00000001065a6b02 -[UIApplication _run] + 413
24 UIKit 0x00000001065a98c0 UIApplicationMain + 1282
25 BeeHive_Example 0x0000000106272ebf main + 111
26 libdyld.dylib 0x0000000108bab145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
yaochenfeng commented
新的代码已经解决了