自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

C

没有设计和逻辑头脑的工程师

  • 博客(452)
  • 资源 (2)
  • 收藏
  • 关注

原创 /Users/Tom/Library/Developer/CoreSimulator/Devices/E2892FEA-8FEC-4638-A704-1260B5A79CB1/data.

运行模拟器报错:解决方案: 退出模拟器,Xcode,打开iTerm/终端:

2024-12-27 16:08:57 339 1

原创 ios配置删除项目生成scene、mainStoryboard、ViewController,使用纯代码编写。

1.将SceneDelegate、ViewController、Main.stroryboard文件删除。4.Build Settings里的Main Storyboard file base name设置为空。3.删除Info里面的Application Scene Mainifest。2.在AppDelegate中删除Scene相关代码。5.下列方法输出以下。

2024-12-26 17:11:19 320

原创 Mac 查询IP配置,网络代理

3.取消代理,通过在终端执行以下命令,可以取消。

2024-12-25 14:09:20 763

转载 warning: templates not found in /usr/local/git/share/git-core/templates

在第一条指令输入后,需要输入此Mac的密码。

2024-12-24 16:42:07 330

原创 Info.plist contained no UIScene configuration dictionary (looking for configura

在info.plist文件中添加Application Scene Manifest,输入时Xcode会提示直接生成即可,就不会有警告了。Scene Configuration的items设置为0。

2024-12-23 18:45:53 877

原创 Xcode 如果swift3.0过渡到swift4.0或者更高

第一步:Project ► (Select Your Project Target) ► Build Settings ► (Type 'swift' in Searchbar) Swift Compiler Language ► Swift Language Version ► Click on Language list to open it第二步:Xcode -> Edit -> Convert -> To Current Swift Syntax......

2022-04-14 10:15:51 2719

原创 Swift删除SceneDelegate

1、删除SceneDelegate.swift文件2、删除Info.plist的ApplicationSceneManifest属性结构3、修改AppDelegate.swift文件删除UISceneSession Lifecycle 的两个方法,然后在didFinishLaunchingWithOptions内创建自己的window和rootViewController...

2022-03-30 16:54:52 3106

原创 GitHub代码总是拉取失败

问题一:error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60解决:一般是由于大文件过大,curl的postBuffer默认值太小,增大缓存配置就好了git config --global http.postBuffer 1048576000问题二:error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno

2022-03-23 10:58:14 1324

原创 SSL_ERROR_SYSCALL in connection to github.com:443

首先打开你的 git 配置文件。vi ~/.gitconfig是否设置了[http]或[https],如果没有的话git config --global --unset http.proxygit config --global --unset https.proxy我曾经设置过代理,所有更改本地端口和配置。最后关掉vpn,再次运行你的命令。...

2022-03-23 10:40:00 1308 1

转载 踩坑Xcode 10之New Build System

Xcode10 Version 10.0 (10A255)发布,笔者第一时间升级。很显然使用的过程中出现了不少问题,相信大家都有所耳闻,最典型的就是libstdc++.6.0.9问题,网上已经有不少方法了,这里就不多说了。遇到的问题除了这个问题之外,笔者还遇到了build system的问题。在Xcode菜单栏选择File-- Workspace Setting就会出现如下的界面...

2022-03-22 14:54:57 766

原创 码云使用方式

下载安装Git这里选择的是客户端安装版,地址:https://git-scm.com/download/win。 一直下一步即可,安装完成后,桌面右键如下:Git GUI Here(客户端) 和GIT Batch Here(终端)本机生成公钥在Git终端依次输入:1、cd ~/.ssh,显示 bash: cd: /c/Users/y/.ssh: No such file or di...

2022-03-22 14:53:21 155

转载 cocoaPods多版本安装

一、前言公司的项目需要特定的cocopods版本才能正常集成,用其他版本运行会报错,但再做新项目时必须要最新的cocopods版本才行,所以每次都是卸了重装cocopods,很是麻烦,消耗了大量的时间。于是研究了一下自由切换pod版本的功能。以下之前的删除重装的方法列出目前gem中安装的所有Cocoapods的组件gem list --local | grep cocoapods可能会看到这样的命令行输出cocoapods (1.5.3)cocoapods-core (1

2022-03-22 14:49:08 2312

转载 super init isn‘t called on all paths before returning from initializer

我试图创建Swift编程的继承功能。我创建了ViewController超级类。然后我创建了另一个类作为ViewControllerA超类的子类名ViewControllerViewController类:import UIKitclass ViewController: UIViewController { //: public variables var area:...

2022-03-22 14:46:18 1055

原创 pod install 失败问题

第一种:fatal: 无法访问 'https://github.com/p-rob/Moya-ObjectMapper.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443解决:git config --global --add remote.origin.proxy ""然后继续 podinstall

2022-03-22 12:26:37 914 1

原创 安装cocosPod 失败的解决办法

第一种安装时不管用:sudo gem install cocoapods报错ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c/System/Library/Frameworks/Ruby.framework/Versions/.

2022-03-22 10:51:12 1181

原创 github提示Permission denied (publickey),如何才能解决?

解决方案首先,清除所有的key-pairssh-add -Drm -r ~/.ssh删除你在github中的public-key重新生成ssh密钥对ssh-keygen -t rsa -C "xxx@xxx.com"chmod 0700 ~/.sshchmod 0600 ~/.ssh/id_rsa*接下来正常操作在github上添加公钥public-key:1、首先在你的终端运行xclip -sel c ~/.ssh/id_rsa.pub或者cat ~/.ssh/id_rsa

2021-03-30 11:22:43 1396

原创 cocoapod pod setup命令

最新版的MacOS Catalina系统命令行执行pod setup命令直接结束啦;git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk或者(国内镜像)git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git ~/.cocoapods/repos/trunk目录结构见下图,如果不是就自己手动移动一下如果还不行//

2021-03-29 17:39:20 739

原创 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

问题curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方式:DNS添加114.114.114.114或者8.8.8.8就好了。

2021-03-29 17:29:19 389

原创 curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

问题:curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused解决方式在终端输入export -p,如果发现有ftp_proxy、http_proxy、https_proxy、all_proxy,那么本解决方法就是适用于你!你需要在终端输入以下all_proxy=""http_proxy="" https_proxy=""再次输入export -p,结果应该如下...

2021-03-29 17:24:40 1507

原创 应用程序已损坏,请移到废纸篓!

问题:应用程序已损坏,请移到废纸篓!解决如下:sudo xattr -rd com.apple.quarantine /Applications/name.app

2021-03-29 17:11:26 178

原创 jazzy生成Swift API文档

安装 jazzysudo gem install jazzycd 你项目的文件夹(到xcodeproj文件目录)生成 html 文件在项目目录下其他 jazzy 命令jazzy --clean --author MyName --author_url https://mydomain.com/ --xcodebuild-arguments -workspace,My-App.xcworkspace,-scheme,My-App --output docs/swif

2020-12-11 16:50:37 455

原创 Homebrew 安装不同版本

1、安装Homebrewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"中途输入mac密码就OK1.2 检测是否安装成功brew -v注意1、homebrew的命令是以brew开头2、homebrew 的默认安装目录为 /usr/local3、通过 brew安装的程序都会默认安装到 /usr/local/Cellars/程序名/版本号/ 目录下4、home

2020-12-11 16:24:55 901

原创 jazzy的使用

安装jazzy $ sudo gem install jazzy·····Parsing documentation for xcinvoke-0.3.0Installing ri documentation for xcinvoke-0.3.0Parsing documentation for jazzy-0.10.0Installing ri documentation for jazzy-0.10.0Done installing documentation for mu.

2020-12-08 15:02:08 5032

原创 error: command line tools are already installed, use “Software Update“ to install update

sudo rm -rf /Library/Developer/CommandLineToolsxcode-select --install

2020-12-08 14:44:04 1933

原创 Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm

在项目中1.Xcode -> Project -> Build settings -> Architectures -> Excluded architectures 添加arm642.Pod -> Project -> Build settings -> Architectures -> Excluded architectures 添加arm64再次打包,解决!...

2020-11-27 14:52:42 557

原创 升级到macOS Big Sur, 终端 cocoapod 不能使用?

1.首先 升级Xcode升级到12.0以上。2.然后终端运行sudo gem install -n /usr/local/bin cocoapods这个是macOS Big Sur系统还不够完善兼容的问题造成的。

2020-11-27 13:41:14 1143

原创 App发布---ITMS-90809: Deprecated API Usage

ITMS-90809: Deprecated API Usage ``问题:ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebvi

2020-11-20 16:47:58 464 1

原创 App发布,为什么有时候,我明明上传成功了,但是构建中心不显示?

从2019年春季开始,所有提交给App Store的用户数据访问应用程序都需要包含一个目的字符串。如果您使用的是外部库或SDK,它们可能会引用需要目的字符串的API。当你的应用程序可能不使用这些API时,仍然需要一个目的字符串。}}}如果你在构建版本的时候,明明打包成功,也上传成功了,但是iTunes活动里面就是没有构建成功的版本,或者刚开始有,但是过一会就没有了。原因就是出自权限的问题,因为iOS 10以后,苹果对隐私信息和权限的保护更加注重了。如果上传的应用中需要访问用户的隐私,则必须在plist

