hookApp后,直接闪退无法进入

详见闪退日志,hookApp后,直接闪退,日志如下,是什么问题啊?
Sep 14 18:17:58: — last message repeated 1 time —
Sep 14 18:17:58 dingbinde-iPhone kernel[0]: xpcproxy[7749] Container: /private/var/mobile/Containers/Data/Application/6EF531C4-B2D6-4C84-A87C-43519FB0A3F8 (sandbox)
Sep 14 18:17:58 dingbinde-iPhone locationd[103]: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Sep 14 18:17:58 dingbinde-iPhone FlagFit[7749]: MS:Notice: Injecting: vv.flagfit.ute [FlagFit] (1140.10)
Sep 14 18:17:58 dingbinde-iPhone FlagFit[7749]: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Demo1080Tweak.dylib
Sep 14 18:17:58 dingbinde-iPhone FlagFit[7749]: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/reveal2Loader.dylib
Sep 14 18:17:58 dingbinde-iPhone FlagFit[7749]: ERROR: Reveal Server requires UIApplication to be available. You may be trying to start Reveal Server too early or in an incompatible process.
Sep 14 18:17:58 dingbinde-iPhone FlagFit[7749]: Reveal2Loader loaded /Library/Frameworks/RevealServer.framework/RevealServer
Sep 14 18:17:58 dingbinde-iPhone FlagFit[7749]: assertion failed: 12A405: libxpc.dylib + 71820 [4BC9CA3D-4DEE-314C-ADBF-53BDCEEFE45C]: 0x7d
Sep 14 18:17:58 dingbinde-iPhone Unknown[7749]:
Sep 14 18:17:59 dingbinde-iPhone FlagFit[7749]: CoreLocation: Could not get ideal gyro update interval, assuming 0.005000 s
Sep 14 18:18:00 dingbinde-iPhone ReportCrash[7751]: MS:Notice: Injecting: (null) [ReportCrash] (1140.10)
Sep 14 18:18:00 dingbinde-iPhone ReportCrash[7751]: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/RocketBootstrap.dylib
Sep 14 18:18:00 dingbinde-iPhone ReportCrash[7751]: task_set_exception_ports(B07, 400, F03, 0, 0) failed with error (4: (os/kern) invalid argument)
Sep 14 18:18:00 dingbinde-iPhone ReportCrash[7751]: ReportCrash acting against PID 7749
Sep 14 18:18:00 dingbinde-iPhone ReportCrash[7751]: Formulating crash report for process FlagFit[7749]
Sep 14 18:18:00 dingbinde-iPhone SpringBoard[7705]: BSXPCMessage received error for message: Connection invalid
Sep 14 18:18:00 dingbinde-iPhone com.apple.xpc.launchd[1] (UIKitApplication:vv.flagfit.ute[0x5273][7749]): Service exited due to signal: Segmentation fault: 11
Sep 14 18:18:00 dingbinde-iPhone ReportCrash[7751]: Saved report to /var/mobile/Library/Logs/CrashReporter/FlagFit_2017-09-14-181800_dingbinde-iPhone.ips
Sep 14 18:18:00 dingbinde-iPhone SpringBoard[7705]: Application ‘UIKitApplication:vv.flagfit.ute[0x5273]’ crashed.
Sep 14 18:18:00 dingbinde-iPhone assertiond[55]: Could not set priority of <BKNewProcess: 0x135d1fee0; vv.flagfit.ute; pid: 7749> to 2, priority: No such process
Sep 14 18:18:00 dingbinde-iPhone assertiond[55]: Could not set priority of <BKNewProcess: 0x135d1fee0; vv.flagfit.ute; pid: 7749> to 4096, priority: No such process
Sep 14 18:18:00 dingbinde-iPhone UserEventAgent[48]: id=vv.flagfit.ute pid=7749, state=0
Sep 14 18:18:00 dingbinde-iPhone SpringBoard[7705]: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
Sep 14 18:18:00 dingbinde-iPhone locationd[103]: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

这个是调试App图片,在这里就进不去了

hook的代码放出来看看。。。

@everettjf 我发现是由于第三方的库造成的,我有hook地理位置,但集成了推送了分享,我把推送和分享给注释掉就可以正常启动了,三方库是静态库,这个三方库是否有影响的

那就排除下了。。。
不hook的时候,集成推送和分享,会crash吗?
看起来是分享sdk的冲突。。

这个不会,我测试过了,不HOOK的时候,集成推送和分享不会crash

这个已经测试过了,不hook的时候,住在成推送和分享不会crash
这个有没有办法处理呢