前提・実現したいこと
swift初心者です
cocoapodsの入門のためにSVProgressHUDをインストールしたのですが
SVProgressHUD.show()
をするとよくわからないところでエラーを起こしてしまいます
有識者の方よろしくお願いします
発生している問題・エラーメッセージ
2019-10-08 19:13:33.120624+0900 SVProgressSample[2285:45350] -[SVProgressSample.AppDelegate window]: unrecognized selector sent to instance 0x6000024642e0 2019-10-08 19:13:33.126314+0900 SVProgressSample[2285:45350] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SVProgressSample.AppDelegate window]: unrecognized selector sent to instance 0x6000024642e0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23baa1ee __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23bcb154 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 UIKitCore 0x00007fff475a6e79 -[UIResponder doesNotRecognizeSelector:] + 302 4 CoreFoundation 0x00007fff23baed16 ___forwarding___ + 838 5 CoreFoundation 0x00007fff23bb10f8 _CF_forwarding_prep_0 + 120 6 SVProgressHUD 0x000000010cbc41b2 __27+[SVProgressHUD sharedView]_block_invoke + 130 7 libdispatch.dylib 0x000000010cbf6d6c _dispatch_client_callout + 8 8 libdispatch.dylib 0x000000010cbf82bb _dispatch_once_callout + 66 9 SVProgressHUD 0x000000010cbc4108 +[SVProgressHUD sharedView] + 136 10 SVProgressHUD 0x000000010cbc54fd +[SVProgressHUD showProgress:status:] + 61 11 SVProgressHUD 0x000000010cbc52d4 +[SVProgressHUD showWithStatus:] + 68 12 SVProgressHUD 0x000000010cbc51e5 +[SVProgressHUD show] + 37 13 SVProgressSample 0x000000010c89ad29 $s16SVProgressSample14ViewControllerC11viewDidLoadyyF + 121 14 SVProgressSample 0x000000010c89adab $s16SVProgressSample14ViewControllerC11viewDidLoadyyFTo + 43 15 UIKitCore 0x00007fff46f03d96 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83 16 UIKitCore 0x00007fff46f08cef -[UIViewController loadViewIfRequired] + 1084 17 UIKitCore 0x00007fff46f0910c -[UIViewController view] + 27 18 UIKitCore 0x00007fff475b0241 -[UIWindow addRootViewControllerViewIfPossible] + 150 19 UIKitCore 0x00007fff475af8f5 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 232 20 UIKitCore 0x00007fff475b09b5 -[UIWindow _setHidden:forced:] + 362 21 UIKitCore 0x00007fff475c3d61 -[UIWindow _mainQueue_makeKeyAndVisible] + 42 22 UIKitCore 0x00007fff477cac91 -[UIWindowScene _makeKeyAndVisibleIfNeeded] + 202 23 UIKitCore 0x00007fff46b172ea +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1405 24 UIKitCore 0x00007fff475751a2 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1018 25 UIKitCore 0x00007fff475754e4 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 304 26 UIKitCore 0x00007fff470ec535 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361 27 FrontBoardServices 0x00007fff364e0361 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442 28 FrontBoardServices 0x00007fff365065f8 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102 29 FrontBoardServices 0x00007fff364eae41 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220 30 FrontBoardServices 0x00007fff36506289 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355 31 libdispatch.dylib 0x000000010cbf6d6c _dispatch_client_callout + 8 32 libdispatch.dylib 0x000000010cbf9cdd _dispatch_block_invoke_direct + 300 33 FrontBoardServices 0x00007fff3652c49e __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30 34 FrontBoardServices 0x00007fff3652c18c -[FBSSerialQueue _queue_performNextIfPossible] + 441 35 FrontBoardServices 0x00007fff3652c69b -[FBSSerialQueue _performNextFromRunLoopSource] + 22 36 CoreFoundation 0x00007fff23b0d271 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 37 CoreFoundation 0x00007fff23b0d19c __CFRunLoopDoSource0 + 76 38 CoreFoundation 0x00007fff23b0c9cc __CFRunLoopDoSources0 + 268 39 CoreFoundation 0x00007fff23b0767f __CFRunLoopRun + 1263 40 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438 41 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65 42 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621 43 SVProgressSample 0x000000010c89bbbb main + 75 44 libdyld.dylib 0x00007fff516ecd29 start + 1 45 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) `` ### 該当のソースコード ispatch_once(predicate, block); Thread 1: signal SIGABRT
試したこと
とにかくググって出てきた外国語の質問サイトはあらかた試しました
info.plistのTargetMembershipにチェックを入れたりなんども再起動したりdelived dataを削除しましたがダメでした
補足情報(FW/ツールのバージョンなど)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/10/09 02:07