- 博客(51)
- 收藏
- 关注

原创 安装cocoapods报错解决以及使用pod install报错
一、安装cocoapods你可能遇到的问题现在搜到的很多文章都已经老了,不适用了。安装步骤我就不在此一一写出来了。我直接写它的变化吧,如果你执行了podSetup 之后 直接就结束了,那就执行git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk如果你等待了许久却等来了error那你换个...
2020-04-30 16:29:47
1183
6

原创 Git 终端使用教程
Git分为三个区域,分别是1.>工作区域2.>暂存区域3.>本地仓库一 、提交代码步骤1. cd 项目路径2. gitbranch 检查分支 (确定正处在自己的分支)3. git commit -m "备注"4. git push origin khf---------- 此时已经将本地的代码同步到了线上仓库----------5....
2020-04-03 18:58:05
377
原创 解药 Failed to connect to github.com port 443 after 75002 ms: Couldn‘t connect to serve
pod instal 失败 github.com port 443 after
2025-03-27 10:43:21
139
原创 iOS 开发failed to emit precompiled header 以及 “xxx-Swift.h“ file not found
3.把podfile里的库删掉 执行 podinstall。2.删除 podfile.lock。4.podfile填回所有的库名字。1.删除 pods 文件夹。5.重新podinstall。
2024-12-10 18:31:28
475
原创 uniapp tabbar不显示图标
检查你的路径是否正确,重点检查文件夹名字大小写!网页和抖音小程序是忽略大小写的,如果大小写填的不正确也可以显示,但是iOS模拟器或者微信小程序是校验大小写的,必须正确的大小写填写,如果网页或者抖音小程序显示tabbar图标,其他的不显示,比如iOS模拟器微信小程序不显示图标。
2024-10-30 14:21:08
333
1
原创 clang: error: no such file or directory:xxx的处理方法
解决方法:Build Settings -> Ohter Linker Flags 检查是否有多余的 -framework。-framework是和库一一对应的,如果这里删掉库名也需要删掉-framework。如果出现 no such file or directory: 'UIkit'这是一个很离谱的提示,这是一个不正确的报错。
2024-09-11 09:45:28
570
原创 安装Homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2022-02-24 00:05:28
151
原创 2024最新安装cocoapods指南以及一些闭坑建议
一、确保ruby环境存在,并且源是https://gems.ruby-china.com二、开始安装cocoapods1.sudo gem install -n /usr/local/bin cocoapods2.pod setup3.git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk4.安装完成,测试一下pod search AFNetworking三、安装..
2020-05-19 17:28:48
1513
1
原创 pod install时出错 不能连接
pod install 一些库时会出现这种错误,科学上网之后还是如此。打开网络偏好设置 -> 高级 -> DNS -> + 8.8.8.8 (以太网 和 wifi都要设置)
2020-05-18 14:07:13
500
原创 iOS textField输入框中输入的文字距离输入框左边框的距离设置
textVleftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 8, 0)]; _nameTf.leftViewMode = UITextFieldViewModeAlways;
2020-04-15 09:30:30
3155
原创 Pod 时 Error installing XXX库 ...........Failed to connect to 127.0.0.1 port 1080: Connection refused
这时候你先看一下代理在终端输入:git config --global http.proxy git config --global --unset http.proxy然后测试一下管不管用,不管用则1、open ~/.gitconfig2、删除里面的[http "https://github.com"]proxy = socks5://127.0....
2020-03-24 13:11:57
929
原创 dyld: Library not loadedOrpath/Aipbase framework/AipbaseReferenced
集成百度的图文识别之后真机运行报错,证书换成开发者账号的证书即可
2020-02-27 22:39:58
691
原创 Library not loaded: @rpath/IdcardQuality.framework/IdcardQuality Referenced
解决办法 : target -> Build Phases ->Link Binary with Libraries把对应的 Status 改成 Optional
2020-02-26 10:41:36
850
原创 iOS. 同一Label内文字不一样颜色
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"已查看%@/%@",self.dataM.view_num,self.dataM.total_num]]; NSRange range = [[str strin...
2019-12-28 16:47:24
175
原创 iOS. 结合Sourcetree 将带代码上传到 GitLab仓库
首先在GitLab 一、新建一个项目 然后添加好项目成员二、打开SourceTree 从Url克隆,把gitLab创建好的项目的链接拿过来填进去三、新建一个文件夹,把地址设为这个文件夹四、把项目复制进这个文件夹五、提交六、推送End 大功告成,此时代码已经上传到gitLab仓库,去gitLab项目页查看就会看到提交记录...
2019-11-26 13:28:10
645
原创 erminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholde
字典的Value为空
2019-11-05 16:24:55
2292
原创 iOS 通知传值
NSDictionary *dict = @{ @"data":weakSelf.sweepDataArr, @"image":weakSelf.dataImgage }; [[NSNotificationCente...
2019-11-05 16:10:53
174
原创 iOS开发调用 webSerVice接口 详解
传参:GetFreeKeChListMethod:@"GetFreeLessonsLst" soapBody:@"<pageIndex>1</pageIndex><pageSize>10</pageSize>"请求 NSString *soapStr = [NSString stringWithFormat: ...
2019-11-01 09:08:50
220
原创 iOS 修改WKwebView字体大小
一个代理方法就搞定了 _wkWebView.navigationDelegate = self;- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation{ [ webView evaluateJavaScript:@"document.getEleme...
2019-10-25 14:15:04
3003
原创 iOS 使用textView或者textField的时候弹出键盘会崩溃
这个错误很无语,因为看报错原因指的是约束存在问题,但是当仔细检查了约束之后,或者把所有的控件已处置后,他还是报约束存在问题。解决办法把XCode 的DeriveData文件夹中的所有东西都Delete掉,然后关机重启MAC,这样就解决问题了...
2019-09-25 15:38:50
1159
原创 iOS 自定义键盘顶部视图 UIToolBar InputAccessoryView
逻辑就是 要保证在键盘弹出来的时候自定义的View要在键盘的上方,在键盘隐藏的时候自定义的View也隐藏那么需要监听到键盘的弹出和隐藏首先呢写两个通知,来分别通知键盘的弹出和隐藏,我们在对其进行更改坐标添加动画等操作[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changetoolBa...
2019-09-25 09:40:42
3574
原创 [UIButton _needsSetup]: unrecognized selector sent to instance 0x7fac04c6638 报错解决
这个错误呢是说明你一个按钮有问题,在你的xib文件中检查所有的UIButton即可
2019-09-23 08:56:51
1008
原创 iOS View跳转到ViewController ———————— 代理的使用(干货)
在View中对Button的触发事件或者didSelectRow都无法直接进行跳转到ViewController;在这里就用代理来实现1.首先在View的.h文件中@protocol RecognitionResultViewDelegate <NSObject>-(void)GoAskQuestionPushVC;@optional@end@interfa...
2019-09-19 16:26:51
1122
原创 ios Cell中的按钮实现单选
首先定义一个变量来记录按钮的状态@property (assign, nonatomic) NSIndexPath *selIndex;//单选,当前选中的行- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ NSInteger ...
2019-09-09 09:04:39
1126
原创 iOS APP提交审核,页面显示存在一个或多个错误,然而并没有提示哪一项有错误
看一下你的APP类型是不是选的报刊杂志,然后看看你的价格是不是选的免费。如果APP类型是报刊杂志的话,不能是免费的
2019-08-26 15:26:56
3201
1
原创 MAC 安装cocoapods 添加新镜像出错以及安装pods出错解决方法
将$ gem source -a https://gems.ruby-china.org/改为$ gem source -a https://gems.ruby-china.com/安装pods 在终端输入$ sudo gem install -n /usr/local/bin cocoapods --pre//安装最新版本...
2019-04-23 15:48:00
318
原创 iOS Multiple commands produce 问题
选择Xcode的File->Project Settings->Build System: 选择Legacy Build System;完成山面的步骤运行就Ok了!最后附上 iOS开发学习交流群 群号:854192594
2019-03-22 15:33:18
912
原创 iOS 模拟器可以运行,真机报Command /usr/bin/codesign failed with exit code 1的解决办法
重启电脑即可
2019-03-21 14:02:13
589
原创 XXX iPhone has denied the launch request
解决办法 Product -> Edit Scheme -> Executable > Ask On Launch 选择该选项运行一次,矫正数据即可
2019-03-16 18:00:57
164
原创 iOS 防止按钮重复点击简单快捷的方法两行代搞定
这个方法是利用了button的enabled的属性去实现防止用户多次点击按钮多次请求数据-(void)ButtonClick:(uibutton *)sender{}sender.enabled = NO; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), disp...
2019-02-17 18:53:25
317
原创 IOS 强制让APP退出,非闪退非崩溃;还有用代码达到点击Home键退出的功能效果
强制让App直接退出(非闪退,非崩溃)- (void)exitApplication { UIWindow *window = [AppDelegate new].window; [UIView animateWithDuration:1.0f animations:^{ window.alpha = 0; } completion:^(B...
2019-02-16 18:58:13
4398
原创 iOS 当前时间之前与当前时间之后比较
NSComparisonResult result = [localeDate compare:csDate]; if (result == NSOrderedDescending) { //在指定时间前面 过了指定时间 过期 NSLog(@"历史回放"); } else if (result == NSOrdered...
2019-01-19 09:59:37
641
原创 iOS -1011 404 Error Domain=NSCocoaErrorDomain Code=3840 类似错误解决办法
一开始我按照网上查的设置类型配置等设置不管用,后台也一直说自己没错,后来后台说自己漏了一个代码@ResponseBody,后台加上这个代码之后就ok 了 iOS开发学习交流群 群号:854192594...
2019-01-16 11:09:58
811
原创 iOS 如果后台返回的数据少了字段怎么防止崩溃
self->headImgArr = [[NSMutableArray alloc]init]; for (int i = 0; i < self->myStuArr.count; i++) { StudnetList *stu = self->myStuArr[i]; ...
2019-01-04 14:45:38
502
原创 iOS 更改状态栏背景颜色
更改状态栏背景颜色的方法有很多种,在这说两种一、// 设置状态栏背景颜色//- (void)setStatusBarBackgroundColor:(UIColor *)color {// UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueF...
2019-01-03 15:45:24
2278
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人