- Xcode 打包报错Command PhaseScriptExecution failed with a nonzero exit code
fendoudexiaoniao_ios
xcodemacoscocoapods
解决办法:1、在Xcode项目中Pods->TargetsSupportFiles->Pods-项目名->Pods-项目名-frameworks中(大约在第44行)加上-f2、CocoaPods版本太旧了,可以尝试升级CocoaPods版本使用sudogemupdatecocoapods更新cocoapods,问题将在1.12.1版本已修复。删除项目根目录下的Podfile.lock、项目名.xc
- An error occurred while processing the post-install hook of the Podfile.
IMKel
报错如下:[!]Anerroroccurredwhileprocessingthepost-installhookofthePodfile./Users/apple/fvm/versions/2.10.4/bin/cache/artifacts/engine/ios/Flutter.xcframeworkmustexist.Ifyou'rerunningpodinstallmanually,mak
- podfile 依赖同一个库的多种情况
奚山遇白
直接举个我们新建一个项目TestProject,该项目需要依赖AFNetworking和一个第三方库AFramework,不巧的是AFramework也依赖了AFNetworking,更不巧的是AFramework指定了所依赖的AFNetworking的版本号为3.1.0,这个时候pod会怎样来管理AFNetworking呢?具体分为以下几种情况:1.我们指定TestProject中依赖的AFNe
- iOS 可用命令集
1、遍历工程是否包含xxx(例UIWebView)(用于ITMS-90809:DeprecatedAPIUsage)cd工程目录grep-RUIWebView2、pod命令>当需要在CocoaPods中删除一个我们不要的库时可以在Podfile中直接删除相关库>>再cd到项目目录执行podupdate--verbose--no-repo-update或者podinstall--verbose--n
- CocoaPods【基础篇】
dpplh
PodfilePodfile是一个用来描述项目中Target的依赖的文件一个简单的Podfile文件target'MyApp'douse_frameworks!pod'Alamofire','~>3.0'end1、use_frameworks!:在Podfile里使用use_frameworks的话,是通过frameworks的方式来管理pod代码,不配置的话,使用StaticLibraries的
- cocoaPods集成项目引发的思考
kakao6
1.项目背景:cordova项目的文件夹集成,项目目录已不是正常的cordova项目的目录1.过程:添加podfile,然后podinstall,然后删除项目中的第三库文件夹集成的,逐个删除,然后command+B的时候,会保错。Podfile.lock和Manifest.lock是用来进行校验的。在多人协作的过程中,多次代码合并后文件内部意外产生更改。就会导致cocopod更新第三方库后一直报错
- iOS -RAC使用
搬砖的crystal
一、简介ReactiveCocoa可以说是结合了函数式编程和响应式编程的框架,也可称其为函数响应式编程(FRP)框架,强调一点,RAC最大的优点是提供了一个单一的、统一的方法去处理异步的行为,包括delegate方法,blocks回调,target-action机制,notifications和KVO。导入在项目的podfile文件中添加#RACpod'ReactiveObjC'在使用时导入#im
- Flutter开发iOS问题记录
Kevin写代码
Flutteriosfluttercocoaxcode
一、版本适配问题warning:TheiOSdeploymenttarget‘IPHONEOS_DEPLOYMENT_TARGET’issetto10.0,buttherangeofsupporteddeploymenttargetversionsis12.0to17.2.99.(intarget‘Protobuf’fromproject‘Pods’)可以通过在podfile中配置解决。post_
- iOS cocoapod 的使用
郝鹏_25cf
1、为项目添加pod--三方库管理插件打开命令行工具cd到项目目录:cd执行以下命令:podinit手动编辑新生成的podfile文件并保存执行:podinstall--no-repo-update修饰符的意思是不更新本地的pod库,如果发现自己想要的三方库没有找到,可能是本地pod库需要更新了,执行:podupdate更新完成后再调用:podinstall--no-repo-update2、需要
- iOS Cocoapods 如何更新Podfile指定的库
古轩沁夢
已有库全部更新:podupdate更新指定第三方库:podupdate库名Podfile.lock里面的信息安装最新库:podinstall只安装新添加的库,已更新的库忽略:podinstall--verbose--no-repo-update只更新指定的库,其它库忽略:podupdate库名--verbose--no-repo-update
- 添加多target后 cocoapod的问题
维若
diff:/../Podfile.lock:Nosuchfileordirectorydiff:/Manifest.lock:Nosuchfileordirectoryerror:ThesandboxisnotinsyncwiththePodfile.lock.Run'podinstall'orupdateyourCocoaPodsinstallation.google一圈之后,找到两个解决方案:
- iOS踩过的坑之项目中配置多个target及podfile文件配置
缘來諟夢
本篇文章主要引自Simple_Dev写的IOS开发日记1-项目中配置多个target及podfile文件配置前言最近公司的一个项目是分两个app端,两个app差异很小,差不多70%都是相同的模块,只是个别模块有些差异。最开始没想那么多,为了简单,分别创建了两个项目,后来因为领导要求两个端要同时进行,突然觉得要在两个项目中切换,复用相同的模块很麻烦,毅然决定,把两个app端柔和在一个项目中。记得以前
- pod 命令 大全
小黑技术
pod命令创建默认的Podfile$podinit第一次使用安装框架$podinstall安装框架,不更新本地索引,速度快,但是不会升级本地代码库$podinstall--no-repo-update今后升级、添加、删除框架$podupdate更新框架,不更新本地索引,速度快可以安装新框架或者删除不用的框架,但是不会升级项目已经安装的框架$podupdate--no-repo-update查看哪些
- pod项目安装Alamofire、ObjectMapper、AlamofireObjectMapper
pomelo_西
在Pods目录下的Podfile配置如下:platform:ios,'10.13'target'cloudGym'do#Commentthenextlineifyou'renotusingSwiftanddon'twanttousedynamicframeworksuse_frameworks!pod'Alamofire','~>4.8.1'pod'ObjectMapper','~>3.4'pod
- M1模拟器编译不通过
Distance先生
ios
XCode12.4已解决该问题。不需要修改。第1步:BuildSetting中在ExcludedArchitectures对模拟器添加arm64第2步:Podfile文件中添加以下代码,然后podinstallpost_installdo|installer|installer.pods_project.targets.eachdo|target|target.build_configuratio
- 最新cocoapods podFile文件
海笙樾
CocoaPods是iOS中很方便的管理第三方库的插件,使用CocoaPods来管理第三方库,前提是要写好Podfile文件,通过这个文件来配置第三方库的依赖、版本等。在之前使用Podfile文件时只需要在Podfile里面键入target'MyApp'pod'AFNetworking','~>1.0'即可,但是在version1.4.0的Cocoapods则需要指定文件位置(建议先pod--ve
- cocoapods 常用命令
培根芝士
iOScocoapods
podenv查看cocoapods环境变量podlibcreate创建一个pod库,可以选择是否带一个Example工程;podinit在你的工程目录下执行之后,工程目录之下会多一个podfile文件;podinstall在工程第一次使用或者中间有添加,删除,更新库的时候使用podinstall--verbose--no-repo-update执行podinstall但不升级本地cocoapods
- pod install vs pod update
luckyhong
1.podinstall1.1.使用场景我们在项目中第一次使用CocoaPods,进行安装的时候会使用这个命令;我们在Podfile中增加或删除某个pod后,也是使用这个命令,而不是使用podupdate。1.2.执行流程每次运行podinstall命令,下载并安装新的pod时,它会为Podfile.lock文件中的每个pod写入已安装的版本,此文件跟踪每个pod的已安装版本并锁定这些版本,.lo
- Swift 使用CocoaPods导入Alamofire,却识别不到Alamofire
jsone
像往常使用CocoaPods导入第三方库一样,在Podfile文件添加pod'Alamofire',然后在使用终端podinstalluse_frameworks!source'https://github.com/CocoaPods/Specs.git'#公有库地址target'项目名称'dopod'Alamofire'end然后在需要调用的地方导入AlamofireimportAlamofir
- iOS ------ 调用高德地图SDK
付闯688
ioscocoamacos
一,导入第三方库这里使用CocoaPods安装SDK,方法和前面导入第三方库相同1.打开终端,cd文件路径进入到所创建的项目文件中2.输入podinit为该项目创建Podfile文件3.编辑Podfile文件Podfile文件内容如下:platform:ios,'7.0'#手机的系统target'YourProjectTarget'dopod'AMap3DMap'#3D地图SDK#pod'AMap
- 【iOS】高德地图SDK的详细使用
kochunk1t
iosobjective-cxcode移动开发
文章目录前言需要用到的库显示基础地图地图定位位置搜索路线规划前言关于如何调用高德地图的SDK,项目前需要下载哪些库,还有正式开始写项目前的一些注意事项可见这篇博客【iOS】调用百度、高德地图SDK需要用到的库PodFile中写入以下:platform:ios,'7.0'target'你的工程名字'dopod'AMap3DMap'pod'AMapLocation'pod'AMapSearch'end
- iOS 创建新项目使用pod install提示警告的几个解决办法
ReadyFlyStone
新建项目时大家还是比较习惯使用cocoapods来对第三方库进行管理,目前在新创建podfile文件之后初始化pod时会有警告提示image.png1、[!]ThePodfiledoesnotcontainanydependencies.当前podfile文件中未包含任何第三方库,可以忽略,只要后面引入第三方库之后该警告自动消失2、[!]Automaticallyassigningplatform
- 关于报错'sharedApplication' is unavailable: not available on iOS (App Extension)
十方树
解决办法:在Podfile中增加以下代码,然后重新pod即可解决问题post_installdo|installer_representation|installer_representation.pods_project.targets.eachdo|target|target.build_configurations.eachdo|config|config.build_settings['A
- Xcode15一个xcworkspace管理多个xcodeproj从零开始,一个主程序,多个子程序,一个主程序引用多个静态库
嘻嘻哈哈 ^ _ ^ !
开发语言swiftios
创建主程序:MainProject目录结构:sandbox设置成NO:否则Xcode15不能运行创建子程序创建Framework创建多个子程序后的目录结构在主程序的Podfile中添加代码#Uncommentthenextlinetodefineaglobalplatformforyourprojectplatform:ios,'13.0'use_frameworks!workspace'Main
- The iOS Simulator deployment target ‘IPHONEOS_DEPLOYMENT_TARGET‘ is set to 8.0, but the range...
Gemini_Kanon
iosFlutter
今天好信儿把xcode升级到最新版本,然后运行之前的flutter项目报了这个错解决办法:在ios中podfile文件最后添加如下代码post_installdo|installer|installer.pods_project.targets.eachdo|target|flutter_additional_ios_build_settings(target)target.build_confi
- iOS - 接入Facebook登录功能
小例子
官方指导iOS版Facebook登录—快速入门根据官方指导基本上可以实现基本的登录登出功能。Facebook注册账号Facebook开发者账号的注册,按照文章提示一般都可以很顺利的进行。添加应用和设置bundleID,测试的APP中的bundleID必须保持一致。cocoapods添加facebook的SDK包//在podfile文件中加入以下文字pod'FBSDKLoginKit'配置项目使用包
- you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true`
蚂蚁呀嘿嘿嘿
xcodecocoapods
在升级老项目的pods的时候更新到最新pods出现报错:[!]ThefollowingSwiftpodscannotyetbeintegratedasstaticlibraries:TheSwiftpod`FirebaseCoreInternal`dependsupon`GoogleUtilities`,whichdoesnotdefinemodules.Tooptintothosetargets
- 学习笔记二
玉思盈蝶
学习笔记二1.cocopods忽略引入库的所有警告:在Podfile文件加上以下即可。#忽略引入库的所有警告inhibit_all_warnings!2.第三方库:#分页pod'DNSPageView','~>1.0.1'#跑马灯pod'JXMarqueeView'#消息提示pod'SwiftMessages','~>4.1.4'#pod'YYKit'#播放网络音频pod'StreamingKit
- iOS组件化探究之私有库的创建
6灰太狼9
http://www.cocoachina.com/ios/20180511/23359.html参考链接我是用的github创建的私有库!按照流程就可以搞下来!有两个坑!坑1:.podspec文件中s.homepage和s.source中git的路径一定要能访问到。坑2:Podfile文件中source有两个。source'https://github.com/abugtao/HTRepo.gi
- 升级Xcode14.3 后运行报错,三方库支持版本过低(原因是libarclite_iphoneos文件缺失)
品茗听雨轩
升级Xcode14.3后运行报错Filenotfound:/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos原因是libarclite_iphoneos文件缺失解决方案分两种情况有的三方库支持版本过低,在podfile文
- 分享100个最新免费的高匿HTTP代理IP
mcj8089
代理IP代理服务器匿名代理免费代理IP最新代理IP
推荐两个代理IP网站:
1. 全网代理IP:http://proxy.goubanjia.com/
2. 敲代码免费IP:http://ip.qiaodm.com/
120.198.243.130:80,中国/广东省
58.251.78.71:8088,中国/广东省
183.207.228.22:83,中国/
- mysql高级特性之数据分区
annan211
java数据结构mongodb分区mysql
mysql高级特性
1 以存储引擎的角度分析,分区表和物理表没有区别。是按照一定的规则将数据分别存储的逻辑设计。器底层是由多个物理字表组成。
2 分区的原理
分区表由多个相关的底层表实现,这些底层表也是由句柄对象表示,所以我们可以直接访问各个分区。存储引擎管理分区的各个底层
表和管理普通表一样(所有底层表都必须使用相同的存储引擎),分区表的索引只是
- JS采用正则表达式简单获取URL地址栏参数
chiangfai
js地址栏参数获取
GetUrlParam:function GetUrlParam(param){
var reg = new RegExp("(^|&)"+ param +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null
- 怎样将数据表拷贝到powerdesigner (本地数据库表)
Array_06
powerDesigner
==================================================
1、打开PowerDesigner12,在菜单中按照如下方式进行操作
file->Reverse Engineer->DataBase
点击后,弹出 New Physical Data Model 的对话框
2、在General选项卡中
Model name:模板名字,自
- logbackのhelloworld
飞翔的马甲
日志logback
一、概述
1.日志是啥?
当我是个逗比的时候我是这么理解的:log.debug()代替了system.out.print();
当我项目工作时,以为是一堆得.log文件。
这两天项目发布新版本,比较轻松,决定好好地研究下日志以及logback。
传送门1:日志的作用与方法:
http://www.infoq.com/cn/articles/why-and-how-log
上面的作
- 新浪微博爬虫模拟登陆
随意而生
新浪微博
转载自:http://hi.baidu.com/erliang20088/item/251db4b040b8ce58ba0e1235
近来由于毕设需要,重新修改了新浪微博爬虫废了不少劲,希望下边的总结能够帮助后来的同学们。
现行版的模拟登陆与以前相比,最大的改动在于cookie获取时候的模拟url的请求
- synchronized
香水浓
javathread
Java语言的关键字,可用来给对象和方法或者代码块加锁,当它锁定一个方法或者一个代码块的时候,同一时刻最多只有一个线程执行这段代码。当两个并发线程访问同一个对象object中的这个加锁同步代码块时,一个时间内只能有一个线程得到执行。另一个线程必须等待当前线程执行完这个代码块以后才能执行该代码块。然而,当一个线程访问object的一个加锁代码块时,另一个线程仍然
- maven 简单实用教程
AdyZhang
maven
1. Maven介绍 1.1. 简介 java编写的用于构建系统的自动化工具。目前版本是2.0.9,注意maven2和maven1有很大区别,阅读第三方文档时需要区分版本。 1.2. Maven资源 见官方网站;The 5 minute test,官方简易入门文档;Getting Started Tutorial,官方入门文档;Build Coo
- Android 通过 intent传值获得null
aijuans
android
我在通过intent 获得传递兑现过的时候报错,空指针,我是getMap方法进行传值,代码如下 1 2 3 4 5 6 7 8 9
public
void
getMap(View view){
Intent i =
- apache 做代理 报如下错误:The proxy server received an invalid response from an upstream
baalwolf
response
网站配置是apache+tomcat,tomcat没有报错,apache报错是:
The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading fr
- Tomcat6 内存和线程配置
BigBird2012
tomcat6
1、修改启动时内存参数、并指定JVM时区 (在windows server 2008 下时间少了8个小时)
在Tomcat上运行j2ee项目代码时,经常会出现内存溢出的情况,解决办法是在系统参数中增加系统参数:
window下, 在catalina.bat最前面
set JAVA_OPTS=-XX:PermSize=64M -XX:MaxPermSize=128m -Xms5
- Karam与TDD
bijian1013
KaramTDD
一.TDD
测试驱动开发(Test-Driven Development,TDD)是一种敏捷(AGILE)开发方法论,它把开发流程倒转了过来,在进行代码实现之前,首先保证编写测试用例,从而用测试来驱动开发(而不是把测试作为一项验证工具来使用)。
TDD的原则很简单:
a.只有当某个
- [Zookeeper学习笔记之七]Zookeeper源代码分析之Zookeeper.States
bit1129
zookeeper
public enum States {
CONNECTING, //Zookeeper服务器不可用,客户端处于尝试链接状态
ASSOCIATING, //???
CONNECTED, //链接建立,可以与Zookeeper服务器正常通信
CONNECTEDREADONLY, //处于只读状态的链接状态,只读模式可以在
- 【Scala十四】Scala核心八:闭包
bit1129
scala
Free variable A free variable of an expression is a variable that’s used inside the expression but not defined inside the expression. For instance, in the function literal expression (x: Int) => (x
- android发送json并解析返回json
ronin47
android
package com.http.test;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import
- 一份IT实习生的总结
brotherlamp
PHPphp资料php教程php培训php视频
今天突然发现在不知不觉中自己已经实习了 3 个月了,现在可能不算是真正意义上的实习吧,因为现在自己才大三,在这边撸代码的同时还要考虑到学校的功课跟期末考试。让我震惊的是,我完全想不到在这 3 个月里我到底学到了什么,这是一件多么悲催的事情啊。同时我对我应该 get 到什么新技能也很迷茫。所以今晚还是总结下把,让自己在接下来的实习生活有更加明确的方向。最后感谢工作室给我们几个人这个机会让我们提前出来
- 据说是2012年10月人人网校招的一道笔试题-给出一个重物重量为X,另外提供的小砝码重量分别为1,3,9。。。3^N。 将重物放到天平左侧,问在两边如何添加砝码
bylijinnan
java
public class ScalesBalance {
/**
* 题目:
* 给出一个重物重量为X,另外提供的小砝码重量分别为1,3,9。。。3^N。 (假设N无限大,但一种重量的砝码只有一个)
* 将重物放到天平左侧,问在两边如何添加砝码使两边平衡
*
* 分析:
* 三进制
* 我们约定括号表示里面的数是三进制,例如 47=(1202
- dom4j最常用最简单的方法
chiangfai
dom4j
要使用dom4j读写XML文档,需要先下载dom4j包,dom4j官方网站在 http://www.dom4j.org/目前最新dom4j包下载地址:http://nchc.dl.sourceforge.net/sourceforge/dom4j/dom4j-1.6.1.zip
解开后有两个包,仅操作XML文档的话把dom4j-1.6.1.jar加入工程就可以了,如果需要使用XPath的话还需要
- 简单HBase笔记
chenchao051
hbase
一、Client-side write buffer 客户端缓存请求 描述:可以缓存客户端的请求,以此来减少RPC的次数,但是缓存只是被存在一个ArrayList中,所以多线程访问时不安全的。 可以使用getWriteBuffer()方法来取得客户端缓存中的数据。 默认关闭。 二、Scan的Caching 描述: next( )方法请求一行就要使用一次RPC,即使
- mysqldump导出时出现when doing LOCK TABLES
daizj
mysqlmysqdump导数据
执行 mysqldump -uxxx -pxxx -hxxx -Pxxxx database tablename > tablename.sql
导出表时,会报
mysqldump: Got error: 1044: Access denied for user 'xxx'@'xxx' to database 'xxx' when doing LOCK TABLES
解决
- CSS渲染原理
dcj3sjt126com
Web
从事Web前端开发的人都与CSS打交道很多,有的人也许不知道css是怎么去工作的,写出来的css浏览器是怎么样去解析的呢?当这个成为我们提高css水平的一个瓶颈时,是否应该多了解一下呢?
一、浏览器的发展与CSS
- 《阿甘正传》台词
dcj3sjt126com
Part Ⅰ:
《阿甘正传》Forrest Gump经典中英文对白
Forrest: Hello! My names Forrest. Forrest Gump. You wanna Chocolate? I could eat about a million and a half othese. My momma always said life was like a box ochocol
- Java处理JSON
dyy_gusi
json
Json在数据传输中很好用,原因是JSON 比 XML 更小、更快,更易解析。
在Java程序中,如何使用处理JSON,现在有很多工具可以处理,比较流行常用的是google的gson和alibaba的fastjson,具体使用如下:
1、读取json然后处理
class ReadJSON
{
public static void main(String[] args)
- win7下nginx和php的配置
geeksun
nginx
1. 安装包准备
nginx : 从nginx.org下载nginx-1.8.0.zip
php: 从php.net下载php-5.6.10-Win32-VC11-x64.zip, php是免安装文件。
RunHiddenConsole: 用于隐藏命令行窗口
2. 配置
# java用8080端口做应用服务器,nginx反向代理到这个端口即可
p
- 基于2.8版本redis配置文件中文解释
hongtoushizi
redis
转载自: http://wangwei007.blog.51cto.com/68019/1548167
在Redis中直接启动redis-server服务时, 采用的是默认的配置文件。采用redis-server xxx.conf 这样的方式可以按照指定的配置文件来运行Redis服务。下面是Redis2.8.9的配置文
- 第五章 常用Lua开发库3-模板渲染
jinnianshilongnian
nginxlua
动态web网页开发是Web开发中一个常见的场景,比如像京东商品详情页,其页面逻辑是非常复杂的,需要使用模板技术来实现。而Lua中也有许多模板引擎,如目前我在使用的lua-resty-template,可以渲染很复杂的页面,借助LuaJIT其性能也是可以接受的。
如果学习过JavaEE中的servlet和JSP的话,应该知道JSP模板最终会被翻译成Servlet来执行;而lua-r
- JZSearch大数据搜索引擎
颠覆者
JavaScript
系统简介:
大数据的特点有四个层面:第一,数据体量巨大。从TB级别,跃升到PB级别;第二,数据类型繁多。网络日志、视频、图片、地理位置信息等等。第三,价值密度低。以视频为例,连续不间断监控过程中,可能有用的数据仅仅有一两秒。第四,处理速度快。最后这一点也是和传统的数据挖掘技术有着本质的不同。业界将其归纳为4个“V”——Volume,Variety,Value,Velocity。大数据搜索引
- 10招让你成为杰出的Java程序员
pda158
java编程框架
如果你是一个热衷于技术的
Java 程序员, 那么下面的 10 个要点可以让你在众多 Java 开发人员中脱颖而出。
1. 拥有扎实的基础和深刻理解 OO 原则 对于 Java 程序员,深刻理解 Object Oriented Programming(面向对象编程)这一概念是必须的。没有 OOPS 的坚实基础,就领会不了像 Java 这些面向对象编程语言
- tomcat之oracle连接池配置
小网客
oracle
tomcat版本7.0
配置oracle连接池方式:
修改tomcat的server.xml配置文件:
<GlobalNamingResources>
<Resource name="utermdatasource" auth="Container"
type="javax.sql.DataSou
- Oracle 分页算法汇总
vipbooks
oraclesql算法.net
这是我找到的一些关于Oracle分页的算法,大家那里还有没有其他好的算法没?我们大家一起分享一下!
-- Oracle 分页算法一
select * from (
select page.*,rownum rn from (select * from help) page
-- 20 = (currentPag