-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.xml
330 lines (320 loc) · 29.9 KB
/
search.xml
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
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>CocoaPods 相关问题</title>
<url>/2019/03/05/20190305220612-CocoaPodsProblem/</url>
<content><![CDATA[<p>这里记录CocoaPods出现的一些问题和解决方法。</p>
<h1 id="错误一"><a href="#错误一" class="headerlink" title="错误一"></a>错误一</h1><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ gem source -a https://gems.ruby-china.org</span><br><span class="line">Error fetching https://gems.ruby-china.org:</span><br><span class="line"> bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)</span><br></pre></td></tr></table></figure>
<span id="more"></span>
<h2 id="原因"><a href="#原因" class="headerlink" title="原因"></a>原因</h2><p>没有找到对应的路径,最后发现<a href="https://gems.ruby-china.org/">官网</a> 公告域名变了<strong>由 <code>.org</code> 替换为 <code>.com</code></strong></p>
<h2 id="解决方法"><a href="#解决方法" class="headerlink" title="解决方法"></a>解决方法</h2><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">$ gem source -a https://gems.ruby-china.com</span><br></pre></td></tr></table></figure>
<h1 id="错误二"><a href="#错误二" class="headerlink" title="错误二"></a>错误二</h1><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">Error installing pods:active support requires Ruby version >= 2.2.0</span><br></pre></td></tr></table></figure>
<h2 id="原因-1"><a href="#原因-1" class="headerlink" title="原因"></a>原因</h2><p> 当前的 ruby 版本太低, 需要升级ruby 版本</p>
<h2 id="解决方法-1"><a href="#解决方法-1" class="headerlink" title="解决方法"></a>解决方法</h2><p>安装rvm(Ruby版本管理器)</p>
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">// 判断是否安装rvm</span><br><span class="line">$ rvm -v </span><br><span class="line">command not found: rvm (如果显示这个是未安装,显示的是版本号请跳过这一部分直接进入安装ruby)</span><br><span class="line">// 安装rvm</span><br><span class="line">$ curl -L get.rvm.io | bash -s stable</span><br><span class="line"></span><br><span class="line">// 使刚添加的命令生效</span><br><span class="line">source ~/.rvm/scripts/rvm</span><br><span class="line"></span><br><span class="line">// 参考是否安装成功</span><br><span class="line">$ rvm -v</span><br><span class="line">rvm 1.29.4 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]</span><br></pre></td></tr></table></figure>
<p>安装ruby</p>
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">// 查看版本列表</span><br><span class="line">$ rvm list known</span><br><span class="line">[ruby-]1.8.6[-p420]</span><br><span class="line">[ruby-]1.8.7[-head] # security released on head</span><br><span class="line">[ruby-]1.9.1[-p431]</span><br><span class="line">[ruby-]1.9.2[-p330]</span><br><span class="line">[ruby-]1.9.3[-p551]</span><br><span class="line">[ruby-]2.0.0[-p648]</span><br><span class="line">[ruby-]2.1[.10]</span><br><span class="line">[ruby-]2.2[.10]</span><br><span class="line">[ruby-]2.3[.7]</span><br><span class="line">[ruby-]2.4[.4]</span><br><span class="line">[ruby-]2.5[.1]</span><br><span class="line">[ruby-]2.6[.0-preview2]</span><br><span class="line">ruby-head</span><br><span class="line">...</span><br><span class="line"></span><br><span class="line">// 安装 ruby(这里安装的是2.5.1)</span><br><span class="line">$ rvm install 2.5.1</span><br><span class="line"></span><br><span class="line">// 查看安装</span><br><span class="line">$ ruby -v</span><br><span class="line">ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]</span><br></pre></td></tr></table></figure>
<h1 id="错误三"><a href="#错误三" class="headerlink" title="错误三"></a>错误三</h1><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">/Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)</span><br><span class="line"> from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path'</span><br><span class="line"> from /usr/local/bin/pod:22:in `<main>’</span><br></pre></td></tr></table></figure>
<h2 id="原因-2"><a href="#原因-2" class="headerlink" title="原因"></a>原因</h2><p><code>ruby</code>更新版本后导致<code>pod</code>找不到依赖的版本导致的</p>
<h2 id="解决方法-2"><a href="#解决方法-2" class="headerlink" title="解决方法"></a>解决方法</h2><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">// 查找pod 路径</span><br><span class="line">$ where pod</span><br><span class="line">/usr/local/bin/pod</span><br><span class="line"></span><br><span class="line">// 删除pod的执行文件</span><br><span class="line">$ sudo rm -rf /usr/local/bin/pod</span><br><span class="line">Password:</span><br><span class="line"></span><br><span class="line">// 查看 gem 依赖的cocoapods</span><br><span class="line">$ gem list </span><br><span class="line"></span><br><span class="line">*** LOCAL GEMS ***</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">activesupport (4.2.6)</span><br><span class="line"></span><br><span class="line">bigdecimal (1.2.7, default: 1.2.0)</span><br><span class="line"></span><br><span class="line">CFPropertyList (2.3.3, 2.2.8)</span><br><span class="line"></span><br><span class="line">claide (1.0.1, 1.0.0)</span><br><span class="line"></span><br><span class="line">cocoa (0.1.6)</span><br><span class="line"></span><br><span class="line">cocoapods (1.1.1)</span><br><span class="line"></span><br><span class="line">cocoapods-core (1.1.1, 1.0.1)</span><br><span class="line"></span><br><span class="line">cocoapods-deintegrate (1.0.1, 1.0.0)</span><br><span class="line"></span><br><span class="line">cocoapods-downloader (1.1.2, 1.1.1, 1.0.1)</span><br><span class="line"></span><br><span class="line">cocoapods-plugins (1.0.0)</span><br><span class="line"></span><br><span class="line">cocoapods-search (1.0.0)</span><br><span class="line"></span><br><span class="line">cocoapods-stats (1.0.0)</span><br><span class="line"></span><br><span class="line">cocoapods-trunk (1.1.1, 1.0.0)</span><br><span class="line"></span><br><span class="line">cocoapods-try (1.1.0, 1.0.0)</span><br><span class="line"></span><br><span class="line">colored (1.2)</span><br><span class="line"></span><br><span class="line">concurrent-ruby (1.0.2)</span><br><span class="line"></span><br><span class="line">escape (0.0.4)</span><br><span class="line"></span><br><span class="line">ffi (1.9.14)</span><br><span class="line"></span><br><span class="line">fourflusher (2.0.1, 2.0.0, 0.3.2)</span><br><span class="line"></span><br><span class="line">fuzzy_match (2.0.4)</span><br><span class="line"></span><br><span class="line">gh_inspector (1.0.2)</span><br><span class="line"></span><br><span class="line">i18n (0.7.0)</span><br><span class="line"></span><br><span class="line">io-console (default: 0.4.2)</span><br><span class="line"></span><br><span class="line">json (default: 1.7.7)</span><br><span class="line"></span><br><span class="line">libxml-ruby (2.6.0)</span><br><span class="line"></span><br><span class="line">minitest (5.9.0, default: 4.3.2)</span><br><span class="line"></span><br><span class="line">molinillo (0.5.1, 0.4.5)</span><br><span class="line"></span><br><span class="line">nap (1.1.0)</span><br><span class="line"></span><br><span class="line">netrc (0.7.8)</span><br><span class="line"></span><br><span class="line">nokogiri (1.5.6)</span><br><span class="line"></span><br><span class="line">pods (0.0.1)</span><br><span class="line"></span><br><span class="line">psych (default: 2.0.0)</span><br><span class="line"></span><br><span class="line">rake (default: 0.9.6)</span><br><span class="line"></span><br><span class="line">rdoc (default: 4.0.0)</span><br><span class="line"></span><br><span class="line">rubygems-update (2.6.6)</span><br><span class="line"></span><br><span class="line">sqlite3 (1.3.7)</span><br><span class="line"></span><br><span class="line">test-unit (default: 2.0.0.0)</span><br><span class="line"></span><br><span class="line">thread_safe (0.3.5)</span><br><span class="line"></span><br><span class="line">tzinfo (1.2.2)</span><br><span class="line"></span><br><span class="line">xcodeproj (1.3.3, 1.1.0)</span><br><span class="line"></span><br><span class="line">// 删除依赖的 cocoapods (这里删除的和上面👆要一致)</span><br><span class="line">$ sudo gem uninstall cocoapods-core -v 1.1.1</span><br><span class="line">$ sudo gem uninstall cocoapods -v 1.1.1</span><br><span class="line">$ sudo gem install cocoapods</span><br><span class="line"></span><br><span class="line">// 安装pod</span><br><span class="line">$ sudo gem install -n /usr/local/bin cocoapods</span><br><span class="line">$ pod setup</span><br></pre></td></tr></table></figure>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>CocoaPods</tag>
</tags>
</entry>
<entry>
<title>Apple 审核回复模版</title>
<url>/2021/03/20/Apple-%E5%AE%A1%E6%A0%B8%E5%9B%9E%E5%A4%8D%E6%A8%A1%E7%89%88/</url>
<content><![CDATA[<p>Dear Apple Reviewer:</p>
<p>Thank you for your notification.<br>I have received the review results of your company and I would like to make the following response:</p>
<p>….</p>
<p>Please review our app again and give it a pass. Thank you very much.<br>Best regards.</p>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>审核</tag>
</tags>
</entry>
<entry>
<title>Reveal 调试应用</title>
<url>/2021/03/20/Reveal-%E8%B0%83%E8%AF%95%E5%BA%94%E7%94%A8/</url>
<content><![CDATA[<h2 id="前提"><a href="#前提" class="headerlink" title="前提"></a>前提</h2><ol>
<li>Xcode 9.4.1</li>
<li>Reveal 13(10035)</li>
</ol>
<h2 id="模拟器调试"><a href="#模拟器调试" class="headerlink" title="模拟器调试"></a>模拟器调试</h2><ol>
<li><p>首先安装 <code>Debugger Commands</code><br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b083408ae2aca6?w=1958&h=730&f=jpeg&s=179233"></p>
</li>
<li><p>成功后<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b083408b6c9c0e?w=1796&h=616&f=jpeg&s=163542"></p>
</li>
</ol>
<p><strong>这里只介绍最简单的断点调试</strong></p>
<ol>
<li>添加断点<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b083408b883232?w=900&h=1608&f=jpeg&s=187569"></li>
</ol>
<ol start="2">
<li><p>填写信息<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b083408b751b5b?w=1542&h=1590&f=jpeg&s=415523"></p>
</li>
<li><p>为了方便以后使用把断点加入到user<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b083408b8317d1?w=1556&h=1284&f=jpeg&s=297881"></p>
</li>
<li><p>成功后是这样的<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b083408b952f2b?w=894&h=1724&f=jpeg&s=118829"></p>
</li>
<li><p>运行后注意看控制台里的信息<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b08340d32a959d?w=1698&h=76&f=jpeg&s=49347"></p>
</li>
</ol>
<h2 id="真机调试"><a href="#真机调试" class="headerlink" title="真机调试"></a>真机调试</h2><ol>
<li><p>获取 <code>RevealServer.framework</code><br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b08340d3219a92?w=1814&h=574&f=jpeg&s=194129"></p>
</li>
<li><p>拷贝一份到桌面<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b08340d7638fc4?w=1210&h=708&f=jpeg&s=144741"></p>
</li>
<li><p>拖拽到项目中<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b08340e946df76?w=1480&h=848&f=jpeg&s=136967"></p>
</li>
<li><p>这个时候运行项目会报错<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b0834155280503?w=1690&h=124&f=jpeg&s=86447"></p>
</li>
<li><p>解决错误<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b08341555cf772?w=1762&h=1646&f=jpeg&s=342041"></p>
</li>
<li><p>添加包<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b08341558ee6f7?w=834&h=912&f=jpeg&s=100541"></p>
</li>
<li><p>成功<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b0834155817c35?w=3018&h=1978&f=jpeg&s=315793"></p>
</li>
</ol>
<p>注意:真机调试也要有模拟器调试的断点存在</p>
<h2 id="越狱调试"><a href="#越狱调试" class="headerlink" title="越狱调试"></a>越狱调试</h2><p>这个<a href="https://blog.csdn.net/hello_hwc/article/details/69365095">文章</a>写得比较详细。</p>
<h2 id="参考文章"><a href="#参考文章" class="headerlink" title="参考文章"></a>参考文章</h2><p><a href="https://www.cnblogs.com/baitongtong/p/5863938.html">Reveal使用教程</a><br><a href="https://blog.csdn.net/hello_hwc/article/details/69365095">iOS 10越狱和Reveal 8分析三方App UI框架教程</a></p>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>Reeveal</tag>
</tags>
</entry>
<entry>
<title>brew 基本使用</title>
<url>/2021/03/20/brew-%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8/</url>
<content><![CDATA[<h2 id="更新-brew"><a href="#更新-brew" class="headerlink" title="更新 brew"></a>更新 brew</h2><p><code>brew update</code></p>
<h2 id="更新包"><a href="#更新包" class="headerlink" title="更新包"></a>更新包</h2><ul>
<li>查询需要更新的包 <code>brew outdated</code></li>
<li>更新所有包 <code>brew upgrade</code></li>
<li>更新指定包 <code>brew upgrade $name</code></li>
</ul>
<h2 id="清理旧版本"><a href="#清理旧版本" class="headerlink" title="清理旧版本"></a>清理旧版本</h2><ul>
<li>清除所有包的旧版本 <code>brew cleanup</code></li>
<li>清除指定包的旧版本 <code>brew cleanup $name</code></li>
<li>查看可清除的旧版本 <code>brew cleanup -n</code></li>
</ul>
<h2 id="锁定不想更新的包"><a href="#锁定不想更新的包" class="headerlink" title="锁定不想更新的包"></a>锁定不想更新的包</h2><ul>
<li>锁定某个包 <code>brew pin $name</code></li>
<li>取消锁定 <code>brew pin $name</code></li>
</ul>
<h2 id="查询库相关信息"><a href="#查询库相关信息" class="headerlink" title="查询库相关信息"></a>查询库相关信息</h2><ul>
<li>查询某个包的信息 <code>brew info $name</code></li>
<li>查询所有安装包 <code>brew info</code></li>
<li>查询包的依赖关系 <code>brew deps</code></li>
<li>查看已安装的包的依赖,树形显示 <code>brew deps --installed --tree</code></li>
<li>检查 <code>brew doctor</code></li>
<li>打开应用网站 <code>brew home $name</code></li>
</ul>
]]></content>
<categories>
<category>brew</category>
</categories>
</entry>
<entry>
<title>git clone 使用 ssh 为什么还要输入密码</title>
<url>/2021/03/20/git-clone-%E4%BD%BF%E7%94%A8-ssh-%E4%B8%BA%E4%BB%80%E4%B9%88%E8%BF%98%E8%A6%81%E8%BE%93%E5%85%A5%E5%AF%86%E7%A0%81/</url>
<content><![CDATA[<p>用 ssh 克隆代码后,push 和 pull 都需要输入密码。这是因为我们在最开始创建公私钥的时候,设置了访问私钥需要密码导致的。</p>
<p>我们可以进入 ~/.ssh 目录下执行这个代码进行密码修改:</p>
<p><code>ssh-keygen -f id_rsa -p</code></p>
<p>然后先输入原密码,在设置<strong>新密码</strong>的时候<strong>回车</strong>就可以,确认密码一样回车。</p>
]]></content>
<categories>
<category>问题</category>
</categories>
<tags>
<tag>git</tag>
</tags>
</entry>
<entry>
<title>iOS 上线前准备的东西</title>
<url>/2021/03/20/iOS-%E4%B8%8A%E7%BA%BF%E5%89%8D%E5%87%86%E5%A4%87%E7%9A%84%E4%B8%9C%E8%A5%BF/</url>
<content><![CDATA[<h3 id="App-信息"><a href="#App-信息" class="headerlink" title="App 信息"></a>App 信息</h3><ol>
<li>名称 <del>25字</del></li>
<li>隐私政策网址(URL) <code>链接至您的隐私政策的网址 (URL)。所有 App 都必须提供隐私政策。</code></li>
<li>副标题 <del>30字</del> <code>这是您 App 的一份摘要,它会显示在 iOS 11 或更高版本的 App Store 以及 macOS Mojave 或更高版本的 Mac App Store 中的 App 名称下方。</code></li>
<li>分级 <code>此 App 分级将在所有平台的 App Store 中显示。此分级根据分级限制最高的 App 平台而定</code></li>
<li>主要语言 <code>如果某个 App Store 地区没有提供本地化的 App 信息,那么 App 信息将以主要语言呈现。了解更多</code></li>
<li>类别 <code>最能准确描述此 App 的类别</code></li>
</ol>
<h3 id="版本信息"><a href="#版本信息" class="headerlink" title="版本信息"></a>版本信息</h3><ol>
<li>App 预览和屏幕快照 <code>屏幕快照必须为 JPG 或 PNG 格式,且必须采用 RGB 颜色空间。App 预览必须为 M4V、MP4 或 MOV 格式,且不能超过 500 MB。了解更多</code></li>
<li>宣传文本 <del>170字</del> <code>宣传文本可使您在无需提交更新请求的情况下,通知 App Store 访客当前最新的 App 功能。如果客户的设备运行 iOS 11 或更高版本,以及 macOS 10.13 或更高版本,那么在 App Store 中,宣传文本会显示在您的 App 描述上方。</code></li>
<li>关键词 <del>100字</del> <code>添加一个或多个关键词以描述您的 App。关键词将使 App Store 搜索结果更加准确。关键词之间用英文逗号或中文逗号(或两者混合使用)分隔。</code></li>
<li>描述 <del>4000字</del><code>对您 App 的描述,用以详细说明特性和功能。它还将用于您的 Apple Watch App。</code></li>
<li>技术支持网址(URL) <code>您的 App 技术支持信息网址(URL)。该网址(URL)将会在 App Store 中显示。</code></li>
<li>营销网址(URL) <del>可不填</del><code>您的 App 营销信息网址(URL)。该网址(URL)会在 App Store 中显示。</code></li>
</ol>
<h3 id="App-综合信息"><a href="#App-综合信息" class="headerlink" title="App 综合信息"></a>App 综合信息</h3><ol>
<li>版权 <code>拥有您的 App 专有权的人员或实体的名称,前面是获得权利的年份(例如“2008 Acme Inc”)。请勿提供网址(URL)。</code></li>
<li>商务代表联系信息 <code>您可以为您的 App 在韩国 App Store 中提供额外信息,这一额外信息只会显示在韩国 App Store 中。</code></li>
<li>路由 App 覆盖地区文件 <del>可不填</del> <code>指定您的 App 所支持的区域。文件格式必须为 .geojson 并且只能包含一个 MultiPolygon 元素。</code></li>
</ol>
<h3 id="App-审核信息"><a href="#App-审核信息" class="headerlink" title="App 审核信息"></a>App 审核信息</h3><ol>
<li>登录信息 <code>此用户名和密码可让我们登录您的 App 以审查所有功能。如果用户使用社交媒体登录,请提供我们可以使用的帐户信息。该帐户信息须有效,并且在审核期间保持可用的状态。</code></li>
<li>备注 <code>对审核过程会有所帮助的、有关您 App 的额外信息, 包括在测试中需要的 App 特别设置等。</code></li>
<li>附件 <code>您可以附加特定的 App 文稿、演示视频和 其他内容,以防止 App 审核延期。请确保 您的文件使用下列扩展名:.pdf、.doc、 .docx、.rtf、.pages、.xls、.xlsx、 .numbers、.zip、.rar、.plist、.crash、 .jpg、.png、.mp4 或 .avi。</code></li>
<li>联系信息 <code>当 App 审核团队有任何问题或需要额外信息时, 您所在机构的联系人信息。</code></li>
</ol>
<h3 id="填写说明"><a href="#填写说明" class="headerlink" title="填写说明"></a>填写说明</h3><ul>
<li>测试账户</li>
<li>支付说明</li>
</ul>
]]></content>
<categories>
<category>iOS</category>
</categories>
</entry>
<entry>
<title>下载应用网站</title>
<url>/2021/03/20/%E4%B8%8B%E8%BD%BD%E5%BA%94%E7%94%A8%E7%BD%91%E7%AB%99/</url>
<content><![CDATA[<ul>
<li><a href="https://xclient.info/">xclient</a></li>
<li><a href="https://www.digit77.com/">digit77</a></li>
<li><a href="https://www.macwk.com/">macwk</a></li>
<li><a href="https://www.macappstorrent.com/">macappstorrent</a></li>
<li><a href="https://mac-torrent-download.net/">mac-torrent</a></li>
<li><a href="http://www.sdifen.com/">sdifen</a></li>
<li><a href="https://www.waitsun.com/">waitsun</a></li>
<li><a href="https://www.macxin.com/">macxin</a></li>
<li><a href="https://www.94afx.com/">94afx</a></li>
</ul>
]]></content>
<categories>
<category>网站</category>
</categories>
<tags>
<tag>mac 应用下载</tag>
</tags>
</entry>
<entry>
<title>在 Atom 中使用正则匹配</title>
<url>/2021/03/20/%E5%9C%A8Atom-%E4%B8%AD%E4%BD%BF%E7%94%A8%E6%AD%A3%E5%88%99%E5%8C%B9%E9%85%8D/</url>
<content><![CDATA[<p>JSON原始数据(只拿取小部分数据进行演示):</p>
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">[{</span><br><span class="line"> <span class="attr">"image_id"</span>: <span class="string">"1"</span>,</span><br><span class="line"> <span class="attr">"image_url"</span>: <span class="string">"图片URL"</span>,</span><br><span class="line"> <span class="attr">"author_name"</span>: <span class="string">"作者名称"</span>,</span><br><span class="line"> <span class="attr">"author_icon"</span>: <span class="string">"作者头像"</span></span><br><span class="line">},</span><br><span class="line">{</span><br><span class="line"> <span class="attr">"image_id"</span>: <span class="string">"2"</span>,</span><br><span class="line"> <span class="attr">"image_url"</span>: <span class="string">"图片URL"</span>,</span><br><span class="line"> <span class="attr">"author_name"</span>: <span class="string">"作者名称"</span>,</span><br><span class="line"> <span class="attr">"author_icon"</span>: <span class="string">"作者头像"</span></span><br><span class="line">},</span><br><span class="line">{</span><br><span class="line"> <span class="attr">"image_id"</span>: <span class="string">"3"</span>,</span><br><span class="line"> <span class="attr">"image_url"</span>: <span class="string">"图片URL"</span>,</span><br><span class="line"> <span class="attr">"author_name"</span>: <span class="string">"作者名称"</span>,</span><br><span class="line"> <span class="attr">"author_icon"</span>: <span class="string">"作者头像"</span></span><br><span class="line">}]</span><br></pre></td></tr></table></figure>
<h2 id="需求"><a href="#需求" class="headerlink" title="需求"></a>需求</h2><p>我们希望把JSON原始数据中所有<code>image_id</code>的<strong>字符串类型的</strong>值都替换为<strong>数值类型</strong>, 结果数据如下:</p>
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">[{</span><br><span class="line"> <span class="attr">"image_id"</span>: <span class="number">1</span>,</span><br><span class="line"> <span class="attr">"image_url"</span>: <span class="string">"图片URL"</span>,</span><br><span class="line"> <span class="attr">"author_name"</span>: <span class="string">"作者名称"</span>,</span><br><span class="line"> <span class="attr">"author_icon"</span>: <span class="string">"作者头像"</span></span><br><span class="line">},</span><br><span class="line">{</span><br><span class="line"> <span class="attr">"image_id"</span>: <span class="number">2</span>,</span><br><span class="line"> <span class="attr">"image_url"</span>: <span class="string">"图片URL"</span>,</span><br><span class="line"> <span class="attr">"author_name"</span>: <span class="string">"作者名称"</span>,</span><br><span class="line"> <span class="attr">"author_icon"</span>: <span class="string">"作者头像"</span></span><br><span class="line">},</span><br><span class="line">{</span><br><span class="line"> <span class="attr">"image_id"</span>: <span class="number">3</span>,</span><br><span class="line"> <span class="attr">"image_url"</span>: <span class="string">"图片URL"</span>,</span><br><span class="line"> <span class="attr">"author_name"</span>: <span class="string">"作者名称"</span>,</span><br><span class="line"> <span class="attr">"author_icon"</span>: <span class="string">"作者头像"</span></span><br><span class="line">}]</span><br></pre></td></tr></table></figure>
<h2 id="实现"><a href="#实现" class="headerlink" title="实现"></a>实现</h2><ol>
<li><p>选择替换中的正则替换<br><img src="https://user-gold-cdn.xitu.io/2019/5/30/16b082f7f5618265?w=2082&h=250&f=jpeg&s=79521"></p>
</li>
<li><p>输入查询条件<br><code>"image_id": "(\d+)"</code> </p>
</li>
</ol>
<p><strong>注意</strong>: <code>\d+</code> 必须要用 <code>()</code>, 应为替换的时候要用的里面的数字<br>3. 输入替换条件<br><code>"image_id": $1</code><br><strong>注意</strong>: <code>$1</code> 即为输入条件<code>()</code>内的参数, 如果有多个参数查询条件用<code>()</code>, 替换时变量依次对应<code>$1、$2、$3...</code></p>
]]></content>
<categories>
<category>问题</category>
</categories>
<tags>
<tag>正则</tag>
</tags>
</entry>
<entry>
<title>如何在在命令行打印frame</title>
<url>/2021/03/20/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%89%93%E5%8D%B0frame/</url>
<content><![CDATA[<h1 id="如何在在命令行打印frame"><a href="#如何在在命令行打印frame" class="headerlink" title="如何在在命令行打印frame"></a>如何在在命令行打印frame</h1><ol>
<li>在根目录创建 <code>.lldbinit</code> 文件夹,如果已存请在忽略这一步<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">touch ~/.lldbinit</span><br></pre></td></tr></table></figure></li>
<li>在<code>.lldbinit</code>导入<code>UIKit</code>, 执行下面两句话<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">echo display @import UIKit >> ~/.lldbinit</span><br><span class="line">echo target stop-hook add -o \"target stop-hook disable\" >> ~/.lldbinit</span><br></pre></td></tr></table></figure></li>
</ol>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>frame</tag>
</tags>
</entry>
<entry>
<title>快速断点到当前方法内部的 return 返回</title>
<url>/2021/03/20/%E5%BF%AB%E9%80%9F%E6%96%AD%E7%82%B9%E5%88%B0%E5%BD%93%E5%89%8D%E6%96%B9%E6%B3%95%E5%86%85%E9%83%A8%E7%9A%84return-%E8%BF%94%E5%9B%9E/</url>
<content><![CDATA[<ol>
<li>首先在当前方法开始处打断电</li>
<li><code>br set -p return</code></li>
</ol>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>断点</tag>
</tags>
</entry>
<entry>
<title>显示 Xcode build 时间</title>
<url>/2021/03/20/%E6%98%BE%E7%A4%BA-Xcode-build-%E6%97%B6%E9%97%B4/</url>
<content><![CDATA[<ol>
<li><code>defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES</code> 需要重启 Xcode</li>
<li><code>Product->Perform Action->Build With Timing Summary</code> 显示详细的时间</li>
</ol>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>Xcode</tag>
</tags>
</entry>
<entry>
<title>终端如何进行代理</title>
<url>/2021/03/20/%E7%BB%88%E7%AB%AF%E5%A6%82%E4%BD%95%E8%BF%9B%E8%A1%8C%E4%BB%A3%E7%90%86/</url>
<content><![CDATA[<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">export http_proxy=http://127.0.0.1:59400 </span><br><span class="line">export https_proxy=$http_proxy</span><br><span class="line">export ftp_proxy=$http_proxy</span><br><span class="line">export rsync_proxy=$http_proxy</span><br><span class="line">export no_proxy="localhost,127.0.0.1,.dade.com"</span><br></pre></td></tr></table></figure>
<p><strong>59400</strong> 为自己代理端口</p>
]]></content>
<categories>
<category>问题</category>
</categories>
<tags>
<tag>terminal</tag>
</tags>
</entry>
<entry>
<title>用断点判断内存泄漏</title>
<url>/2021/03/20/%E7%94%A8%E6%96%AD%E7%82%B9%E5%88%A4%E6%96%AD%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F/</url>
<content><![CDATA[<p><a href="https://sarunw.com/posts/easy-way-to-detect-retain-cycle-in-view-controller/">用断点判断内存泄漏</a></p>
<table>
<thead>
<tr>
<th>Field</th>
<th>Value</th>
</tr>
</thead>
<tbody><tr>
<td>Symbol</td>
<td>-[UIViewController dealloc]</td>
</tr>
<tr>
<td>Module</td>
<td>Leave blank or UIKitCore</td>
</tr>
<tr>
<td>Action: Sound</td>
<td>pop or whatever sound you like</td>
</tr>
<tr>
<td>Action: Log Message</td>
<td>— dealloc @(id)[$arg1 description]@ or what ever you want to print in debug consoleOptions</td>
</tr>
</tbody></table>
]]></content>
<categories>
<category>iOS</category>
</categories>
<tags>
<tag>断点,内存泄露</tag>
</tags>
</entry>
</search>