-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1183 lines (794 loc) · 44.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.2">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"yoursite.com","root":"/","scheme":"Mist","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
</script>
<meta name="description" content="王楠的Blog">
<meta property="og:type" content="website">
<meta property="og:title" content="王楠的Blog">
<meta property="og:url" content="http:https://yoursite.com/index.html">
<meta property="og:site_name" content="王楠的Blog">
<meta property="og:description" content="王楠的Blog">
<meta property="og:locale">
<meta property="article:author" content="王楠">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http:https://yoursite.com/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-Hans'
};
</script>
<title>王楠的Blog</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http:https://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http:https://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="Toggle navigation bar">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">王楠的Blog</h1>
<span class="logo-line-after"><i></i></span>
</a>
<p class="site-subtitle" itemprop="description">记录点滴!</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>Categories</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<div class="reading-progress-bar"></div>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2023/06/05/WWDC2023/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2023/06/05/WWDC2023/" class="post-title-link" itemprop="url">WWDC2023</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2023-06-05 22:15:01" itemprop="dateCreated datePublished" datetime="2023-06-05T22:15:01+08:00">2023-06-05</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2023-10-23 14:54:47" itemprop="dateModified" datetime="2023-10-23T14:54:47+08:00">2023-10-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/WWDC/" itemprop="url" rel="index"><span itemprop="name">WWDC</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<div style="text-align:center"><br><img src="https://jsd.cdn.zzko.cn/gh/wangnan1082-icloud/ImageResources@main/2023-WWDC-Swift.1o73zu9boi5c.webp" alt="2023-WWDC-Swift" style="zoom:33%;" /><br></div>
<p>6 月 6 日,Apple 公司召开全球开发者大会(WWDC),推出了 <code>Vision Pro AR</code> 眼镜、MacBook Air 15 英寸、Mac Pro 等多款硬件新品,以及 iOS 17、iPadOS 17、macOS Sonoma、watchOS 10 等多个系统更新。</p>
<p>其中,<code>Apple Vision Pro</code> 眼镜是本次开幕式上的 <code>One more thing</code> ,也是全场最大亮点。</p>
<div style="text-align:center"><br><img src="https://jsd.cdn.zzko.cn/gh/wangnan1082-icloud/ImageResources@main/VisionPro-1.6koehi58kko0.webp" alt="VisionPro-1" style="zoom:67%;" /><br></div>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2023/06/05/WWDC2023/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2022/06/02/iOS%20Crash%E6%9D%82%E8%AE%B0/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/06/02/iOS%20Crash%E6%9D%82%E8%AE%B0/" class="post-title-link" itemprop="url">iOS Crash杂记</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2022-06-02 09:58:26" itemprop="dateCreated datePublished" datetime="2022-06-02T09:58:26+08:00">2022-06-02</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2023-06-02 10:08:45" itemprop="dateModified" datetime="2023-06-02T10:08:45+08:00">2023-06-02</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/Crash/" itemprop="url" rel="index"><span itemprop="name">Crash</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="Crash日志解析"><a href="#Crash日志解析" class="headerlink" title="Crash日志解析"></a>Crash日志解析</h2><h3 id="使用-symbolicatecrash-分析崩溃日志"><a href="#使用-symbolicatecrash-分析崩溃日志" class="headerlink" title="使用 symbolicatecrash 分析崩溃日志"></a>使用 <code>symbolicatecrash</code> 分析崩溃日志</h3><p><code>symbolicatecrash</code> 是一个将堆栈地址符号化的脚本 使用Xcode自带的 <code>symbolicatecrash</code> 工具来将 <code>.Crash</code> 和 <code>.dSYM</code> 文件进行符号化,就可以得到详细崩溃的信息。</p>
<p>通过Mac自带的命令行工具解析 <code>Crash</code> 文件需要具备三个文件:</p>
<ol>
<li><code>symbolicatecrash</code> Xcode自带的崩溃分析工具,使用这个工具可以更精确的定位崩溃所在的位置,将0x开头的地址替换为相应的代码和具体行数。</li>
<li>打包应用时产生的 <code>dSYM</code> 文件。</li>
<li>崩溃时产生的 <code>Crash文件</code> ,例如:*.crash</li>
</ol>
<p>解析崩溃信息的时候,可以先在桌面上建立一个Crash文件夹,然后将 <code>.crash</code> 、<code>.dSYM</code> 、<code>symbolicatecrash</code> 放在这个文件夹中,这样进入这个文件夹下,直接一行命令就可以了。</p>
<figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">/<span class="regexp">/ 执行命令开始符号化crash文件</span></span><br><span class="line"><span class="regexp">./symbolicatecrash</span> XX.crash XX.app.dSYM > xx.crash</span><br><span class="line">/<span class="regexp">/ 有时候终端有可能会出现:</span></span><br><span class="line"><span class="regexp">Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash</span> line <span class="number">69</span>.</span><br><span class="line">/<span class="regexp">/ 需要输入下面的命令:</span></span><br><span class="line"><span class="regexp">export DEVELOPER_DIR="/</span>Applications/XCode.app/Contents/Developer<span class="string">"</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">// 解析举例:</span></span><br><span class="line"><span class="string">./symbolicatecrash /Users/username/Desktop/Demoruntime/testSys/ios12Crash.crash /Users/username/Desktop/Demoruntime/testSys/DemoTest.app.dSYM > ios12SysCrash.crash</span></span><br></pre></td></tr></table></figure>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2022/06/02/iOS%20Crash%E6%9D%82%E8%AE%B0/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2018/09/21/Xcode10%E4%B8%AD%E6%97%A7%E7%89%88Reveal%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2018/09/21/Xcode10%E4%B8%AD%E6%97%A7%E7%89%88Reveal%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/" class="post-title-link" itemprop="url">Xcode10中旧版Reveal无法使用解决方法</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2018-09-21 17:31:28" itemprop="dateCreated datePublished" datetime="2018-09-21T17:31:28+08:00">2018-09-21</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2018-09-29 14:47:41" itemprop="dateModified" datetime="2018-09-29T14:47:41+08:00">2018-09-29</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/Reveal/" itemprop="url" rel="index"><span itemprop="name">Reveal</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>升级<code>Xcode10</code>时没有更新到最新版的<code>Reveal</code>会报这个错误,</p>
<figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="symbol">error:</span> target x86_64-apple-ios10.<span class="number">0.0</span> is <span class="keyword">not</span> supported by Reveal Server.</span><br></pre></td></tr></table></figure>
<p>记录一下升级Xcode10时没有更新到最新版的Reveal的同学可以修改一下这里,更改原来断点命令reveal load 为</p>
<figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">expr (Class)NSClassFromString(@<span class="string">"IBARevealLoader"</span>) == <span class="literal">nil</span> ? (void *)dlopen(<span class="string">"/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer"</span>, <span class="number">0x2</span>) : ((void*)<span class="number">0</span>)</span><br></pre></td></tr></table></figure>
<p>这里需要注意一下,如果应用里有多个<code>Reveal</code>,要记得改为最新的,我的应用里就是<code>Reveal-2</code>,</p>
<p>参考自<code>Reveal</code>官网解答: <a target="_blank" rel="noopener" href="http:https://support.revealapp.com/kb/known-issues/breakpoint-integration-of-reveal-15-and-older-is-not-compatible-with-xcode-10">地址</a></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2018/04/10/Dispatch-semaphore/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2018/04/10/Dispatch-semaphore/" class="post-title-link" itemprop="url">Dispatch_semaphore</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2018-04-10 16:27:02" itemprop="dateCreated datePublished" datetime="2018-04-10T16:27:02+08:00">2018-04-10</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2018-06-22 09:58:18" itemprop="dateModified" datetime="2018-06-22T09:58:18+08:00">2018-06-22</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/Dispatch-semaphore/" itemprop="url" rel="index"><span itemprop="name">Dispatch_semaphore</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><code>Dispatch Semaphore</code>是持有计数的信号,该信号是多线程编程中的计数类型信号。在<code>Dispatch Semaphore</code>中使用了计数来实现该功能。计数为0时等待,计数为1或者大于1时放行。</p>
<p>信号量的使用方法比较简单,主要就三个API:<code>create</code>、<code>wait</code>和<code>signal</code>。<br>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2018/04/10/Dispatch-semaphore/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2018/03/09/Mach-O%E5%88%9D%E6%8E%A2/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2018/03/09/Mach-O%E5%88%9D%E6%8E%A2/" class="post-title-link" itemprop="url">Mach-O初探</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2018-03-09 10:20:49" itemprop="dateCreated datePublished" datetime="2018-03-09T10:20:49+08:00">2018-03-09</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2023-10-23 15:00:50" itemprop="dateModified" datetime="2023-10-23T15:00:50+08:00">2023-10-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/Mach-O/" itemprop="url" rel="index"><span itemprop="name">Mach-O</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>Mach-O 是 Apple 系统上(包括 MacOS 以及 iOS)的可执行文件格式,一个Mach-O文件包含:文件头<code>Header</code>、加载命令<code>Load commands</code>、数据区<code>Data</code>包含<code>Segment&Section</code>。</p>
<ul>
<li>Mach-O 头(Header):这里描述了 Mach-O 的 CPU 架构、文件类型以及加载命令等信息</li>
<li>加载命令(Load Command):描述了文件中数据的具体组织结构,不同的数据类型使用不同的加载命令表示</li>
<li>数据区(Data):Data 中每一个段(Segment)的数据都保存在此,段都拥有一个或多个 Section ,用来存放数据和代码。</li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2018/03/09/Mach-O%E5%88%9D%E6%8E%A2/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2018/02/09/Cycript%E4%BD%BF%E7%94%A8/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2018/02/09/Cycript%E4%BD%BF%E7%94%A8/" class="post-title-link" itemprop="url">Cycript使用</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2018-02-09 13:59:13" itemprop="dateCreated datePublished" datetime="2018-02-09T13:59:13+08:00">2018-02-09</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2023-10-23 15:01:25" itemprop="dateModified" datetime="2023-10-23T15:01:25+08:00">2023-10-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/Cycript/" itemprop="url" rel="index"><span itemprop="name">Cycript</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="基本使用"><a href="#基本使用" class="headerlink" title="基本使用"></a>基本使用</h2><ul>
<li>运行cycript</li>
</ul>
<figure class="highlight avrasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="symbol">iPhone:</span>~$ cycript</span><br><span class="line">cy<span class="meta"># </span></span><br></pre></td></tr></table></figure>
<ul>
<li>退出cycript</li>
</ul>
<blockquote>
<p><code>Control+D</code>,来退出<code>Cycript</code></p>
</blockquote>
<ul>
<li>查看当前机器的所有进程</li>
</ul>
<blockquote>
<p>使用命令 <code>ps -e</code>,之后可以看到下面的 QQMusic。</p>
</blockquote>
<p><img src="https://jsd.cdn.zzko.cn/gh/wangnan1082-icloud/ImageResources@main/Cycript-ps-e.1zzl7qusgr28.webp" alt="Cycript-ps-e"></p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2018/02/09/Cycript%E4%BD%BF%E7%94%A8/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2017/12/25/%E4%BD%BF%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%93%8D%E4%BD%9CiOS%E6%A8%A1%E6%8B%9F%E5%99%A8/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2017/12/25/%E4%BD%BF%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%93%8D%E4%BD%9CiOS%E6%A8%A1%E6%8B%9F%E5%99%A8/" class="post-title-link" itemprop="url">使用命令行操作iOS模拟器</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2017-12-25 17:24:48" itemprop="dateCreated datePublished" datetime="2017-12-25T17:24:48+08:00">2017-12-25</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2018-03-16 17:11:59" itemprop="dateModified" datetime="2018-03-16T17:11:59+08:00">2018-03-16</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/%E5%91%BD%E4%BB%A4%E8%A1%8C/" itemprop="url" rel="index"><span itemprop="name">命令行</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="查看当前启动的模拟器"><a href="#查看当前启动的模拟器" class="headerlink" title="查看当前启动的模拟器"></a>查看当前启动的模拟器</h2><blockquote>
<p>xcrun simctl list devices | grep Booted</p>
<p>输出结果:</p>
<p><strong>iPhone 7 (5F0B29B7-4243-41F6-BB57-132ACD9B7A2A) (Booted)</strong></p>
</blockquote>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2017/12/25/%E4%BD%BF%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%93%8D%E4%BD%9CiOS%E6%A8%A1%E6%8B%9F%E5%99%A8/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2017/12/25/%E4%BD%BF%E7%94%A8%20OHHTTPStubs/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2017/12/25/%E4%BD%BF%E7%94%A8%20OHHTTPStubs/" class="post-title-link" itemprop="url">使用 OHHTTPStubs</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2017-12-25 11:05:18" itemprop="dateCreated datePublished" datetime="2017-12-25T11:05:18+08:00">2017-12-25</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2023-10-23 14:47:21" itemprop="dateModified" datetime="2023-10-23T14:47:21+08:00">2023-10-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/OHHTTPStubs/" itemprop="url" rel="index"><span itemprop="name">OHHTTPStubs</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><a target="_blank" rel="noopener" href="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/AliSoftware/OHHTTPStubs">OHHTTPStubs</a> 可以在不需要后端 API 的情况下,在本地对 HTTP 请求进行拦截,返回想要的 <code>json</code> 数据,可以用来编写网络请求的单元测试。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2017/12/25/%E4%BD%BF%E7%94%A8%20OHHTTPStubs/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2017/03/23/Fastlane%20%E4%BD%BF%E7%94%A8%E5%85%A5%E9%97%A8/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2017/03/23/Fastlane%20%E4%BD%BF%E7%94%A8%E5%85%A5%E9%97%A8/" class="post-title-link" itemprop="url">fastlane 使用入门</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2017-03-23 11:05:18" itemprop="dateCreated datePublished" datetime="2017-03-23T11:05:18+08:00">2017-03-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2018-04-19 15:22:29" itemprop="dateModified" datetime="2018-04-19T15:22:29+08:00">2018-04-19</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/fastlane/" itemprop="url" rel="index"><span itemprop="name">fastlane</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="fastlane-简介"><a href="#fastlane-简介" class="headerlink" title="fastlane 简介"></a>fastlane 简介</h1><p><a target="_blank" rel="noopener" href="https://fastlane.tools/">fastlane 官网</a>,<a target="_blank" rel="noopener" href="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/fastlane/fastlane">fastlane 的 github</a>,fastlane命令是一个流程控制的命令行工具(CLI),通过内部集成action和第三方的action完成一系列控制流程。运行fastlane命令行工具,会读取当前目录或者./fastlane目录下的Fastfile配置文件。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2017/03/23/Fastlane%20%E4%BD%BF%E7%94%A8%E5%85%A5%E9%97%A8/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http:https://schema.org/Article" class="post-block" lang="zh-Hans">
<link itemprop="mainEntityOfPage" href="http:https://yoursite.com/2017/03/17/CocoaPods%E5%85%AC%E5%85%B1%E5%BA%93%E7%9A%84%E5%88%9B%E5%BB%BA/">
<span hidden itemprop="author" itemscope itemtype="http:https://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="王楠">
<meta itemprop="description" content="王楠的Blog">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http:https://schema.org/Organization">
<meta itemprop="name" content="王楠的Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2017/03/17/CocoaPods%E5%85%AC%E5%85%B1%E5%BA%93%E7%9A%84%E5%88%9B%E5%BB%BA/" class="post-title-link" itemprop="url">CocoaPods公共库的创建</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2017-03-17 15:19:43" itemprop="dateCreated datePublished" datetime="2017-03-17T15:19:43+08:00">2017-03-17</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2018-09-05 09:58:41" itemprop="dateModified" datetime="2018-09-05T09:58:41+08:00">2018-09-05</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http:https://schema.org/Thing">
<a href="/categories/CocoaPods/" itemprop="url" rel="index"><span itemprop="name">CocoaPods</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="注册CocoaPods账号"><a href="#注册CocoaPods账号" class="headerlink" title="注册CocoaPods账号"></a>注册CocoaPods账号</h2><blockquote>
<figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">/<span class="regexp">/ 注册新的账户和用户名</span></span><br><span class="line"><span class="regexp">pod trunk register [email protected] 'nameABC' --verbose</span></span><br></pre></td></tr></table></figure>
</blockquote>
<blockquote>
<figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">/<span class="regexp">/ 查看已注册信息</span></span><br><span class="line"><span class="regexp">pod trunk me</span></span><br></pre></td></tr></table></figure>
</blockquote>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2017/03/17/CocoaPods%E5%85%AC%E5%85%B1%E5%BA%93%E7%9A%84%E5%88%9B%E5%BB%BA/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>