cocoapods

CocoaPods - build for iOS 9 / Swift 2 with Xcode-beta

雨燕双飞 提交于 2019-12-12 08:32:59
问题 I have a "CocoaPod" (terminology?) that's currently at version 1.1. There's also a develop branch of the repo that requires Swift 2.0 (so needs a base SDK of IOS 9.0) with a PodSpec as follows: Pod::Spec.new do |s| s.name = 'ReachabilitySwift' s.version = '2.0-beta1' s.homepage = 'https://github.com/ashleymills/Reachability.swift' s.authors = { 'Ashley Mills' => 'ashleymills@mac.com' } s.summary = 'Replacement for Apple\'s Reachability re-written in Swift with callbacks.' s.license = { :type

No such module 'GoogleMaps' found however it is installed

[亡魂溺海] 提交于 2019-12-12 08:25:11
问题 I have installed the 'GoogleMaps' pod using cocoa pods and the project was building correctly, however when I transferred my project to another device through iCloud (the projects directory is in iCloud) the GoogleMaps pod stopped working. I attempted to simply run pod install again however this mad no difference, the pod is clearly there and the pod install was successful. I am beyond confused. 回答1: First off try to clean the project by Command + Shift + Options + K If I'm not mistaken,

Updating Pod is not Working

十年热恋 提交于 2019-12-12 08:04:07
问题 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

How to build an iOS framework with weak-linked CocoaPods libraries

北慕城南 提交于 2019-12-12 07:33:40
问题 I am trying to build an iOS Framework (Test.framework) using the new template offered by Xcode 6 for creating Cocoa Touch Frameworks. The framework has different dependencies (as AFNetworking or FacebookSDK) specified in a Podfile. I don't want dependencies to be included in the framework, I just want to link against them. The problem is that when I build the framework, the libPods.a is linked and included. Q: How can I link against libPods.a library, but not include it in the framework? More

Slow app compilation with new Sierra update

谁说我不能喝 提交于 2019-12-12 07:08:06
问题 When I updated my mac to macOS Sierra 10.12.1 time of running application on real device significantly increased. "Run custom script 'Embed Pods Frameworks'" and "Copy Swift standard libraries" take more then 30 minutes to build. Do someone face the same issue? 回答1: Check your keychain. After updating to Sierra to 10.12.1, I had over 500 copies one of my certificates, and a few others were duplicated a few hundred times. I removed all the duplicates and kept just one of each, and my code

use CocoaPods 0.36.0 in CocoaTouchFramework with Swift

巧了我就是萌 提交于 2019-12-12 06:35:25
问题 I would like to use CocoaPods in my CocoaTouchFramework, which has Swift classes. My Podfile looks the following: platform :ios, '7.0' inhibit_all_warnings! link_with 'MyFramwork' pod "AFNetworking", "2.5.0" But how do I achieve to include e.g. AFNetworking into my .swift class in the CocoaTouch Framework? There's no briding header so I somehow have to import it directly in my swift class... 回答1: AFNetworking is an objective-c library. So you need to have a bridging-header and import the

Xcode Workspace - Not finding imports from framework development pod

南笙酒味 提交于 2019-12-12 06:27:48
问题 I've set up a workspace with two Swift projects in it: one a framework I'm developing, the other a demo app for the framework. Podfile looks like this: platform :ios, '9.0' workspace 'foo.xcworkspace' target 'framework' do project 'framework.xcodeproj' end target :'demo' do project 'demo/demo.xcodeproj' pod 'framework', :path => 'framework.podspec' end the .podspec file looks like this: Pod::Spec.new do |s| s.name = 'framework' s.authors = { "foo author" } s.version = '0.1.0' s.summary = 'foo

Using CocoaPods with Swift

跟風遠走 提交于 2019-12-12 06:14:59
问题 I'm new to Cocoapods and am trying to use a pod named DateTools in my OS X app Swift project. I installed Cocoapods, created the podfile, added pod 'DateTools' to it, ran pod install and everything seemed to work fine. (I'm a Ruby dev so I think I got this part right). As asked by Cocoapods, I now opened my project using the new .xcworkspace file created. I correctly see two projects in Xcode: mine and Pods . I added a sample model file to my project, let's call it SampleModel but in the code

PromiseKit.framework: bundle format unrecognized, invalid, or unsuitable

僤鯓⒐⒋嵵緔 提交于 2019-12-12 05:48:42
问题 Until now our project and all associated pods have been in objective c. We wanted to use the latest version of PromiseKit and so added use_frameworks! to our podfile. Before adding PromiseKit to the PodFile, I confirmed the project runs. After adding PromiseKit to the podfile, I get a 'Command /bin/sh failed with exit code -1' saying 'PromiseKit.framework: bundle format unrecognized, invalid, or unsuitable.' sent 2733061 bytes received 98 bytes 5466318.00 bytes/sec total size is 2732456

brew and gem both throws 'Permission denied' error whenever I run it

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:56:29
问题 This happens whenever I ran 'gem' or 'brew': /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:75:in `initialize': Permission denied - /Library/Ruby/Gems/2.0.0/specifications/cocoapods-plugins-0.4.2.gemspec (Errno::EACCES) from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:75:in `open' from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:75:in `data' from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:178:in `valid?' from /Library/Ruby/Site/2.0.0/rubygems