ããªã³ãªã³å±ããã太ã®PCã¯ã¨ã©ã¼ãåãã¦ããã解æãã
ãã太(ãªã³ãªã³)ã®PCã§ã¨ã©ã¼ãçºçãã¦ãããã¨ãå¤æã
ãªã³ãªã³å±ã§å±ç¤ºãã¦ãã£ããã太ã®PCã§è¡¨ç¤ºããã¦ãããã®ãç»åèªèï¼æå ¥åããå çä¿®æ£ããã¨iOSã®ã¯ã©ãã·ã¥ã¬ãã¼ãã¨ãããã¨ãåãã£ãã
ã¯ã©ãã·ã¥ã¬ãã¼ãå ¨ä½
解説
iOSã®ã¯ã©ãã·ã¥ã¬ãã¼ã
ã¯ã©ãã·ã¥ã¯ãSpringBoardãã¨ããããã»ã¹ã«é¢é£ãã¦ãã¦ãããã¯iOSã®ãã¼ã ç»é¢ããã®ä»ã®ã·ã¹ãã UIã管çãã責任ãæã¤ãã®ã§ããã
ã¯ã©ãã·ã¥ã¯ãEXC_BAD_ACCESSãã¨ããä¾å¤ã«ãã£ã¦å¼ãèµ·ãããã¦ãã¦ãããã¯é常ãç¡å¹ãªã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ãããã¨ãããã¨ã«ããã¡ã¢ãªã¢ã¯ã»ã¹ã¨ã©ã¼ã示ããã¤ã¾ãããã¯ã¡ã¢ãªç®¡çã®åé¡ãåå ã¨ãããã
ã¯ã©ãã·ã¥ã¯ãlibobjc.A.dylibãã©ã¤ãã©ãªå ã§ãçºçãã¦ãã¦ãobjc_retainãã¨ããé¢æ°å ã§ã¯ã©ãã·ã¥ãçºçãã¦ãããã¨ãããããããã¯Objective-Cãªãã¸ã§ã¯ãã«é¢é£ããã¡ã¢ãªç®¡çã«é¢é£ããåé¡ã示åãã¦ãã¦ãã¯ã©ãã·ã¥ã¬ãã¼ãã«ããã°ãã¯ã©ãã·ã¥ã¯ã¹ã¬ãã0ï¼"com.apple.main-thread"ï¼ã§ããªã¬ã¼ããã¦ãããã¹ã¬ãã0ã¯é常ãã¡ã¤ã³ã¹ã¬ããã表ããã®ã ã
ã¹ã¿ãã¯ãã¬ã¼ã¹ã¯ãã¯ã©ãã·ã¥ã¾ã§ã«å®è¡ãããé¢æ°å¼ã³åºãã®ã·ã¼ã±ã³ã¹ã示ãã¦ãã
ã¯ã©ãã·ã¥ã¯ã"NtSpeed.dylib"ã¨ãããã¤ãããã¯ã©ã¤ãã©ãªã«å±ãã"Ntspeed update"ã¡ã½ããã®å®è¡ä¸ã«ãçºçããããã ãããã¦ã"update"ã¡ã½ããã¯UIKitãã¬ã¼ã ã¯ã¼ã¯ã®UILabelã®"_setText:"ã¡ã½ãããå¼ã³åºãã¦ãããããã«ãããUILabelã®ããã¹ããæ´æ°ããéã«ã¯ã©ãã·ã¥ãçºçãã¦ããå¯è½æ§ããããã¹ã¿ãã¯ãã¬ã¼ã¹ã®æå¾ã«ã¯ãã¡ã¤ã³ã¹ã¬ãããé常ã®iOSã¢ããªã±ã¼ã·ã§ã³ã®ã¨ã³ããªãã¤ã³ãã§ãã"UIApplicationMain"ãå®è¡ãã¦ãããã¨ã示ããã¦ããããå®éã®ã½ã¼ã¹ã³ã¼ãã«ã¢ã¯ã»ã¹ã§ããªããããã¯ã©ãã·ã¥ã®æ£ç¢ºãªåå ãç¹å®ãããã¨ã¯é£ãããããããæãå¯è½æ§ã®é«ãã®ã¯ããã¯ãã¡ã¢ãªç®¡çã®åé¡ã§ããã解æ¾ããããªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ãããããã«ãã¤ã³ã¿ãåç §ããããã¦ããå¯è½æ§ãããã
*1: