工作做经常遇到的一些操作!

工作中有时候遇到一些重复的问题,每次百度寻找比较麻烦就特意记录一下!

 

1、允许任何来源  新电脑经常遇到问题

sudo spctl --master-disable

 

2、Mac 10.15安装软件打开提示软件已损坏

   sudo xattr -r -d com.apple.quarantine + 应用程序里APP路径。直接拖到终端就行 eg

sudo xattr -r -d com.apple.quarantine /Applications/Cornerstone.app

 

3、苹果ipa安装包上传工具Transporter第一次使用上传慢问题,第一次使用要下载东西,参考

     https://github.com/LinXunFeng/transporter_fix  介绍:https://www.jianshu.com/p/162ea363d2d6

 

4、Xcode10以上报错: -lstdc++.6.0.9 not found 解决办法:

 

5、git clone 项目的时候下载速度很慢,替换国内镜像网站。把原 URL 中的 github.com 替换为 github.com.cnpmjs.org  其余保持不变

 

原地址 git clone https://github.com/AFNetworking/AFNetworking.git
替换为 git clone https://github.com.cnpmjs.org/AFNetworking/AFNetworking.git

 

  原文链接 https://blog.csdn.net/lemon4869/article/details/106849352

 

6、静态库模拟器运行报错,不支持x86_64;

   解决方式 修改这个选项

 

7、UISearchBar的取消按钮 ”Cancel“ 改中文”取消“  ===> 将info.plist 的 Localization native development region 改为 China

 

8、防止按钮多次点击

1 - (IBAction)ScanCodeAction:(UIButton *)sender forEvent:(UIEvent *)event
2 {
3     UITouch* touchCount = [[event allTouches] anyObject];
4     if (touchCount.tapCount == 1)
5     {
6        //code
7     }
8 }

 

posted @ 2020-08-24 22:39  wq95230  阅读(190)  评论(0编辑  收藏  举报