cocoapods

include files recursively in Cocoapods podspec

戏子无情 提交于 2019-12-09 07:41:35
问题 I want to create a local podspec that is based on some private code. I can't seem to use the 'source' attribute, as that is not working. I can use the 'source_files' attribute, but it does not include files recursively. So with a directory that looks like this Library /src /Core /Audio /Graphics And my podspec looks like this: Pod::Spec.new do |s| ... s.source = 'src' # this does not work. s.source_files = 'src' # this only includes the files in src, and not in any of the Core, Audio or

AFNetworking won't compile

偶尔善良 提交于 2019-12-09 05:59:56
问题 I'm totally stuck trying to run a project on the simulator using AFNetworking. I've used this dependency before on other projects, so I don't understand what is going wrong here. First, the error when I try to run the project: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AFHTTPSessionManager", referenced from: _OBJC_CLASS_$_SharedNetworkObject in SharedNetworkObject.o "_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from: objc-class-ref in SharedNetworkObject.o "_OBJC

How to remove one of the cocoa pods plugin from Xcode project

泪湿孤枕 提交于 2019-12-09 05:12:22
问题 anyone know how to remove one of the cocoa pods plugin from Xcode project ? For example, I have installed afnetworking and nyximagekit in my project. Now, I want to remove nyximagekit but keep afnetwoking . How to do that ? 回答1: You have to edit the Podfile ( $ emacs Podfile in terminal.app) and remove the line pod 'nyximagekit' from it. ( ctrl+x , ctrl+s to save, then ctrl-x , ctrl+c to quit emacs ) Once you did that, run pod update and it will remove nyximagekit from your project. 回答2:

Podspec Link Binary Library

夙愿已清 提交于 2019-12-09 04:41:02
问题 I'm attempting to create a Podspec for: https://github.com/sincerely/shiplib-ios-framework Pod Lint passes & the files are being added to the project but it does not link the binary "Sincerely" file. The sample project build fails due to missing files when importing via: <Sincerely/filename.h> Pod::Spec.new do |s| s.name = 'ShipLib' s.version = '1.4' ... s.source = { :git => 'https://github.com/sincerely/shiplib-ios-framework.git', :tag => 's.version.to_s' } s.library = 'Sincerely' s.source

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

亡梦爱人 提交于 2019-12-09 03:50:27
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. Here is the root of my problem: No such module 'ParseUI' error message The discrepancy is that as far

How to fix build error with FBSDKLoginKit in Xcode

谁说胖子不能爱 提交于 2019-12-09 02:56:03
问题 My ios app was working fine until I ran "pod install" and updated all of my pods. I'm now getting an error when trying to build in Xcode. FBSDKLoginKit/FBSDKLoginManagerLoginResult.m:43:25: No known class method for selector 'dictionary:setObject:forKey:' Here are the FB pod versions used: Installing FBSDKCoreKit (5.0.0) Installing FBSDKLoginKit (4.44.1) Those are not specified in my podfile. I think they're installed as part of FirebaseAuth which is in my podfile. How can I resolve this? 回答1

iOS , ld: framework not found GoogleMaps for architecture arm64

我的梦境 提交于 2019-12-09 02:49:11
问题 I'm developing an app using google maps. I will explain what I did with google maps, and maybe you can help me. I was using Google maps frameworks without POD, but after a few errors about Google map Key I deleted the google map frameworks reference and I installed it using POD. Everything is working fine, but when I hit Product -> TEST now I get this error: ld: framework not found GoogleMaps for architecture arm64 Any idea how fix this? Thank you! Podfile looks like this Cocoapods v1.0 beta

Alamofire Xcode 8 Swift 3 results in 786 compile errors

别来无恙 提交于 2019-12-08 23:15:08
问题 I am using the Xcode 8.0 GM. I created a default single-view app with my deployment target set to 9.0. In my Podfile I'm targeting the bleeding edge Swift 3 branch: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0' use_frameworks! target 'MyProject' do pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift3' end I run pod install and get ... Installing Alamofire (4.0.0-beta.2) ... fantastic, no problems. I open MyProject.xcworkspace . This

IOS Run custom shell script 'embed pods framework' file not found error

ε祈祈猫儿з 提交于 2019-12-08 21:38:33
问题 I am getting an error when building my app after i removed reference to a framework i added incorrectly. i am new to ios and cocoapods /Users/MyMac/Library/Developer/Xcode/DerivedData/MyApp-ewxrexwuczochyctnqvlyusrtvvy/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-5874133373474758EEC76CFD.sh: line 2: /Users/MyMac/Documents/MyApp/Pods/Target Support Files/Pods-MyApp/Pods-MyApp-frameworks.sh: No such file or directory I am aware that the file and directory don't exist

Issue with Crashlytics and Answers kit

十年热恋 提交于 2019-12-08 20:21:07
问题 I am using Crashlytics in my app for tracking crashes and Answers kit too for custom events. I am integrating the frameworks into my project using pod file. But I am getting a linking error while both pods are added like pod 'Fabric' pod 'Answers' pod 'Crashlytics' When I remove one from Answers and Crashlytics, then all is fine. Error is : Apple Mach-O Linker (Id) Error Linker command failed with exit code 1 (use to see invocation) Any ideas? 回答1: Mike from Fabric here. Remove the Answers