cocoapods

“file not found” in Bridging Header when importing Objective-C frameworks into Swift project by CocoaPod

杀马特。学长 韩版系。学妹 提交于 2019-11-27 02:22:06
I got a swift project ,and use CocoaPod to import the third part repositories. In pod file I use use_frameworks! , so the repositories will build into framework to use. And I import the ObjC framework like #import "" or #import <> in my Bridging Header. In this situation, I run the project, it works. but When I archive, “file not found” is found in Bridging Header file. `BridgingHeader.h:5:9: error: 'RESideMenu/RESideMenu.h>' file not found #import <RESideMenu/RESideMenu.h> <unknown>:0: error: failed to import bridging header 'xxx-Bridging-Header'` and `failed to import bridging header '/Users

What goes into your .gitignore if you're using CocoaPods?

烈酒焚心 提交于 2019-11-27 02:20:36
I've been doing iOS development for a couple of months now and just learned of the promising CocoaPods library for dependency management. I tried it out on a personal project: added a dependency to Kiwi to my Podfile, ran pod install CocoaPodsTest.xcodeproj , and voila , it worked great. The only thing I'm left wondering is: what do I check in, and what do I ignore for version control? It seems obvious that I want to check in the Podfile itself, and probably the .xcworkspace file as well; but do I ignore the Pods/ directory? Are there other files that will be generated down the road (when I

Can't run sudo pod install after updating to cocoapods 0.32.1 with error “You cannot run CocoaPods as root. (CLAide::Help)”

六月ゝ 毕业季﹏ 提交于 2019-11-27 02:18:41
问题 I found an issue when running sudo pod install command after updating it to latest version 0.32.1. Earlier it was working very fine. When I tried to do pod install with older cocoapods, it asked me to update to latest cocoapods version i.e. 0.32.1. After I updated by cocoapods gem, I can't do sudo pod install in my Xcode project. It gives me following error. ± sudo pod install ruby-1.9.3-p0 Password: /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide

FireBase Cocoa Pods Installation Not Working

自作多情 提交于 2019-11-27 01:21:52
问题 I'm trying to install Firebase via Cocoa Pods for my Objective-C iOS Application. My Podfile is as follows: target 'RandomName' do pod 'Firebase/Core' pod 'Firebase/AdMob' end When I run pod install , I get the following error: [!] Unable to satisfy the following requirements: - `Firebase/Core` required by `Podfile` None of your spec sources contain a spec satisfying the dependency: `Firebase/Core`. You have either: * out-of-date source repos which you can update with `pod repo update`. *

What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods, Swift 3 and Xcode 8

爷,独闯天下 提交于 2019-11-27 01:18:34
问题 after installing cocoapods and adding pod "SwiftCarousel" to pod file and uncomment the platform :ios, '9.0' I got this ERROR ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES and what should I do? mohammed.elias$ pod install Analyzing dependencies Downloading dependencies Installing SwiftCarousel (0.8.0) Generating Pods project Integrating client project [!] Please close any current Xcode sessions and use `scrollView.xcworkspace` for this project from now on. Sending stats Pod installation complete!

Undefined symbols for architecture armv7: “_OBJC_CLASS_$_GGLContext”, referenced from: objc-class-ref in AppDelegate.o

假装没事ソ 提交于 2019-11-27 01:09:23
问题 I am trying to add Google Analytics in my iSO app and I am using Google Analytics latest SDK https://developers.google.com/analytics/devguides/collection/ios/v3/. Added all required header and frameworks to my project successfully. But while running my app I am getting below errors (null): "_OBJC_CLASS_$_GGLContext", referenced from:objc-class-ref in AppDelegate.o (null): Linker command failed with exit code 1 (use -v to see invocation) Below is the code which I am writtig in AppDelegate.m

How do I create a CocoaPods podspec that has a dependency that exists outside of Specs?

会有一股神秘感。 提交于 2019-11-27 00:41:36
问题 I have a public fork of a library that already exists in CocoaPods/Specs. In a Podfile, I can reference this forked pod by doing this: pod 'CoolLibrary', :git => 'git@github.com:myname/CoolLibrary-Forked.git', :commit => 'abcdef1234567890abcdef1234567890' I tried putting this in my MyLibrary.podspec : s.dependency 'CoolLibrary', :git => 'git@github.com:myname/CoolLibrary-Forked.git', :commit => 'abcdef1234567890abcdef1234567890' But get the following error message: -> MyLibrary.podspec -

How to set the Legacy Swift Version for each Pod in Podfile Xcode 9.0 Swift 3.2 / Swift 4.0

爷,独闯天下 提交于 2019-11-27 00:27:50
问题 I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3 , but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install . How do I configure each pod version in the Podfile installer? This is what I am setting: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end

Installing CocoaPods: no response

折月煮酒 提交于 2019-11-26 23:58:43
问题 Trying to install CocoaPods from the terminal: $ sudo gem install cocoapods After entering my root password, nothing happens. How can I debug that? 回答1: For others wondering the same, installing the gem takes forever. If you run: export GEM_HOME=~/.gems export PATH=$GEM_HOME/bin:$PATH gem install cocoapods -V Installing with flag V enables verbose output which will let you see all the output as it is going through the download and install, it's quite a lot. 回答2: update gem to the newest

How to check version of a CocoaPods framework

大城市里の小女人 提交于 2019-11-26 23:55:19
问题 I have updated Flurry via CocoaPods, but how can I check if Flurry was updated? I mean the terminal shown me that everything is ok: Installing FlurrySDK (4.2.3) Generating Pods project Integrating client project but I am not sure that it has been updated. 回答1: The Podfile.lock keeps track of the resolved versions of each Pod installed. If you want to double check that FlurrySDK is using 4.2.3, check that file. Note: You should not edit this file. It is auto-generated when you run pod install