Tag: cocoapods

无法在通知服务扩展中使用pod

我正在创build一个通知扩展,按照标准添加了目标,并在其中添加了一个窗格,如下所示: 步骤1 : target 'MyProject' do # Integration – Frameworks pod 'Fabric' pod 'Crashlytics' pod 'MORichNotification' end target 'NotificationServices' do pod 'MORichNotification' end 步骤:2将 “MORichNotification.h”导入到我的项目桥头文件中。 现在我想在我的NotificationService类中使用MORichNotification类,它显示下面的错误。 我尝试了干净的项目,重新启动,擦拭DerivedData,但没有任何改变。

更新CocoaPods后没有find头文件

我今天更新了CocoaPods( sudo gem install cocoapods )。 执行pod install ,项目将不再编译。 看起来这个吊舱的标题不再被这个项目find。 最近的cocoa豆豆版本有什么变化吗? 以下是我的pod文件: source 'https://github.com/artsy/Specs.git' source 'https://github.com/CocoaPods/Specs.git' platform :ios, '7.0' inhibit_all_warnings! pod 'CocoaLumberjack' pod 'RestKit', '~> 0.20.0' pod 'RestKit/Testing' pod 'NLTHTTPStubServer' pod 'Appsee' pod 'google-plus-ios-sdk', '1.7.0'

只有CocoaPods的构build主动架构需要在Xcode 6.x中为NO

在我们使用cocoapods的旧项目中,从Xcode 6开始就有一个奇怪的问题:在编译iphone(而不是模拟器)的时候,一些随机的cocoapods在构build时没有find(例如Flurry)。 在Xcode 5中一切都很好。 这是在Cocoapods目标中的“仅生成活动架构=是”时。 当“仅build立活动架构=否”时,一切都按预期工作。 为什么是这样? 我已经几次重build了椰子树,但它保持不变。

如何在swift中导入JSQMessagesViewController?

我正在使用xcode 6.3,swift 1.2,我用cocoapods安装了“JSQMessagesViewController”库。 这是我的pod文件: pod 'JSQMessagesViewController' 和我的桥文件: #import <JSQMessagesViewController/JSQMessages.h> 那么我得到的错误: 'JSQMessagesViewController/JSQMessages.h' file not found with <angled> include; use "quotes" instead 我不知道为什么会出错。 当我更新桥文件 #import "JSQMessagesViewController/JSQMessages.h" 我得到错误 JSQMessagesViewController/JSQSystemSoundPlayer+JSQMessages.h:19:9: 'JSQSystemSoundPlayer/JSQSystemSoundPlayer.h' file not found with <angled> include; use "quotes" instead 这真的让我感到困惑,因为错误是在我无法修改的JSQMessagesViewController的源代码中。 我GOOGLE了一天,没有办法解决这个问题。 由于JSQMessagesViewController库在githup中非常stream行,我相信必须有人知道如何解决这个问题。

找不到-lGTMSessionFetcher的库

Unity 5.6.2,Firebase Unity SDK 4.0.3,Cocoapod 1.3.1我将Firebase Auth软件包添加到Unity Project,Android工作正常。 但是当我在iOs上运行相同的项目时,在Unity中编译运行正常,但在编译期间在XCode中失败 ld: library not found for -lGTMSessionFetcher clang: error: linker command failed with exit code 1 任何想法如何解决它? 我尝试添加Firebase身份validation表单Unity SDK 4.1.0,但由于以下原因,Unity开始失败: iOS framework addition failed due to a Cocoapods installation failure. Specs satisfying the 'Firebase/DynamicLinks (=4.0.4)' dependency were found, but they required a higher minimum deployment target pod […]

Pod Spec Lint CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改

命令pod spec lint失败。 我在这里找不到类似的问题和Cocoapod的回购。 完整日志: – > GPKit(0.1.1) – 错误| [iOS]未知:遇到未知错误(757:意外的令牌在'2017-08-17 16:12:08.932 simctl [55281:678990] CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改Frameworkpath(/ Applications / Xcode .app / Contents / Developer / Library / PrivateFrameworks / CoreSimulator.framework)和版本(375.21)与现有作业path不匹配(/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator。 CoreSimulatorService.xpc)和版本(459.13)。试图删除陈旧的服务,以添加预期的版本。 分析了1 podspec。 该规范没有通过validation,由于1错误。 任何解决scheme? 为什么发生?

与包含在项目中的自定义框架共享cocoapods

对于以下架构: _码 ___CustomFramework ___ProjectA _____ProjectA _____Workspace _____Podfile _____Pods 我正在使用ProjectA的工作区(由podfile生成),并且我已经在ProjectA中包含了CustomFramework,我可以使用ProjectA内CustomFramework的方法。 现在,我想分享与CustomFramework的ProjectA的豆荚。 所以我可以使用CustomFramework中的ProjectA的pod方法。 这就是我卡住,需要帮助。 我到目前为止所尝试的: 但是我不确定这是否是正确的方式,或者链接CustomFramework的好语法 PODFILE 平台:ios,'8.0' link_with'ProjectA','CustomFramework' pod'nameofpod','3.1.0' 我还设置了“允许非模块化包含在框架模块中”并将其设置为YES ,对于项目文件(蓝色)和自定义框架 但CustomFramework仍然不能识别我的豆荚: – /

如何将Firebase添加到Today Extension iOS

我需要能够在我的“今日视图扩展”中使用Firebase,但似乎无法导入Firebase模块。 我想这是因为我需要一个新的目标在我的cocoa豆荚文件,但我不知道如何做到这一点。 谢谢。

受支持的平台,基础SDK,仅在pod更新后恢复主动体系结构设置

我的团队最近开始雇用CocoaPods来pipe理我们的iOS应用程序项目中的依赖项。 这是podfile: platform :ios, '6.0' pod "UI7Kit" pod "AFNetworking", "~> 2.0" pod "TMCache" pod "SVProgressHUD" pod "SVPullToRefresh" 但是,使用CocoaPods后,build立iPhone 5的目标总是失败,但成功的模拟器。 这里是错误日志: ld: warning: ignoring file [DerivedData directory]/libPods.a, file was built for archive which is not the architecture being linked (armv7): [DerivedData directory]/libPods.a Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SVProgressHUD", referenced from: objc-class-ref in ….o "_OBJC_CLASS_$_TMCache", referenced from: […]

Google Analytics Pod会安装太多的依赖项

我刚刚在iOS开发人员指南中介绍了Google Analytics Pod,其中包括: pod 'Google/Analytics' 运行时 pod install 它会安装以下依赖项: Installing FirebaseAnalytics (3.2.0) Installing FirebaseInstanceID (1.0.6) Installing Google (3.0.3) Installing GoogleAnalytics (3.14.0) Installing GoogleInterchangeUtilities (1.2.1) Installing GoogleSymbolUtilities (1.1.1) Installing GoogleUtilities (1.3.1) 由于我不使用Firebase,因此我想摆脱FirebaseAnalytics和FirebaseInstanceID (以及框架本身不需要的所有窗格)。 安装未使用的依赖关系只会增加我的应用程序大小。 我只想安装绝对最小数量的豆荚来运行GoogleAnalytics 。 任何想法如何踢未使用的豆荚?