手动集成最新版版本的JPush,真机运行正常,模拟器运行报错

用户9527817
2021-05-11 10:56 193 1

错误日志如下

2021-05-11 18:46:06.421987+0800 好股票[46007:513602] -[AppDelegate(Config) initRootViewController] [Line 73] App启动啦
2021-05-11 18:46:06.437940+0800 好股票[46007:513602] +[JPUSHService setupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]: unrecognized selector sent to class 0x10664d080
2021-05-11 18:46:06.465686+0800 好股票[46007:513602] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[JPUSHService setupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]: unrecognized selector sent to class 0x10664d080'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff20422fba __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007fff20193ff5 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff20431c48 __CFExceptionProem + 0
    3   CoreFoundation                      0x00007fff204274cf ___forwarding___ + 1455
    4   CoreFoundation                      0x00007fff204297a8 _CF_forwarding_prep_0 + 120
    5   好股票                           0x0000000105596736 -[AppDelegate initJPushAapplication:launchOptions:] + 550
    6   好股票                           0x0000000105594736 -[AppDelegate application:didFinishLaunchingWithOptions:] + 198
    7   UIKitCore                           0x00007fff246bd6f1 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
    8   UIKitCore                           0x00007fff246bf33b -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4046
    9   UIKitCore                           0x00007fff246c4d63 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1237
    10  UIKitCore                           0x00007fff23ce629b -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
    11  UIKitCore                           0x00007fff24272726 _UIScenePerformActionsWithLifecycleActionMask + 88
    12  UIKitCore                           0x00007fff23ce6dad __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
    13  UIKitCore                           0x00007fff23ce686e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 474
    14  UIKitCore                           0x00007fff23ce6bda -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818
    15  UIKitCore                           0x00007fff23ce646f -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
    16  UIKitCore                           0x00007fff23cee6d8 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 178
    17  UIKitCore                           0x00007fff2417c77d +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 871
    18  UIKitCore                           0x00007fff2428f60e _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 246
    19  UIKitCore                           0x00007fff23cee3de -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 361
    20  UIKitCore                           0x00007fff23b117d5 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 797
    21  UIKitCore                           0x00007fff23b1024e -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 253
    22  UIKitCore                           0x00007fff23b1140e -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 208
    23  UIKitCore                           0x00007fff246c3203 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 508
    24  UIKitCore                           0x00007fff241a4ab4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
    25  FrontBoardServices                  0x00007fff25a1b40b -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 398
    26  FrontBoardServices                  0x00007fff25a43e55 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
    27  FrontBoardServices                  0x00007fff25a28f12 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
    28  FrontBoardServices                  0x00007fff25a43b28 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 352
    29  libdispatch.dylib                   0x000000010767674e _dispatch_client_callout + 8
    30  libdispatch.dylib                   0x0000000107679656 _dispatch_block_invoke_direct + 295
    31  FrontBoardServices                  0x00007fff25a695d0 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
    32  FrontBoardServices                  0x00007fff25a692b6 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
    33  FrontBoardServices                  0x00007fff25a6977b -[FBSSerialQueue _performNextFromRunLoopSource] + 22
    34  CoreFoundation                      0x00007fff20390ede __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    35  CoreFoundation                      0x00007fff20390dd6 __CFRunLoopDoSource0 + 180
    36  CoreFoundation                      0x00007fff20390300 __CFRunLoopDoSources0 + 340
    37  CoreFoundation                      0x00007fff2038a9f7 __CFRunLoopRun + 875
    38  CoreFoundation                      0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
    39  GraphicsServices                    0x00007fff2b874d85 GSEventRunModal + 139
    40  UIKitCore                           0x00007fff246c14df -[UIApplication _run] + 912
    41  UIKitCore                           0x00007fff246c639c UIApplicationMain + 101
    42  好股票                           0x000000010546c040 main + 112
    43  libdyld.dylib                       0x00007fff2025abbd start + 1
    44  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[JPUSHService setupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]: unrecognized selector sent to class 0x10664d080'
terminating with uncaught exception of type NSException
CoreSimulator 757.5 - Device: iPhone 12 Pro (BF0F2DD4-47C4-47A6-A29C-CEB56E440C31) - Runtime: iOS 14.5 (18E182) - DeviceType: iPhone 12 Pro

1个回答

热门排序
  • 用户7244340
    2021-05-19 10:00
    我也有同样的问题,M1 mbp,Xcode 12。 使用CocoaPods 集成最新的JPush 模拟器编译不通过,提示 .../Pods/JCore/libjcore-ios-2.6.2.a(JCommonLocationControll 展示全部