iOS踩过的坑
倚栏静望
让Bug呆一会儿
展开
-
Gradle Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
问题Build file '/Users/******/****/android/golf/android/app/build.gradle' line: 26* What went wrong:A problem occurred evaluating project ':app'.> Could not resolve all artifacts for configuration 'classpath'. > Could not resolve org.jetbrains.原创 2022-05-17 23:25:39 · 8305 阅读 · 17 评论 -
`GoogleAppMeasurement` requires CocoaPods version `>= 1.10.2`, which is not satisfied by your cu
问题:[!] GoogleAppMeasurement requires CocoaPods version >= 1.10.2, which is not satisfied by your current version, 1.10.1.从问题上看是因为本机的Cocopods版本低于项目中要求的版本,所以要对本机Cocopods进行升级:升级命令:sudo gem install cocoapodspod setup或者使用:brew upgrade cocoapods...原创 2022-05-11 09:51:29 · 1191 阅读 · 0 评论 -
Mac homebrew报错Error: homebrew-core is a shallow clone.
Mac命令行执行:brew update 报如下错误:Error: homebrew-core is a shallow clone.To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallowThis command may take a few minutes to run due to the large size of t原创 2022-02-22 22:57:23 · 2433 阅读 · 0 评论 -
Multiple commands produce “*.framework“ Command PhaseScriptExecution failed with a nonzero exit cod
问题如下:Multiple commands produce '/Users/***/Library/Developer/Xcode/DerivedData/Runner-eakrztdmmhdrkxbxegpbkoambqao/Build/Products/Debug-iphoneos/Runner.app/Frameworks/Flutter.framework':1) Target 'Runner' has copy command from '/Users/***/Desktop/android原创 2021-11-07 17:13:15 · 3189 阅读 · 1 评论 -
Xcode13.0 打包报错:Code signing “AipBase.framework“ failed.
直接运行无问题,但Archive/IPA/Upload AppStore 时报错"Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]…解决方案:将百度的AipBase.framework、AipOcrSdk.framework中的支持模拟器i386、x86_64架构剔除# 使用lipo -info 可以查看包含的架构lipo -info AipBase.framewor原创 2021-10-17 12:07:06 · 971 阅读 · 0 评论 -
iOS 14下popToRootViewControllerAnimated:YES 导致TabBar隐藏的问题
每次大版本更新都会出现一些莫名的问题,这一次苹果升级到iOS14也没有逃脱……问题在处理UITabbar在push的时候的显示和隐藏, 通常是像下面这样处理:- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { if (self.viewControllers.count > 0) { viewController.hidesBottomBarWhen原创 2020-09-20 11:41:29 · 3613 阅读 · 0 评论 -
Flutter 更新后本地插件报错:Couldn't read file LocalFile: "***/***.kt" even though it exists!
先说一下报错Flutter版本:Stable channel v1.12.13+hotfix.5报错问题同:Running "flutter pub get" in push_plugin... 0.2sRunning "flutter pub get" in example... 0.3...原创 2020-01-09 00:10:30 · 2931 阅读 · 0 评论 -
Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/……
问题: *** Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreLocationFramework/CoreLocation-2245.8.22/Framework/CoreLocat...原创 2019-03-06 21:47:08 · 2404 阅读 · 2 评论 -
关于iOS 中UIScrollview顶部有一段空白解决办法
if (@available(iOS 11.0, *)) { scroll.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }即可解决原创 2018-09-23 00:19:33 · 5521 阅读 · 0 评论 -
入坑Xcode10.0 运行libstdc++报错处理方案
Xcode10.0如期而至,嗯……新的问题也如期而至!!1: Multiple commands produce ‘/Users/liguoxian/Library/Developer/Xcode/DerivedData/QuickinClient-azekgaztnwrgxreawmucdwndppss/Build/Products/Release-iphoneos/QuickinClien...原创 2018-09-19 18:33:03 · 2876 阅读 · 0 评论 -
pod 更新第三方依赖 遇到的问题:RuntimeError - [Xcodeproj] Unknown object version
今天使用 pod inttall 更新第三方依赖遇到: RuntimeError - [Xcodeproj] Unknown object version. /Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:217:in initialize_from_file' /Library/Ruby/Gems...原创 2018-09-02 16:40:24 · 1094 阅读 · 0 评论 -
error: unknown type name ‘bool’
今天在Xcode中写C语言代码出现了:error: unknown type name ‘bool’ 上网搜了一下,是没有导入头文件的原因#include <stdbool.h>加上这个头文件就可以使用bool了。...原创 2018-08-22 22:23:25 · 9359 阅读 · 0 评论 -
iOS UITextField设置数字键盘
纯数字键盘:textField.keyboardType = UIKeyboardTypeNumberPad; 纯数字加小数点键盘:textField.keyboardType = UIKeyboardTypeDecimalPad原创 2018-08-22 10:30:09 · 17931 阅读 · 0 评论 -
使用第三方动态库出现dyld: Library not loaded
使用第三方动态库出现如下错误:dyld: Library not loaded: @rpath……第一种解决方法:1、在Xcode中的Build Phases中的Copy Files项中,将你要引用的framework拖到“LinkedFrameworks and Libraries“中【如果已经添加了,跳过这一步】2、把Build Phases 里Social.framework后边的选项修改成...原创 2018-04-01 22:33:25 · 9507 阅读 · 0 评论