cocoapods

How can I know which React Native pod subspecs to add?

徘徊边缘 提交于 2019-12-07 02:18:20
问题 Working on an issue where I needed to add the react-native-device-info package to my iOS system, I had to add a dependency on React into my Podfile. Initially I applied all the podspecs from a list I'd found on the net: pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'DevSupport', 'Core', 'RCTActionSheet', 'RCTAnimation', 'RCTGeolocation', 'RCTImage', 'RCTLinkingIOS', 'RCTNetwork', 'RCTSettings', 'RCTText', 'RCTVibration', 'RCTWebSocket' ] But I realised that some of

Accidentally ran pod update instead of pod install. Is there any way to revert?

我只是一个虾纸丫 提交于 2019-12-07 01:10:40
问题 I accidentally ran pod update instead of pod install , and now I have compile errors in my project. Is there any easy way of reverting to my previous pods? I'm thinking of hacking it -- I have my Podfile.lock file under source control, so I can grab the version numbers off that, then lock down the Podfile to those numbers e.g.: pod 'AFNetworking', '2.6.3' But is there a simple command like pod revert or pod undo or something? Otherwise I'll probably just suck it up and update my project code

Creating a Pod, Cocoapods lint source_files issue

浪子不回头ぞ 提交于 2019-12-07 00:40:59
问题 I am creating a static library and I want to make a podspec so it can be included in other projects as well. To generate proper pod structure I used a command : pod lib create <library_name> It generated the following structure .podspec CHANGELOG.md Classes Project README.md Rakefile LICENSE I created a new Xcode project inside the "projects" directory. I also added two files to the project called Test1.h and Test2.h and saved them inside classes directory. Plus I added, header search path

Is there a way to use a pull request with cocoapods?

人走茶凉 提交于 2019-12-07 00:33:11
问题 With swift 3, many cocoapods have been scrambling to keep up with the changes each beta brings. Sometimes these changes aren't merged into a branch quickly. In those cases, is there a way to use a pull request of a branch? Example: https://github.com/MengTo/Spring/pull/187/commits/d791055bc43bba9af8124d2832c2d8cd95ecfc11 回答1: You can always specify a specific commit or branch to pull in with your pod file. So, if you wanted the swift3 branch from the master repo, it'd be as simple as: pod

Force updating Cocoapod with same tag

血红的双手。 提交于 2019-12-06 23:33:49
问题 I'm working on a private cocoapod and project using that cocoapod concurrently, and I'm having difficulty settling on the right workflow for keeping everything synchronized. The problem i am encountering is this: If i make a change to my cocoapod project, I've found that the only way I can get my other project to pull those changes is if I create a new tag and change the version referenced by the pod spec. As a result, I'm getting stuck with many useless versions of my pod spec. What I would

Cannot find <GoogleToolboxForMac/GTMNSData+zlib.h> error when building an ionic project for ios

99封情书 提交于 2019-12-06 22:03:30
I came across this error when trying to build an ionic project for ios. It happened in the FirebaseCore build part of the process. I found the problem was a bug in the following file on line 23: platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRNetwork.m It seems the angle brackets don't allow the search for the file to start at the Pods level, whereas quotes allow a relative path to be used. I found the solution was to do the following, so I thought I'd post it here in case anyone else has the same problem: Either: Change line 23 from: #import <GoogleToolboxForMac/GTMNSData+zlib.h> to: #import

CocoaPods “target has transitive dependencies that include static binaries”

假如想象 提交于 2019-12-06 21:41:08
问题 I'm trying to install a swift framework I found on GitHub along with the GoogleMaps, GooglePlaces into my Xcode project but for some reason when I try to install the pod file its giving the following error [!] The 'Pods-project1' target has transitive dependencies that include static binaries: (/Users/user1/Desktop/project1/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework, /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework, and /Users/user1/Desktop

Issues installing CocoaPods

微笑、不失礼 提交于 2019-12-06 20:26:01
问题 I'm trying to get CocoaPods set up in OSX (I'm running 10.8.2) - so I run sudo gem install cocoapods It succeeds and I get - 'Successfully installed cocoapods-0.17.2 1 gem installed' Then...I try pod setup '-bash: pod: command not found ' How do I get command line to recognize this command? 回答1: Quitting and restarting Terminal fixed it for me. Actually, I just opened a new tab in Terminal. 回答2: I had the same problem, running Mountain Lion with Ryby 2 installed and being used instead of the

Cocoapods : target has transitive dependencies that include static binaries when installing 'VialerSIPLib'

ⅰ亾dé卋堺 提交于 2019-12-06 20:24:55
问题 I'm trying to install an objective-c Wrapper for Jsip 'VialerSIPLib' and use it in my swift project here is my pod platform :ios, ’10.0’ use_frameworks! target 'EMedicalAdmin' do pod 'ObjectMapper', '~> 2.1' pod 'Alamofire', '~> 4.3' pod 'SwiftyAvatar', '~> 1.0' pod 'AlamofireImage', '~> 3.1' pod 'Eureka', '~> 2.0.0-beta.1' pod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop' pod 'PKHUD', '~> 4.0' pod 'Firebase/Core'

Xcode 11 beta 4 error: Command CompileSwiftSources failed with a nonzero exit code

折月煮酒 提交于 2019-12-06 16:31:59
问题 I've downloaded the latest Xcode beta 4. When I build I'm getting the same error with 3 of my pods: Command CompileSwiftSources failed with a nonzero exit code <unknown>:0: error: unknown argument: '-w' <unknown>:0: error: unknown argument: '-Xanalyzer' <unknown>:0: error: unknown argument: '-analyzer-disable-all-checks' This is the MarqueeLabel pod logs: I have tried: Cleaning and deep cleaning ( shift + alt + cmd + k ) Deleting the Derived Data folder Restarting Xcode I can't see the error