草庐IT

CocoaPods

全部标签

ios - 此处可能误用逗号运算符

更新到推荐的pod设置后,我在Xcode中收到警告。警告是Possiblemisuseofcommaoperatorhere建议修复Castexpressiontovoidtosilencewarning警告出现在leveldb-library/db/c.cc的开始键和限制键处:voidleveldb_compact_range(leveldb_t*db,constchar*start_key,size_tstart_key_len,constchar*limit_key,size_tlimit_key_len){Slicea,b;db->rep->CompactRange(//Pas

iOS cocoapods - 如何添加 libsqlite3.dylib

我想将libsqlite3.dylib的iOS框架作为一个框架包含在cocoapod中。在我的.podspec文件中有这样一行:spec.framework='libsqlite3.dylib'当我运行podinstall时,它安装正常,但在构建过程中出现错误。frameworknotfoundlibsqlite3.dylib我可以通过在BuildPhases>LinkBinarywithLibraries>+菜单中搜索来手动添加库。但是,然后我必须为框架注释掉我的podspec行以使错误消失。我真的很想在没有手动步骤的情况下使用cocoapods来完成这项工作。...所以我假设我在p

ios - 编译 Ionic 应用程序时未设置 PODS_ROOT 和其他 pod 环境变量

我构建了一个使用Intercom(第三方扩展)的Ionic2应用程序。Intercom使用cocoapods安装。编译我的应用程序时出现错误:diff:/Podfile.lock:Nosuchfileordirectorydiff:/Manifest.lock:Nosuchfileordirectoryerror:ThesandboxisnotinsyncwiththePodfile.lock.Run'podinstall'orupdateyourCocoaPodsinstallation.这是由构建阶段生成的[CP]CheckPodsManifest.lock:diff"${PODS

ios - Pod 安装已取消选中所需的目标成员资格

问题我如何配置cocoapods以便运行podinstall导致Storyboard中的ProjectName检查目标成员?背景我有一个框架和一个应用程序,它们都是由我的公司创建的。我们使用Artifactory和Cocoapods来部署框架并将其拉入应用程序。该框架包含一个Storyboard,然后应用程序使用该Storyboard来呈现表单。我正在使用XCode8由“podinstall”创建的Pod目标项目名称项目名称-项目名称Pods-ProjectNameTest问题问题是必须手动更新通过运行“podinstall”创建的目标。框架中的Storyboard仅检查了Projec

ios - Cocoapods 使用_frameworks!问题

我发现在我使用的库中解决问题的方法是将use_frameworks!添加到podfile。当我在终端上运行podinstall时,出现以下错误:[!]InvalidPodfilefile:undefinedmethod`use_frameworks!'for#.UpdatingCocoaPodsmightfixtheissue.我正在使用Cocoapods,所以我不明白这个问题。使用swift的项目需要此标签,我使用的是objective-c。 最佳答案 在我看来像是该错误消息的第二部分:UpdatingCocoaPodsmight

ios - 找不到扩展的主机目标

报告你做了什么?我尝试运行podinstall命令您预计会发生什么?像1.1.1版本一样正确安装所有pod依赖项。发生了什么?[!]Unabletofindhosttarget(s)formyExtension1,myExtension2.PleaseaddthehosttargetsfortheembeddedtargetstothePodfile.Certainkindsoftargetsrequireahosttarget.Ahosttargetisa"parent"targetwhichembedsa"child"target.Theseareexampletypesoftar

ios - 更新 cocoa pod 后,xcode 出现体系结构错误的重复符号

这是我的podFile:source'https://github.com/CocoaPods/Specs.git'platform:ios,'7.0'pod'AFNetworking'pod'ODSAccordionView','0.4.4'pod'IQKeyboardManager'pod'NYXImagesKit',:git=>'https://github.com/Nyx0uf/NYXImagesKit.git'pod'PEPhotoCropEditor'pod'CocoaAsyncSocket'pod'PKRevealController'pod'Haneke','~>1.0

ios - Google Cocoapods 未安装

每当我尝试安装任何Google的cocoapods时,我都会遇到两个错误之一。或者:$podinstallAnalyzingdependencies[!]TheversionofCocoaPodsusedtogeneratethelockfile(0.38.0.beta.2)ishigherthantheversionofthecurrentexecutable(0.37.2).Incompatibilityissuesmayarise.CocoaPods0.38.0.beta.2isavailable.Toupdateuse:`geminstallcocoapods--pre`[!]

ios - CocoaPods - 无法找到 `GoogleMaps` 的规范

我是iOS新手,我的Podfile上已经有Alamofire和MarqueeLabel,现在正尝试添加GoogleMaps,它一直显示此消息,[!]Unabletofindaspecificationfor`GoogleMaps`我的Podfile看起来像这样#Uncommentthenextlinetodefineaglobalplatformforyourprojectsource'https://github.com/CocoaPods/Specs.git'platform:ios,'9.0'target'Migapixel'do#Commentthenextlineifyou'

ios - CocoaPods 的 Pods.xcconfig 与现有的冲突

我有一个包含多个目标的项目。有一个与项目关联的xcconfig文件和多个与目标关联的xcconfig文件。现在我想通过CocoaPods合并第三方库。在$podinstall之后,CocoaPods搞砸了原始项目,因为它将自己的xcconfig文件Pds.xcconfig关联到原始项目的目标。这将完全忽略并覆盖与项目关联的原始xcconfig中定义的设置,并切换出与目标关联的原始xcconfig文件。因此,该项目最终搞砸了。例如,Cocoapods在其与每个目标关联的Pods.xcconfig中定义了以下内容:GCC_PREPROCESSOR_DEFINITIONS=$(inherit