Tag: cocoapods

在使用Cocoapods 1.0的框架项目上破坏了Interface Builder

在迁移到Cocoapods 1.0后,我的XIB或使用自定义IBDesignable Storyboard都IBDesignable在dynamic框架项目上正确呈现。 它失败,像这样的错误: file:///Users/xxxxx/workspace/FooFramework/FooFramework/View.xib: error: IB Designables: Failed to update auto layout status: dlopen(FooFramework.framework, 1): Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: FooFramework.framework Reason: image not found file:///Users/xxxxx/workspace/FooFramework/FooFramework/View.xib: error: IB Designables: Failed to render instance of CustomView: dlopen(FooFramework.framework, 1): Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: FooFramework.framework Reason: image not found 重现步骤: 创build一个新的iOS框架项目。 创build并添加任何依赖到Podfile文件。 例如: source […]

iOS项目中无法更新Google AdMob

我已经使用Cocoapods将Google AdMob集成到我的iOS(Swift)项目中。 这工作正常。 当我第一次看到关于AdMod的更新的日志消息时,我运行了pod update但消息仍然logging在案,并告诉我更新AdMob。 从pod update的输出中,我看到AdMob是最新版本。 v 7.8.1,但不知何故Xcode不能识别这个变化。 有任何想法吗? 更新 我的Podfile: # Uncomment this line to define a global platform for your project # platform :ios, '9.0' target 'En Yakın' do # Comment this line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for Ara Bul pod […]

watchOS 2与CocoaPods合作

有没有人得到CocoaPods与watchOS 2工作? 我试着用'use_framework!' '平台:看',2.0'但它说:“[!]无效的Podfile文件:不支持的平台watchos2 。平台必须是:ios或:osx 。更新CocoaPods可能会解决这个问题。 我在CocoaPods的最新版本。

无法更新我的吊舱库

我已经在Cocoapods上发布了我的组件HDTableDataSource。 我现在通过添加一些代码更新了代码的版本。 当试图使用命令“pod spec lint”进行编译时,它给了我下面的错误。 [!] /usr/local/bin/git clone https://github.com/\<GITHUB_USERNAME\>/HDTableDataSource.git /private/var/folders/fm/vxq9zgy52zq28lvcq0qwzpj80000gn/T/CocoaPods/Lint/Pods/HDTableDataSource –single-branch –depth 1 –branch 0.1.0 Cloning into '/private/var/folders/fm/vxq9zgy52zq28lvcq0qwzpj80000gn/T/CocoaPods/Lint/Pods/HDTableDataSource'… fatal: unable to access 'https://github.com/<GITHUB_USERNAME>/HDTableDataSource.git/': The requested URL returned error: 400 请帮助我更新我的图书馆。 我的图书馆在https://github.com/HarshitDaftary/HDTableDataSource

CocoaPods Card.io错误

我想在Xcode(7.1)上安装cocoaPods的Card.io(5.2.2)。 但是当我运行我的项目compilator显示我这个错误: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CardIOUtilities", referenced from: type metadata accessor for __ObjC.CardIOUtilities in CheckoutTableViewController.o "_OBJC_CLASS_$_CardIOPaymentViewController", referenced from: type metadata accessor for __ObjC.CardIOPaymentViewController in CheckoutTableViewController.o ld: symbol(s) not found for architecture arm64 我的Podfile包含: # Uncomment this line to define a global platform for your project platform :ios, '8.1' # Uncomment this line if […]

Cocoapods(私人)无法find规格

我们有私人椰子树。 当我inputpod repo : company-private – Type: git (origin) – URL: ssh://me@myCompany.com//path/git/PrivateCocoapods – Path: /Users/Username/.cocoapods/repos/company-private master – Type: git (origin) – URL: https://github.com/CocoaPods/Specs.git – Path: /Users/Username/.cocoapods/repos/master 我input了~/.cocoapods/repos : $ ls company-private master $ cd company-private $ ls Specs $ cd Specs: $ ls MyProject $ cd MyProject: $ ls 0.0.19 0.0.2 0.0.5 $ cd /0.0.5: […]

