cocoapods

Cocoapods Installation Error on macOS Sierra 10.12.1

人走茶凉 提交于 2019-12-03 14:34:17
I'm getting this error when i'm trying to install cocoapods : $ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy_match I have gem version 2.6.7 installed, macOS 10.12.1 can anyone help please..or have instructions how to install cocoapods on 10.12.1 I have a similar problem and it solved by using 2nd solution, try to run these commands either in solutions 1 or 2 at terminal I'm running osx 10.12.1 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod Solution 1: step 1 : sudo nvram boot-args=

Updating Pod is not Working

寵の児 提交于 2019-12-03 14:32:14
I know this question is previously asked and I review that asked question answers but still I am facing this error. [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down Previously before a week ago pod update command is working fine but now when I run that command it gives me same error everyTime. I tried below solutions. I tried this command with multiple internet connection. 2. pod repo remove master pod setup pod install 3. $sudo rm -fr ~/.cocoapods/repos/master $pod setup $pod install Finally I found solution

CocoaPods: point to a branch in pod spec

时间秒杀一切 提交于 2019-12-03 14:26:13
问题 I'm trying to install code from a repository's branch on a pod spec, and based on the documentation, this should work: s.dependency 'repository_name', :git => 'https://github.com/account_name/repository_name.git', :branch => 'experimental_branch' But I get an error with something like [!] Unsupported version requirements. Updating CocoaPods might fix the issue. It works when installing from a pod file directly: pod 'ObjectiveRecord', :git => 'https://github.com/supermarin/ObjectiveRecord.git'

How to make a Swift framework submodule really private?

此生再无相见时 提交于 2019-12-03 13:56:12
问题 I've found another question which brings more details regarding the problem and possible solutions. It seems like there is a known bug which is a subject for future improvements. Objective C classes within an iOS Swift-based dynamic framework I'm developing a framework in Swift and I'm using some Objective-C code inside the framework. So far my module map looks like this: framework module MyModule { umbrella header "MyModule-umbrella.h" export * explicit module Private { header "MyTools.h" }

iOS: CocoaPods issue with Google Analytics and AdMob

白昼怎懂夜的黑 提交于 2019-12-03 13:37:59
Assuming: I have configured CocoaPods for Google Analytics , using pod 'Google/Analytics , following the official installation guide: https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift I have configured CocoaPods for AdMob , using pod 'Google-Mobile-Ads-SDK', '~> 7.0' , following the official installation guide: https://developers.google.com/admob/ios/quick-start#streamlined_using_cocoapods I generated the GoogleService-Info.plist configuration file, specifying both Analytics and AdMob services, using the button reported here: https://developers.google.com/analytics

Creating CocoaPod for existing GitHub repo

只愿长相守 提交于 2019-12-03 13:34:34
问题 Recently I've created small iOS class and I would like to use it with CocoaPods. By now I have added it to the GitHub and I have followed this tutorial which explains the process of creating CocoaPod but I have stuck with this one: "Adding the Podspec to the CocoaPods Specs Repo". Can someone explain following steps, like how to fork the repository and issue a pull request. I know there are a lot of similar answers on Google but I would be very appreciative if someone can share it's

Create podspec to ship static library

杀马特。学长 韩版系。学妹 提交于 2019-12-03 13:03:46
I'm trying to ship a static library via cocoapods. I was given the library without any build directions right now its a drop in to my iOS app. I don't need to build the library for each application using it, rather just download the lib files and include the headers. Is there a way to do this with a podspec file? Here's what I have thus far: Pod::Spec.new do |s| s.name = "RTMPLib Library" s.version = "1.0.0" s.summary = "RTMPLib Library" s.homepage = "https://github.com/jumper/RTMPLib.git" s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { "jon morehouse" => "jon@jumperapp.com" }

Include pods in main target and not in WatchKit extension

☆樱花仙子☆ 提交于 2019-12-03 12:53:14
问题 I added a WatchKit extension to my current project. The project uses Cocoapods 0.36.1 to add some frameworks, but now I want to exclude some pods from the WatchKit extension project. The WatchKit extension project doesn't need a lot of frameworks I use in my normal target, but I can't get Cocoapods to work correct after altering my Podfile. I use use_frameworks! in my Podfile, but after running pod install I get the following messages: [!] CocoaPods did not set the base configuration of your

Show TODO comments as warnings excluding the Pods folder

我的未来我决定 提交于 2019-12-03 12:32:25
I have a script to show all my //TODO: comments which looks like this: KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:" find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/" I want to exclude my Pods folder, therefore I have added -not -path "./Pods/*" : find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -not -path "./Pods/*" -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/(

When using cocoapods, what is the best way to change the PRODUCT_NAME?

不想你离开。 提交于 2019-12-03 12:32:09
问题 I created an app with name "ABC". Months later I decided to change the name to "ABCD". I believe the way I changed it, was in my Podfile, I changed target "ABC" do to target "ABCD" do . However, I recall going through quite a few issues/errors afterward in my workspace that caused a lot of stress. It was so long ago that I can't quite recall though. Now I'm ready to submit, and I want to change the name one last time. I've changed the name in iTunes Connect, but now I want to change my