IDE环境问题
__zhangheng
这个作者很懒,什么都没留下…
展开
-
Swift删除SceneDelegate
1、删除SceneDelegate.swift文件2、删除Info.plist的ApplicationSceneManifest属性结构3、修改AppDelegate.swift文件删除UISceneSession Lifecycle 的两个方法,然后在didFinishLaunchingWithOptions内创建自己的window和rootViewController...原创 2022-03-30 16:54:52 · 2966 阅读 · 0 评论 -
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 · 1341 阅读 · 0 评论 -
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 · 650 阅读 · 0 评论 -
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 · 342 阅读 · 0 评论 -
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 · 1409 阅读 · 0 评论 -
应用程序已损坏,请移到废纸篓!
问题:应用程序已损坏,请移到废纸篓!解决如下:sudo xattr -rd com.apple.quarantine /Applications/name.app原创 2021-03-29 17:11:26 · 138 阅读 · 0 评论 -
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 · 400 阅读 · 0 评论 -
支持加载http
<key>NSAppTransportSecurity</key><dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> ...原创 2020-04-01 09:44:54 · 200 阅读 · 0 评论 -
mac终端 运行c语言
我的task4.c文件放在桌面ccc文件下在终端输入如下:依次生成.o文件 a.out文件最终在终端运行出结果。原创 2014-07-24 10:43:57 · 5219 阅读 · 0 评论 -
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
Undefined symbols for architecture armv7s:"_OBJC_CLASS_$_ASIdentifierManager", referenced from:objc-class-ref in libGoogleAdMobAds.a(GADIdentifierUtilities.o)ld: symbol(s) not found for arc...原创 2014-11-03 11:24:14 · 2001 阅读 · 0 评论 -
在Git中,origin / master与origin master之间有什么区别?
这里实际上有三件事:origin master是两件事,origin/master一件事。共计三件事。两个分支:master是一个本地分支 origin/master是远程分支(它是名为“origin”的远程分支的本地副本,名为“master”)一个遥控器:origin是一个遥远的示例:拉入两个步骤由于origin/master是分支,您可以合并它。这里有两个步骤:...原创 2019-05-10 12:18:47 · 38744 阅读 · 26 评论 -
Git基本操作
切换到要操作的项目文件夹$ cd <ProjectPath>//$ cd /Downloads/G25_platform_sdk查看项目的分支们(包括本地和远程)$ git branch -a删除本地分支$ git branch -d <BranchName>git添加文件夹,无法添加文件夹下的文件(// 例如fold...原创 2019-05-10 12:18:24 · 1040 阅读 · 0 评论 -
Cocoapods 系列问题
Cocoapods官方指南目录1. Cocoapods工作原理2. CocoaPods安装和更新问题3. pod install 和pod update 区别4. Podfile.lock和Manifest.lock5. podspec 什么鬼6. pod常用命令7. CocoaPods使用中常遇问题 - CocoaPods已经导入第三方库,但头文件却not found...原创 2019-05-07 10:51:30 · 713 阅读 · 0 评论 -
failed to push some refs to 'https://myusername@bitbucket.org/repo_user/repo_name.git'
! [rejected] master -> dev (fetch first)error: failed to push some refs to 'https://myusername@bitbucket.org/repo_user/repo_name.git'hint: Updates were rejected because the remote contai...原创 2019-05-07 10:08:49 · 545 阅读 · 0 评论 -
How to fix “modified content, untracked content” in git?
modified: xxx (modified content, untracked content)大概意思是xxx目录没有被跟踪。那自然push上去的时候是空的了解决办法:后来发现这主要是xxx目录下有一个.git 目录,可能是被人给你这个目录的时候里面有了.git目录。删除.git目录。重新git initgit add .(注意:如果点不行就使用,git add --all...原创 2019-05-07 09:47:49 · 405 阅读 · 0 评论 -
xcode10.1下运行iOS12.2的问题,处理总结,Xcode缺少支持文件iOS 12.2(16E227)
解决思路:在xcode10.1添加12.2真机调试文件。从这里下载设备支持文件 - https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/12.2 (16E226).zip, 如果您的Xcode版本没有它们。解压缩zip文件并复制到 /Applications/Xcode.app/Contents/Dev...原创 2019-05-06 09:06:02 · 2279 阅读 · 0 评论 -
[已验证]关于ld: file is universal (4 slices) but does not contain a(n) armv7s slice
1.升级涉及到的.a文件 //这种方式得等官网发布新的.a文件2.在target的Build Settings里面,将Build Active Architecture Only改成NO //之前网上看有人说改称YES,但是我改成YES不行,都改成NO就可以在真机跑了。问题ld: warning: ignoring file /Users/VV/Library/...原创 2019-04-21 11:31:54 · 191 阅读 · 0 评论 -
We are unable to upload this Certificate file because it is invalid.
Mac OS 中,打开应用程序,找到 钥匙串访问(Keychain Access)工具打开主菜单 - 证书助理(Certificate Assistant)-从证书代理请求证书(Request a Certificate From a Certificate Authority)输入iDP注册时的email,用户名自定义,选择“存储到磁盘”,选择‘Let me specify key pair i...原创 2015-01-31 13:55:04 · 657 阅读 · 0 评论 -
Cocoapods 系列问题
Cocoapods官方指南目录1. Cocoapods工作原理2. CocoaPods安装和更新问题3. pod install 和pod update 区别4. Podfile.lock和Manifest.lock5. podspec 什么鬼6. pod常用命令7. CocoaPods使用中常遇问题 - CocoaPods已经导入第三方库,但头文件却not found...转载 2019-05-10 12:44:14 · 358 阅读 · 0 评论