- 博客(53)
- 资源 (1)
- 收藏
- 关注
原创 Xcode 15 file-write-create
build Settings ==> 搜索:sandbox ==> build options 目录下将 user script Sandboxing 改为 NO 就可解决上述问题。
2025-04-11 16:11:11
125
原创 npm 和 node 总结
8、n 检查目前安装了哪些版本的node,会出现已安装的node版本,选一个就可以直接切换了。6、sudo n 22.3.0 升级到指定的版本号,这里是示例,该命令代表升级到版本22.3.0。1、sudo npm cache clean -f 清除node.js的cache。3、npm view node versions 查看node所有版本。2、sudo npm install -g n 使用npm安装n模块。5、sudo n stable 升级到稳定版本。
2024-11-06 17:18:24
438
原创 npm 配置国内镜像
淘宝镜像源是目前国内使用较为广泛的镜像源之一。根据最新的信息,淘宝镜像的地址已更新为https://registry.npmmirror.com/。腾讯云镜像源提供了另一个选择,地址为https://mirrors.cloud.tencent.com/npm/,同样可以提供快速的下载速度。国内有许多可用的npm镜像源,包括但不限于淘宝镜像、腾讯云镜像、cnpm等。cnpm是一个基于npm的中国镜像源,地址为https://r.cnpmjs.org/,它提供了npm包的完整镜像,并且更新速度较快。
2024-10-25 15:51:46
583
1
原创 uniapp开发:vue3 中vuex的使用
在根目录下创建store目录,并在该目录下创建index.js文件。需要使用的vue 或者nvue界面:(组件)开发工具HbuilderX3.98。index.js 文件。audio.js文件。
2024-03-22 16:38:19
1061
1
原创 SDK does not contain ‘libarclite‘ at the path ‘/Applications/Xcode.app/Contents/Developer/Toolchains
下载xcode15 运行程序提示:SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a';第一步:,找到文件夹下的arc文件夹,如果没有这个文件夹,自己手动创建一个;
2024-03-15 09:41:22
2671
原创 xcode15 ( 8 duplicate symbols ;linker command failed with exit code 1 (use -v to see invocation))
在Xcode -> Target -> Build Setting -> Other Linker Flags 添加一行"-ld64"尝试在按照以下路径配置一下:-ld64。
2024-03-14 17:47:42
968
1
原创 MAC连接MySQL出现Host is not allowed to connect to this MySQL server 解决方法
打开终端一次输入以下命令行。
2023-06-02 14:26:49
465
原创 git pull 提示 hint: You can replace “git config“ with “git config --global“ to set a default
终端运行:git config pull.
2023-04-13 16:00:17
1756
1
原创 xcode14 Command Swift Driver Compilation Requirements emitted errors but did not ret
xcode14:SwiftDriver
2022-11-05 11:22:39
1480
原创 git 出现You can replace “git config“ with “git config --global“ to set a default hint:
git使用报错
2022-11-03 14:27:51
4788
原创 Mac 安装ffmpeg 并使用ffmpeg将ts格式的文件转换成mp4
Mac 电脑安装ffmpeg 并通过ffmpeg将ts格式的文件转换成mp4格式
2022-03-26 14:04:47
6202
原创 配置Universal Links 笔记
微信分享出现的问题:https://developers.weixin.qq.com/community/develop/doc/000200d2d106301d11a94189451400?jumpto=reply&commentid=000806ba8ac2d83811b9891e8594&parent_commentid=000442fa884538ed16a9529e35b4官方提供检查Universal Links是否正确:https://search.develo
2021-07-03 17:59:28
162
原创 Mac 解决github 下载慢问题
利用https://www.ipaddress.com/来获得以下两个GitHub域名的IP地址:(1) github.com(2) github.global.ssl.fastly.net打开网页后,利用输入框内分别查询两个域名。修改hosts文件,将以上获取的两个IP地址写入hosts文件中...
2021-04-10 14:59:45
582
原创 报错 library not found for -libstdc++.6.0.9
解决办法 :设备将tbd副本放到下面路径中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/模拟器将tdb副本放到下面路径中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
2021-01-28 18:01:51
1927
1
原创 WkWeb 的JS交互
JS代码:/* // 传null window.webkit.messageHandlers.方法名.postMessage(null); // 传字典 window.webkit.messageHandlers.方法名.postMessage({name:'小明',gender:'男'}); // 传字符串 window.webkit.messageHandlers.方法名.post...
2020-05-25 14:33:01
1417
原创 解决Xcode11.2在xib里加载UITextView导致崩溃
#import <objc/runtime.h>在AppDelegate.m:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{.....if (@available(iOS 13.2, *)) { ...
2020-04-20 11:31:22
259
原创 Xcode 默认路径设置
打开终端:1.查看xcode-select可使用命令xcode-select -h 或者xcode-select --help2.查看当前Xcode版本路径:xcode-select -p 或者 xcode-select -print-path3.切换xcode路径:sudo xcode-select --switch /Applications/Xcode.app/...
2020-04-15 15:18:34
998
原创 cocopods + xcode设置默认版本
Xcode设置默认版本:1、找到要切换的xcode版本的路径2、切换xcode路径的方法为:sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer(xcode路径)3、查看切换后的xcode版本路径:xcode-select -print-pathcocopods:1.可以通过gem...
2020-03-14 22:28:38
739
原创 Xcode 模拟器运行提示xcode Unable to boot device because it cannot be located on disk
打开Xcode -> Open Developer Tool -> iOS simulator在打开的模拟器上选择Hardware -> Device -> Manage Devices把没用的模拟器全部删除,然后再添加回来就可以了。添加是立刻的,不需要下载。...
2020-03-10 16:21:03
3976
原创 环信打包_遇到的问题
近日小编在集成环信的打包时候遇到的问题:(环信SDK版本 3.6.2)用cocopods 集成IM SDK 手动集成easeUI.1. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/Command...
2020-01-05 23:38:57
1076
原创 微信支付WeChatSDK1.8.6 手动集成
本文小编阐述WeChatSDK1.8.6 手动集成方式:1.下载资源:https://developers.weixin.qq.com/doc/oplatform/Downloads/iOS_Resource.html将下载后的资源如下图,导入工程中:2.添加依赖库:现在可以Command+B调试一下了。官方集成文档:https://developers.weixin....
2019-11-07 17:09:26
1250
2
原创 tanleview ,collectionview 下拉刷新时背景填充
-(void)addCollecviewSub{ self.colorView = [[UIView alloc] initWithFrame:CGRectMake(0, -SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT)]; // 高度随便,只要下拉的高度不超出View的高度就行了 self.colorView.backgr...
2019-09-18 12:03:36
471
原创 iOS 画气泡view
方法一:(画三角形)- (UIView *)arrowView{ if (!_arrowView) { // draw CGSize size = CGSizeMake(200, 50); UIBezierPath *path = [[UIBezierPath alloc] init]; [pat...
2019-09-16 11:40:28
668
原创 添加左右滑动的手势
//添加手势-(void)addSwipeGesture{ //左右滑动 self.leftSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipes:)]; self.rightSwipeGes...
2019-08-29 17:36:00
357
原创 tableView 杂论笔记
ios11 适配自动cell高度 _leftTable.rowHeight = UITableViewAutomaticDimension; _leftTable.estimatedRowHeight = 50;待查看:1.self.centerTableView.contentOffset = CGPointMake(0, newRow * ...
2019-08-29 11:46:06
151
原创 iOS 下拉系统通知栏和上拉工具栏弹出时监听
iOS 在系统通知和工具栏弹出时,可以通过UIApplicationWillResignActiveNotification来监听:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(BecomeActive...
2019-08-21 10:25:34
3825
原创 iOS 侧滑返回
在项目中遇到,需求:A 界面存在导航控制器 push 到B界面隐藏导航栏,现在需要从B界面侧滑返回A界面。直接上代码:A (controller):.h 文件#import <UIKit/UIKit.h>@interface ViewController : UIViewController@end.m文件#import "ViewControl...
2019-07-29 17:14:59
309
原创 iOS 添加毛玻璃背景
// 背景毛玻璃 UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect]; effectView.fr...
2019-07-27 11:15:50
725
原创 openURL 在iOS10上已被弃用。
苹果在iOS 2 推出openURL:方法用于打开外部链接,而与之相关的方法canOpenURL:在iOS 9隐私控制里也禁止查询设备中已安装的App。苹果在iOS 10 中已经弃用了openURL:这个旧方法,用openURL:options:completionHandler:来代替。iOS 10中的新方法:// Objective-C- (void)openURL:(NS...
2019-07-13 10:07:30
1377
转载 iOS 导航栏控制Push
1.导航栏的显示与隐藏导航栏的显示与隐藏,分两种情况:1.从不显示导航栏的页面push到显示导航栏的页面。 2.从显示导航栏的页面Push到不显示导航栏的页面。注意: 1.如果导航栏不显示时,系统的侧滑返回功能无效。 2.虽然侧滑返回功能无效,但是导航栏的.interactivePopGestureRecognizer.delegate还是存在的。针对以上两种情况分别处理,整...
2019-07-12 11:23:32
640
原创 组件化成功后 pod search "XXXX"
[!] Unable to find a pod with name, author, summary, or description matching `xxx`解决方法就是Finder前往资源库去删除缓存中的search_index.json(****修改成你自己电脑路径)/Users/*****/Library/Caches/CocoaPods删除search_index.json...
2019-07-04 11:30:46
293
原创 UIView圆角设置
1、设置四个角为同一弧度的圆角UIView *cornerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 120, 10)];cornerView.backgroundColor = [UIColor whiteColor];cornerView.layer.masksToBounds = YES;cornerView.lay...
2019-06-20 15:32:12
2623
原创 UIView的autoresizingMask属性
在开发过程中有时会碰到xib 创建view,设置view的frame会无效或者不是我们所设置的尺寸:解决方法:方法一:_doAndCheckHomefooterView.autoresizingMask = UIViewAutoresizingNone;方法二:在viewcontroller中重新设置尺寸:- (void)viewDidLayoutSubviews{ ...
2019-06-20 15:19:03
381
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人