cocoapods

How to create a cocoapod with .swift?

点点圈 提交于 2019-12-10 13:29:13
问题 I know how to work with cocoapods in a new swift project? But how can i create my own cocoapod using swift? pod lib lint produces this error: - NOTE | [xcodebuild] warning: no rule to process file '/Pod/Classes/SomeClass.swift' of type text for architecture armv7 Edit: Just found this swift branch: https://github.com/CocoaPods/CocoaPods/tree/swift 回答1: Cocoapods now supports swift : Pod-Authors-Guide-to-CocoaPods-Frameworks 回答2: Although Swift is officially supported, there are no official

Library not found for -lGTMSessionFetcher

为君一笑 提交于 2019-12-10 13:18:55
问题 Unity 5.6.2, Firebase Unity SDK 4.0.3, Cocoapod 1.3.1 I added Firebase Auth package to Unity Project and Android works fine. But when I run the same project on iOs, build in Unity runs fine, but fails in XCode during compilation ld: library not found for -lGTMSessionFetcher clang: error: linker command failed with exit code 1 Any ideas how to fix it? I've tried to add Firebase Auth form Unity SDK 4.1.0, but Unity started to fail due to: iOS framework addition failed due to a Cocoapods

Unable to find a specification for `Firebase`

和自甴很熟 提交于 2019-12-10 13:15:27
问题 I'm unable to install Firbase pod, when trying: pod install Analyzing dependencies [!] Unable to find a specification for `Firebase` Here is my podfile : platform :ios, '9.0' target 'login' do # Comment this line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for login pod 'Firebase' pod 'Firebase/Auth' end 回答1: Maybe your pod isn't synced? Try: pod repo update --verbose 回答2: In my case the problem was with my local pod repo. I fixed by doing the

Cocoapods podspec dependency import file not found

天大地大妈咪最大 提交于 2019-12-10 13:06:21
问题 I'm trying to make a Cocoapod that depends on another but I'm having issues at compile time. Say in this case MyApp is using CocoapodA and CocoapodB, B relies on A. MyApp Podfile: platform :ios, '5.0' pod 'CocoapodA' pod 'CocoapodB', :path => '../../CocoapodB' CocoapodB Podspec: s.dependency 'CocoapodA' but when I try to compile I get 'CocoapodA/CocoapodA.h' file not found where the import in CocoapodB is trying to include it. I've tried reading the Podspec documentation but I didn't really

Cocoapods - No Such Module 'module' (for any modules)

不羁的心 提交于 2019-12-10 11:35:21
问题 It's time to swallow my pride and give this up after over a week of debugging. To preface, before someone marks this question as a duplicate, I realize that this is a common question on SO. However, I've read practically every similar question and seemingly tried variations on every given answer all to no avail. While this question may look daunting, it's really not. I've simply chosen to provide a fully exhaustive list of things that may or may not be relevant in the spirit of being thorough

iOS集成flutter(不使用cocoaPods),flutter模块中使用的第三方无效

☆樱花仙子☆ 提交于 2019-12-10 11:32:31
iOS 集成Flutter不使用cocoaPods iOS不使用cocoapods集成flutter会发现集成后一部分flutter第三方(插件)不能使用,例如,国际化、本地存储、网络判断、提示框等插件。 使用cocoapods集成会发现这些插件会打包成framework集成在iOS项目中,所以在不使用cocoapods集成的情况下需要把第三方插件打包成framework集成在ios项目中。 解决方法: 在终端打开cd到flutter项目目录下执行flutter build ios --release --no-codesign,执行完成之后在 /flutter项目/build/ios/Release-iphoneos文件下会发现打包好的framework库,如下图: 这种情况下打包出的第三方库都是动态库,特别注意的是FlutterPluginRegistrant.framework是静态库 把动态集成到ios项目中并配置Embedded Binaries,如下图 还有一点要特别注意,flutter每次添加新的第三方插件,重新编译后除了添加新的framework,FlutterPluginRegistrant.framework也需要重新更换。 配置完成之后,iOS项目中加载flutter项目的VC需要使用FlutterPluginRegistrant

Travis-CI error with “eval pod install”

一曲冷凌霜 提交于 2019-12-10 11:25:53
问题 My .travis.yml file: language: objective-c script: xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator While Travis-CI is building the project it says: $ bundle --version Bundler version 1.7.4 $ xcodebuild -version -sdk $ pod --version 0.34.4 Installing Pods with 'pod install' $ pushd . ~/build/GabrielMassana/ProjectName-iOS $ pod install While installing pods the error is: The command "eval pod install" failed. Retrying, 2 of 3. The command "eval pod

ld: framework not found error in xcode 8

喜你入骨 提交于 2019-12-10 11:07:53
问题 I am using xcode 8 for development and cocoapods 1.0.1 for frameworks. After installing frameworks, i couldn't able to build my project. I am getting "ld: framework not found" error. I am using following lines in pod file: # Uncomment this line to define a global platform for your project platform :ios, '9.0' target 'Sample' do use_frameworks! pod 'MBProgressHUD', '~> 0.9' pod 'TPKeyboardAvoiding', '~> 1.2' pod 'SDWebImage', '~> 3.7' pod 'UIActivityIndicator-for-SDWebImage' pod 'UITextView

Cocoapods (private) unable to find specification

╄→гoц情女王★ 提交于 2019-12-10 10:31:37
问题 We have private cocoapods. When I type pod 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 I've entered ~/.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:

Pods.framework in red, doesn't exist in DerivedData

给你一囗甜甜゛ 提交于 2019-12-10 10:27:49
问题 I am trying to using Cocoapods 0.39.0 for the dependencies of my project. I have followed the steps, but I end up with a red Pods.framework in my project. If I look at the path where XCode 7.2.1 says it should be, it doesn't exist: /Users/ajmas/Library/Developer/Xcode/DerivedData/myproject-cskuurnzjrcpcxfoyaceaeepshgt/Build/Products/Debug/Pods.framework I have looked around at other entries in Stackoverflow, but I am not find anything indicating how the framework should be generated. The