- 博客(45)
- 收藏
- 关注
原创 Git 合并两个项目
在 Git 中合并两个项目的代码需要一些步骤,尤其是如果这两个项目有不同的版本历史或者是独立的 Git 仓库。在你的本地机器上克隆第一个项目的 Git 仓库。使用 cd 命令进入第一个项目的目录。添加第二个项目作为远程仓库: 在第一个项目中添加第二个项目的 Git 仓库地址。从第二个项目中获取代码。创建新分支: 在第一个项目中创建一个新的分支,该分支将包含第二个项目的代码。合并第二个项目的代码到新分支。这里假设 main 是第二个项目的主分支,你可以根据实际情况替换为相应的分支名。
2023-12-19 13:06:22 539
原创 解决 友盟与阿里SecurityEnvSDK与SGMain冲突
全局搜索SecurityEnvSDK删除- framework SecurityEnvSDK。在pod install之后通过脚本删除- framework SecurityEnvSDK。
2023-12-10 12:23:16 71
原创 swift collectionView的minimumInteritemSpacing等于0时,item之间有间隙,解决方法。
有时候,如果cell的尺寸有小数部分,系统会尝试进行四舍五入,导致间隙。将丢失的像素补充到第一个cell的宽度上去。
2023-12-02 23:18:32 92
原创 pod 私有库 target has transitive dependencies that include statically linked binaries
【代码】pod 私有库 target has transitive dependencies that include statically linked binaries。
2023-11-29 11:16:06 178
原创 Specs satisfying the `A (~> 1.5.1), A (= 2.1.4)` dependency were found, but they required a higher m
【代码】Specs satisfying the `A (~> 1.5.1), A (= 2.1.4)` dependency were found, but they required a higher m。
2023-08-17 16:12:16 176
原创 swift NSObject转JsonString或Dictionary
【代码】swift NSObject转JsonString或Dictionary。
2023-08-03 16:44:00 358
原创 更新pod时报错,The repo `自定义Spec` at `../../../.cocoapods/repos/自定义Spec` is not clean
【代码】更新pod时报错,The repo `自定义Spec` at `../../../.cocoapods/repos/自定义Spec` is not clean。
2023-08-02 09:43:16 139
原创 iOS 使用WKWebView的截图功能来截取H5页面,并将截图保存到相册。
请注意,为了将截图保存到相册,您需要在Info.plist文件中添加相册访问权限的描述。同样,在Info.plist文件中添加相册访问权限的描述。
2023-07-06 12:19:13 665 1
原创 swift H5 在WKWebView在didFinish之后修改title,iOS获取最新的title
页面中title会被替换成magic-square-eye-c-end-h5。iOS在webView(_: didFinish:)中修改navigationItem.title只会赋值一次。场景:vue-electron在加载过程中遇到。
2023-06-27 17:22:56 384
原创 Pod install [!] CDN: trunk Repo update failed - 61 error(s): CDN: trunk URL couldn‘t be downloaded:
2、将下载到的cocoapods文件中的Specs拷贝到cd ~/.cocoapods/repos/trunk中。3、pod install解决。
2023-06-21 21:41:40 543
原创 - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
2、cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ 查看该文件中是否包含arc文件,如果没有手动创建并导入libarclite_iphonesimulator.a等静态库。1、pod lib lint --verbose 查看验证细节。
2023-06-12 12:02:40 604
原创 pod私有库引用私有库报错 pod Unable to find a specification for ` `
解决方法:在Example->Podfile中增加引用私有库源。
2023-06-09 16:04:21 856
原创 iOS archive报错 Invalid bundle. The “UlinterfaceOrientationPortrait“ orientations were provided....
Invalid bundle. The “UlinterfaceOrientationPortrait” orientations were provided for the UISupportedinterfaceOrientations Info.plist key in the ***** bundle, but you need to include all of the"UlInterfaceOrientationPortrait,UllnterfaceOrientationPortraitUp
2023-05-31 15:10:41 1676
原创 iOS archive报错 Missing Info.plist value. The Info.plist key ‘BGTaskSchedulerPermittedldentifiers‘
在info.plist增加Permitted background task scheduler identifiers数组。您已打开应用的后台任务功能,但未添加相应的标识符。
2023-05-31 15:01:10 581
原创 swift 修改UISearchBar输入框背景颜色
修改UISearchBar输入框背景颜色 // 修改搜索框背景 if let textfiled = seachBar.subviews.first?.subviews.last?.subviews.first as? UITextField { textfiled.backgroundColor = .white }
2022-03-21 15:17:04 3587
原创 iOS swift UITableview嵌套UICollectionView点击CollectionCell点击无效
视图解决方案:1、cell subview配置// cell 添加背景viewcell.backView.tag = indexPath.row// 热门城市 tag = -1cell.titleLabel.tag = -12、CollectionView所在的TableviewCell中处理 override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
2022-03-17 09:22:23 4005
原创 swift Mac catalyst 微信扫码登陆
前言微信Api暂时未开放 Mac catalyst 登陆,所以只走网页版微信登陆那一套。微信官方传送门.思路 虽然看文档简单的1p,但是狗哥还是掉了一丢丢秀发。???????? 来说下心路历程: 2. 微信登陆我们主要的任务是拿到code交给后台我们的任务就完成了。那么扫码登陆我们只要搞到code就 可以了。 5. so 根据文档找到一个链接 不管三七二十一 先用webview加载康康是什么 莫? 正是我们要的扫码登陆界面 扫他 18. 扫码之后你会惊奇的发现你跳转了一个你异常熟悉的页
2021-10-27 19:02:58 1290
原创 iOS Mac Catalyst 适配mac之APP 名称本地化
1、 Mac Catalyst 菜单栏名称要实现菜单栏 App 名称本地化需要在上面添加的三个文件中添加 CFBundleName 字符串。// InfoPlist.strings (English) 文件中添加以下代码:CFBundleName = "International Demo";// InfoPlist.strings (Chinese(Simplified)) 文件中添加以下代码:CFBundleName = "国际化演示";2、 Mac Catalyst Dock 栏和 Fi
2021-08-20 18:44:19 492
原创 swift protocol + delegate + 组合 替代继承
继承继承从代码复用的角度来说,特别好用,也特别容易被滥用和被错用。不恰当地使用继承导致的最大的一个缺陷特征就是高耦合。在这里我要补充一点,耦合是一个特征,虽然大部分情况是缺陷的特征,但是当耦合成为需求的时候,耦合就不是缺陷了。案例(搜索框定制)案例来自:casatwy & 跳出面向对象思想(一) 继承.import UIKitvar ScreenH: CGFloat { return UIScreen.main.bounds.height}var ScreenW: CGFl
2021-06-28 18:23:29 289
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人