Swift和Cocoapods – 缺less必需的模块

我正在做一个Swift框架。 这个框架依赖于两个库, Alamofire和SwiftyJSON ,它们都是用Swift编写的。 我正在使用CocoaPods在我的框架中导入这些库。 这里是我的Podfile的内容: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'Alamofire', '1.2' pod 'SwiftyJSON', '2.2' 在我的框架中,我有一个导入和使用这两个模块的类: import Alamofire import SwiftyJSON 我可以运行pod install并成功构build我的框架 ! 当我试图在Swift项目中使用我的框架时,现在事情变得棘手。 我将.framework文件复制到我的项目中。 在我的项目目标的构build阶段,我添加一个“目标”设置为“框架”的复制文件阶段,并添加我的框架文件。 我在我的项目的Swift类中导入我的框架: import MyFramework 问题是:Xcode不断告诉我 缺less必需的模块“SwiftyJSON” 更令人惊讶的是:如果我不使用SwiftyJSON并从我的框架中删除它(但仍然使用Alamofire)… 它的工作原理! 我有任何其他比SwiftyJSON的问题相同的问题。 只有Alamofire似乎工作。 我已经看到了一些问题,像这样 ,并尝试了一些东西(改变生成设置,将库添加到链接库,添加一个桥接头,虽然我不处理ObjC)没有效果… 有没有人有任何想法如何解决这个问题? 这让我疯狂! 编辑:我正在使用Cocoapods v0.37.0.beta.1。 与v0.36.4相同的问题。

正确的方式来扩展或定制cocoapods

在项目中使用cocoapods进行pipe理时,扩展或自定义Framework(pod)的正确方法是什么? 我知道源可以直接编辑,但似乎不是正确的解决scheme。

Firebase Analytics与iOS框架开发项目

我正在使用coocapods添加Firebase分析,我的Podfile是 platform :ios, '8.0' use_frameworks! workspace 'ProjectWorkspace.xcworkspace' abstract_target 'Shows' do pod 'SwiftProtobuf', git: 'https://github.com/apple/swift-protobuf.git', :tag => '0.9.24' pod 'Firebase/Core' pod 'Firebase/Messaging' target 'HostApp' do project 'HostAppFolder/HostApp.xcodeproj' end target 'HostAppReleaseTarget' do project 'HostAppFolderApp/HostApp.xcodeproj' end target 'FrameWorkProject' do project 'FrameworkProjectFolder/FrameWorkProject.xcodeproj' end end 如果我只将SwiftProtobuf作为依赖项添加,它对于主机应用程序以及Framework项目都可以正常工作。 如果我添加Firebase依赖项,则会出现运行时错误,并且应用程序会因错误消息而崩溃 Foo类同时在HostApplicationPath和FrameworkProjectPath中实现,其中一个将被使用。 哪一个是未定义的 为Firebase的每个类文件。 当我从框架项目中删除其他连接器标志$(inheritance),它工作正常,但我不能使用firebase到我的框架项目。 我的框架和主机应用程序是用Swfit 3.0编写的,而xcode版本是8.x 我的项目结构是我已经手动创build一个工作区,并将其命名为“EVAWorkspace.xcworkspace”,并将我的主机应用程序和框架项目添加到此工作区,然后我将cocoapods添加到工作区。 Eva是框架项目,EvaApp是主机应用程序项目。

FIRApp链接器错误

我search了SO和Google,但找不到可行的答案。 我已经在多个项目上使用了新的Firebase Cocoapod,但现在,将其添加到不同的项目时,我收到以下错误。 我使用Xcode 7.3.1与cocoapods 1.0.1。 这是我的podfile: 任何帮助是极大的赞赏!