- 博客(122)
- 资源 (7)
- 收藏
- 关注
原创 Redundant Binary Upload. You‘ve already uploaded a build with build number ‘6‘ for version number
上传到app store connect的ipa的version number和build number要与已提交的构建版本不能完全相同。只version number相同或者只build number相同可以上传,但是两者都相同就不能上传会报错。
2024-07-20 11:33:29
150
原创 多个uilabel添加同一个UITapGestureRecognizer对象,只有最后那个生效么
如果多个UILabel添加同一个对象,确实只有最后一个UILabel会响应手势。这是因为一个手势识别器只能被添加到一个视图上,多次添加实际上是重新指定该识别器的视图目标。要实现多个UILabel响应相同的手势,可以为每个UILabel分别创建手势识别器,或者在父视图上添加一个手势识别器并在手势处理方法中判断具体点击的子视图。
2024-07-11 21:59:50
270
原创 ios项目pod成功,但是build里面没有生成对应的module
ios项目pod install成功,但是build里面没有生成对应的module,这个问题排查了很久。最终通过调试,将pod里的下面这段删除,就成功可以build了。
2024-07-05 13:24:29
288
原创 ios调用高德地图定位报错
这个错误信息表明你的应用在执行用户交互质量的服务时,阻塞在了一个较低优先级的线程上,这导致了优先级倒置。特别是,你的应用在调用`AMapLocationManager`的`startUpdatingLocation`时发生了这个问题。`AMapLocationManager`的`startUpdatingLocation`可能是一个耗时操作,应该在后台线程中运行,而不是在主线程中。确保你没有在主线程中执行可能会导致死锁的操作,例如同步调用`DispatchQueue`,特别是在涉及到UI更新和网络请求时。
2024-07-04 17:58:36
1974
1
原创 Logging Error: Failed to initialize logging system. Log messages may be missing.
重新运行就没有错误了。
2024-07-02 18:33:24
1650
原创 xcode运行ios项目报错Sandbox: rsync.samba(24352) deny(1) file-write-create
xcode运行ios项目报错。
2024-07-02 18:27:22
1328
原创 解决 Xcode 下载 iOS Simulator 频繁失败的问题
解决 Xcode 下载 iOS Simulator 频繁失败的问题 - 看川博客
2024-07-02 18:12:09
373
原创 flutter项目pod install后报错The ‘Pods-Runner‘ target has frameworks with conflicting names: mamapkit.fram
flutter项目pod install后报错The 'Pods-Runner' target has frameworks with conflicting names: mamapkit.framework.使用了高德地图官方的flutter插件,由于官方的flutter插件有部分功能没有提供,所以自己也使用高德的sdk开发了自己的flutter插件,导致了mamapkit.framework冲突。去掉官方的flutter插件,保留自己开发具有相同功能的flutter插件。
2024-06-30 17:55:22
509
原创 flutter项目报错[!] The ‘Pods-Runner‘ target has transitive dependencies that include statically linked b
运行flutter项目报错。
2024-06-30 17:48:14
988
原创 Error Domain=AMapSearchErrorDomain Code=1008 “INVALID_USER_SCODE“ UserInfo={NSLocalizedDescription=I
这主要是因为flutter项目的ios的bundle id跟使用的高德ios key对应的应用bundle id不一致导致,通过xcode修改ios的bundle id即可解决。flutter项目使用高德地图api实现周边搜索的时候运行报错。
2024-06-30 16:08:57
299
原创 flutter插件开发 Building for ‘iOS-simulator‘, but linking in object file built for ‘iOS‘
flutter插件开发过程中,xcode运行example下的ios项目,报错Building for 'iOS-simulator', but linking in object file built for 'iOS'再在vs中跑example项目,然后再在xcode中跑ios项目就不会报错了。在该项目的podfile文件中post_install处添加。然后运行pod clean;
2024-06-30 11:31:21
831
原创 flutter unknown: Encountered an unknown error (The ‘Pods-App‘ target has transitive dependencies tha
在flutter插件开发过程中,在ios中运行pod lib lint报错。在命令后面加上--use-libraries即可,比如。
2024-06-30 10:53:18
299
原创 CDN: trunk URL couldn‘t be downloaded: Map2DMap.podspec.json Response: Timeout was reached
进到项目的ios目录下执行 pod repo remove trunk;pod install 即可解决。flutter项目运行报错。
2024-06-30 10:29:23
518
原创 flutter could not find included file ‘Generated.xcconfig‘ in search paths
用xcode跑flutter下的ios项目,报错could not find included file 'Generated.xcconfig' in search paths。
2024-06-30 10:02:42
297
原创 flutter Module ‘xxx‘ not found
用xcode跑flutter下的ios项目,报错Module 'xxx' not found。要先跑flutter项目,然后再用xcode跑ios项目,就可以解决。
2024-06-30 09:58:06
303
原创 No compiler is provided in this environment. Perhaps you are running on a JRE
mac 上跑maven项目报错No compiler is provided in this environment. Perhaps you are running on a JRE解决:1: 执行以下命令找到本地 Java 的jdk安装目录/usr/libexec/java_home -V执行 vim ~/.profile 设置下java的环境变量即可。执行完后so...
2021-10-31 11:40:47
324
原创 CAP分布式理论
C:一致性A:可用性P:分区容忍性案例:AP: eureka、redis主从哨兵机制CP: zookeeperBASEBA:基本可用S:软状态E:最终一致性基本可用:服务降级、流量削峰、延迟队列
2021-09-17 23:26:17
197
原创 系统架构设计
认知能力:架构设计认知、分析问题认知、能力边界认知设计认知:立足于点、连接成线、扩散成面底层逻辑:为什么要做拆分?为什么要做系统解耦?为什么要职责单一?为什么要关注开发效率?分析问题认知:业务:关注点系统能力管理者:关注点在人效管理技术:系统设计原则架构师与中高级研发区别 中高级研发 架构师 复杂度评估功能性复杂度:研发团队能力素质、it...
2021-09-17 22:57:21
240
原创 Flink本地安装
1:下载wgethttps://mirrors.bfsu.edu.cn/apache/flink/flink-1.12.2/flink-1.12.2-bin-scala_2.11.tgz2:解压tar -xzf flink-1.12.2-bin-scala_2.11.tgz3:cd flink-1.12.24:启动./bin/start-cluster.sh5:访问http://localhost:80816:停止./bin/stop-clust.
2021-04-12 22:22:15
194
原创 redis集群搭建
1:下载redis安装包并解压2:在redis目录下运行make3:创建redis-cluster目录4:cd redis-cluster5:创建6个数据目录mkdir data6379mkdir data6380mkdir data6381mkdir data6382mkdir data6383mkdir data63846:将redis目录下的redis.conf文件拷贝6份cp ../redis.conf redis6379.confcp ..
2021-03-23 22:37:43
157
原创 zookeeper集群安装
在本地安装zookeeper集群1:下载zookeeper安装包,解压到三个目录zookeeper1 zookeeper2 zookeeper32:将zookeeper1 zookeeper2 zookeeper3三个目录下的conf/zoo_sample.cfg重命名为 conf/zoo.cfg并将内容分别修改为:zookeeper1:tickTime=2000initLimit=10syncLimit=5dataDir=/Users/guanhongchang/Documen
2021-03-20 13:03:53
126
原创 nacos集群安装
下面讲述在本地安装nacos集群,使用不同端口,8848、8849、88501:下载nacos安装包解压得到nacos1 nacos2 nacos32:新建nacos数据库,运行nacos里面的nacos-mysql.sql3:修改nacos1 conf/application.properties修改为server.servlet.contextPath=/nacos### Default web server port:server.port=8848#*******.
2021-03-20 11:41:43
436
原创 NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
spring boot集成nacos config报错NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata原因是我的spring boot版本是2.4.3 , nacos config的版本是0.2.7两个版本不兼容导致,在spring boot 2.4之后删掉了ConfigurationBeanFactoryMetadata将spring boot
2021-03-10 21:29:56
26613
10
原创 Context initialization failed java.lang.UnsupportedOperationException: Parsing is not yet supported
按照nacos官网实践配置获取后报错。Context initialization failed java.lang.UnsupportedOperationException: Parsing is not yet supported for this type profile : example经查看源码得知,默认是从dataid去获取配置的类型。从而得到类型为dataId的值example,故报了这样的错误。解决方法:1: 设置dataid的值为加上后缀。这个.
2021-03-07 16:21:05
1012
原创 sonar代码检查多模块maven项目
项目结构大致如下projectMy- -moduleOne --oneSub1 --oneSub2 -moduleTwo --twoSub1 --twoSub2-sonar-project.propertiessonar-project.propertie...
2019-01-29 15:02:28
8615
1
原创 jenkins+sonar报错
1:构建后报错ERROR: Error during SonarQube Scanner executionERROR: Task 'sonar-scanner' does not exist. Please use 'list' task to see all available tasks.ERROR: ERROR: Re-run SonarQube Scanner using t...
2019-01-29 14:33:53
4565
4
原创 centos7启动sonar之后报错
2019.01.29 11:18:58 WARN es[][o.e.c.a.s.ShardStateAction] [rules][0] received shard failed for shard id [[rules][0]], allocation id [mzxUa1F2TouocnegSCRCwA], primary term [0], message [failed recove...
2019-01-29 11:24:03
1188
原创 对接入log4j2报错
在对接入log4j2过程中发现报错"D:\Program Files\Java\jdk1.8.0_66\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote...
2019-01-15 11:27:33
4525
原创 使用maven私库的时候遇到的问题
1: Could not transfer artifact com.yolo:common:jar:1.0.0 from/to maven-releases (http://192.168.3.47:20010/repository/maven-releases/): Failed to transfer file: http://192.168.3.47:20010/repository...
2019-01-11 17:00:46
2745
原创 用ngnix做反向代理的项目swagger访问不了
1:swagger可以访问,但是点击具体的方法访问不了查询原因是因为域名后面的项目名不见了例如:正确的跳转链接是:https://xxxx/xiaohong/xxx但是实际上的链接变为了https://xxxx/xxx少了xiaohong这个项目名路径解决方法是在yml中设置#解决用域名访问不了swagger的解决方案springfox: documenta...
2019-01-11 10:38:27
5780
原创 spring boot对bean中的date对象输出成json之后的format问题
在get方法中加入@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")既可以解决时间格式问题
2018-11-22 09:58:19
595
原创 c++学到知识点
1:将boost::property_tree::ptree转化为string输出std::stringstream ss;boost::property_tree::json_parser::write_json (ss, tree);std::cout << ss.str () << std::endl;2:boost::asio::ip::address...
2018-11-07 10:22:22
278
原创 跑nanovault钱包客户端报错Uncaught ReferenceError: regeneratorRuntime is not defined
Uncaught ReferenceError: regeneratorRuntime is not defined at eval (TransportU2F.js:120) at eval (TransportU2F.js:142) at Object.eval (TransportU2F.js:228) at eval (TransportU2F.js:25...
2018-11-07 10:01:22
3380
原创 cmake报错undefined reference to `pthread_create'
CMakeFiles/helloboost.dir/condition_variable.cpp.o: In function `main':/usr/include/c++/7/thread:126: undefined reference to `pthread_create'collect2: error: ld returned 1 exit statusCMakeFiles/he...
2018-10-23 10:15:34
3364
原创 spring boot接入log4j2日志
1:<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.6.2</version>
2018-10-15 10:54:43
706
原创 从nano server中的python学习知识点总结
1:Python pass是空语句,是为了保持程序结构的完整性。pass 不做任何事情,一般用做占位语句。2:redis的使用sudo pip install redis import redisrdata = redis.StrictRedis(host='localhost', port=6379, db=0)rdata.hget(key,item)...
2018-10-12 15:56:30
349
原创 java生成指定位数的强随机数
1:public static String generateRandom(int length){ SecureRandom random = SecureRandomUtil.secureRandom(); byte[] randomBytes = new byte[length]; random.nextBytes(randomBytes...
2018-10-11 11:18:07
2315
JAVA接入web3j demo源码
2018-07-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人