cocoapods

Cocoapods Podspec Source HTTP Authentication Support

白昼怎懂夜的黑 提交于 2019-12-06 10:40:18
问题 I am looking into setting up a private repo that allows distributing binary .framework files (so no source code) via Cocoapods. The actual repo will be hosted on a Git server, just like the Cocoapods page suggests and the actual .framework files will be hosted on a different server that would allow accessing the .framework files via HTTPs. Let's say I add this in the .podspec file: spec.source = { :http => 'https://myhostserver.com/Releases/v1.0.0/MyLibrary.framework.zip' } From reading the

Error installing google analytics on iOS app

瘦欲@ 提交于 2019-12-06 09:33:37
I was trying to integrate google analytics into my project, and I was surprised that it requires cocoapods to install google analytics now. I followed the documentation here: https://developers.google.com/analytics/devguides/collection/ios/v3/?hl=en I called pod init on terminal, and then I've edited by podfile to # Uncomment this line to define a global platform for your project # platform :ios, '6.0' target 'Unity-iPhone' do pod 'Google/Analytics', '~> 1.0.0' end target 'Unity-iPhone Tests' do end and I get the following error on terminal when I call pod install. Updating local specs

XCode 8: Can't find AFNetworking header files and Swift pods errors

我的未来我决定 提交于 2019-12-06 09:23:40
问题 Today I've upgraded my XCode to 8 version, but After this I got a lot of errors. Ex: The targets “Charts” and “CircleProgressView” contain source code developed with an earlier version of Swift. Choose “Convert” to update the source code in these targets to the latest SDKs. You will be given the choice to use Swift 2.3 syntax or update to Swift 3. This action can be performed later using “Convert to Current Swift Syntax” in the Edit menu. And AFNetworking/AFNetworking.h file not found. The

IOS开发依赖管理工具CocoaPods

末鹿安然 提交于 2019-12-06 08:46:40
CocoaPods IOS开发依赖管理工具 CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 68 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly. 安装: sudo gem install cocoapods 使用: 搜索某个依赖,有个代理会更好 pod search AFNetworking 官网 CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 68 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly. 来源: https://www.cnblogs.com/shengulong/p/11973713.html

Multiple frameworks and common library

醉酒当歌 提交于 2019-12-06 07:59:36
问题 Using iOS 8, Xcode 6 . Let's say I have 2 dynamic frameworks, frameworkA and frameworkB and they are both dependent on libC . In addition, I have an app that uses both frameworkA and frameworkB . My original thought was to make frameworkA and frameworkB umbrella frameworks and libC a subframework. However, Apple advises against umbrella framework and this post describes why umbrella framework is a bad idea due to potential linker conflict issue. My second option is to use cocoapods (still new

How to install ReactiveCocoa properly using CocoaPods?

有些话、适合烂在心里 提交于 2019-12-06 07:46:56
问题 I'm very new to ReactiveCocoa . I tried to install ReactiveCocoa a couple of days ago via CocoaPods . Here is my podFile : platform :ios , '7.0' pod 'ReactiveCocoa' After using pod install I have the log file here: Analyzing dependencies Downloading dependencies Using ReactiveCocoa (2.0) Generating Pods project Integrating client project And then I open myproject.xworkspace and #import <ReactiveCocoa.h> to start using the framework. But the problem is I cannot get it worked For example in my

ld: framework not found error in xcode 8

与世无争的帅哥 提交于 2019-12-06 07:27:04
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+Placeholder', '~> 1.2' pod 'Alamofire', '~> 4.0' end post_install do |installer| installer.pods_project

Ionic v2 : “You cannot run cocoapods as root” error

蓝咒 提交于 2019-12-06 07:13:58
问题 I'm trying to build an Ionic 2 app with push notification in iOS. I added Phonegap plugin push notification with this command line : cordova plugin add phonegap-plugin-push --variable SENDER_ID=12341234 --save But when I try to run my project in a device I have this error in xcode : "GoogleCloudMessaging.h" file not found I looked for a solution and I had install Cocoapods . I removed platform iOS and I try to add it with this command line : sudo ionic platform add ios I had this error :

Multiple targets depending on same cocoapods

你离开我真会死。 提交于 2019-12-06 06:37:57
问题 I have multiple targets in Xcode project, which must depend on the same list of pods. I could write Podfile like this: target :target1 do pod 'pod1' pod 'pod2' ... end target :target2 do pod 'pod1' pod 'pod2' ... end but it's obviously not cool. I wish I could write something like this: target :target1, :target2 do pod 'pod1' pod 'pod2' end but unfortunately it doesn't work. (Note that my main target do not need these pods). Is it possible to make multiple targets to depend on same list of

Private Pod update/install stuck at Pre-downloading: “” from “” step

早过忘川 提交于 2019-12-06 06:34:16
We have a private git repo that has shared framework for mobile apps, let's call it mobilesdk. Recently a new dev joined the team, and when she is setting up the repo pod install & pod update mobilesdk are getting stuck at the following step: Pre-downloading: `mobilesdk` from `https://github.companyurl.com/mobileFramework/mobilesdk.git`, branch `release/0.9` pod inclusion: pod 'mobilesdk', :git => "https://github.companyurl.com/mobileframework/mobilesdk.git", :branch => "release/0.9" "pod env" CocoaPods : 1.1.1 Ruby : ruby 2.2.5p319 RubyGems : 2.4.5.1 Host : Mac OS X 10.11.6 Xcode : 8.0