2020-11-18 13:27:10 3140

原创 error: Abort trap: 6 (in target ‘xx‘ from project ‘xx‘)

error: Abort trap: 6 (in target 'xx' from project 'xx')解决方法:项目设置里选择Build settings -> Swift Compiler - code generation -> Optimization Level将Optimization Level设置为Optimize for Size [-Osize]

2020-07-14 14:45:23 2240

原创 v2-ui配置

1.安装 v2-ray面板bash <(curl -Ls https://blog.sprov.xyz/v2-ui.sh)默认端口:65432(例如www.xxx.com:65432)2.添加账号

2020-07-08 14:48:06 7493 1

原创 xcode 好用的插件

1.generater2.blockcommentextension3.xalign

2020-05-26 17:55:38 696

转载 使用第三方动态库出现dyld: Library not loaded Reason: image not found

使用第三方动态库出现如下错误:dyld: Library not loaded: @rpath/AipOcrSdk.framework/AipOcrSdkReferenced from: /var/containers/Bundle/Application/C3E607DA-217A-4432-A035-F14FE1C79D45/MyTest.app/MyTestAppReason: image not found第一种解决方法:1、在Xcode中的Build Phases中的Copy

2020-05-26 15:01:20 2830

原创 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES Inherited creates project validation issue

进入构建设置 在顶部选择all和combined 在Build Options下,您应该看到Always Embed Swift Standard Libraries,它是粗体的。 单击它,然后单击删除。现在应该不是加粗了。 pod install 的警告应该消失。

2020-05-11 11:06:55 4178

原创 apple开发 证书那点事儿

一.真机测试(开发者形式)1 新建identifiers2.xcode登录app ID,点下download manual profiles 3.项目build一下,会自动导入证书二 app发布证书1 新建identifiers(固定的,同上)2.有p12文件就安装p12文件如果没有p12就申请cer证书,安装cer证书,钥匙串->证书助理-&...

2020-04-16 12:51:12 928

原创 mac app userinfo数据,卸载不干净,导致崩溃问题

~/资源库/Preferences

2020-04-08 14:56:59 128

原创 支持加载http

<key>NSAppTransportSecurity</key><dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> ...

2020-04-01 09:44:54 236

原创 Mac开发:NSUserDefaults对应的plist目录路径

终端打开目录 : ~/Library/Preferences/找到对应bundle id命名的plist文件,xcode直接编译的程序也是在这个目录。有时候发现删掉 Preferences 下的 plist 后,程序依然能取出之前存在的值,甚至把 plist 从废纸篓里删掉,也能取到。重启了下Mac,发现取不到了。PS:iOS对应的是在沙盒里。...

2020-03-18 13:13:51 846

原创 终端隐藏文件

chflags hidden AppIcon.icns隐藏某个文件chflags hidden ~/Library隐藏文件夹

2020-03-17 17:18:36 182

转载 打包dmg

最近因为博主自己的需求,而App Store上的App不能满足需求,或者是说,想借此机会涉猎一下Mac OS的开发。之前一直臆想iOS开发和Mac OS差不多,实则不然。文章传送门BTW 推荐一款非Apple官方的App Store,HackStore是一款来自俄罗斯的Mac应用商店,我们可以将自己开发完的App免费发布上去,也是具有审核机制的,博主目前推广自己的ImageHosting,...

2020-03-12 10:12:35 775

原创 NSWindow 自定义

extension NSWindow { enum Style { case welcome } convenience init(contentRect: CGRect, style: Style) { switch style { case .welcome: let styleMask: NSWindow.S...

2020-03-10 16:37:24 470

高仿陌陌源码+服务器端后台源码

高仿陌陌源码+服务器端后台源码,是搭车客户端的

2014-07-31

php会员注册管理程序

非常不错的会员注册管理程序,需要php+mysql环境配置

2014-07-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除