cocoapods

Configuring Cocoapods with an existing static library and iOS application

試著忘記壹切 提交于 2019-11-28 16:00:32
I'm having trouble getting my workspace to compile correctly with Cocoapods. There are 3 projects in the workspace, each with their own target: libPods - Cocoapods static library with all the external dependencies libCommon - My static library where I keep all my shared code (base controllers, networking code, common UI, etc) myApp - My iOS application Both libCommon and myApp require the external dependencies from the libPods. Originally I thought it would work like this: libPods builds libCommon links against libPods and builds myApp links with libCommon and builds In this scenario libCommon

Errors after updating to Xcode 8: “No such module” and “target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT`build setting”

試著忘記壹切 提交于 2019-11-28 15:51:55
I'm getting No such module for Pods when I try to build the project. If I remove the code expecting this Pod, another 'No such module' comes up for another Pod, which means every Pod must be affected. When I type pod install I get the following messages: [!] The X target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `X’. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target. [!] The `X` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `X'. This can

Project/workspace structure for multiple apps with CocoaPods

核能气质少年 提交于 2019-11-28 15:50:44
问题 I'm about to migrate my app to use CocoaPods. My current directory structure looks like the diagram below. I have one workspace that contains 3 projects ( ipad , ipod , common ). There are build targets in the ipad and ipod projects with dependencies on the common project. MyGreatApp | +-- MyGreatApp.xcworkspace | +-- ipad | | | +-- ipad.xcodeproj | +-- (source code) | +-- ipod | | | +-- ipod.xcodeproj | +-- (source code) | +-- common | +-- common.xcodeproj +-- (source code) My question is,

Use a fork of Restkit on github via CocoaPods?

我们两清 提交于 2019-11-28 15:48:38
问题 restkit is using in a different way the oauth2 protocol, I need to change the code to be able to use it in my way: From: // OAuth 2 valid request if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) { NSString *authorizationString = [NSString stringWithFormat:@"OAuth2 %@", self.OAuth2AccessToken]; [_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"]; } to: // OAuth 2 valid request if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {

Xcode 7.3 cannot create __weak reference in file using manual reference counting

会有一股神秘感。 提交于 2019-11-28 15:30:21
After updating to Xcode 7.3, it throws the error Cannot create __weak reference in file using manual reference counting in pod files. Has anyone solved this issue? Ryan Set Build Settings -> Apple LLVM 7.1 - Language - Objective C -> Weak References in Manual Retain Release to YES . Taken from Apple Developers Forums - Xcode 7.3b4, non-arc, cannot create __weak reference . This is official answer from Apple from the link: This issue behaves as intended based on the following: We are in the process of implementing weak references in all Objective-C language modes. Since “__weak” has

Cocoapods setup stuck on pod setup command on terminal

半腔热情 提交于 2019-11-28 15:29:57
MacBook-Pro:~ skbc$ pod setup --verbose /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 Setting up CocoaPods master repo Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`) $ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master Cloning into 'master'... Have gone through resources provided by Cocoapods web site, SO and few video tutorials. Nothing happening even after waiting for couple of hours, however still

How to check version of a CocoaPods framework

不想你离开。 提交于 2019-11-28 15:29:20
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. 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 or pod update pod outdated When you run pod outdated, CocoaPods will list all pods that have newer versions

CocoaPods arm64 issue

孤街浪徒 提交于 2019-11-28 15:27:56
问题 When using Podfile for developing iOS 7 app with Xcode5, we always got this issue. After some searching, seems like no final resolve from CocoaPods ? Maybe resolved at this moment when you see this. How to resolve such issues right now ? The issue was: Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'armv7 armv7s' didn't contain all required architectures 'armv7 armv7s arm64' 回答1: Select the Pods project Change Build Active Architecture Only from Yes to

Can not perform `pod install` under el capitan (15A279b)

荒凉一梦 提交于 2019-11-28 15:20:45
I ran pod install with El Capitan and got this error: Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcuserdatad Here's my environment: El Capitan (15A279b), Xcode Version 7.0 (7A220), cocoapod 0.38.2. Any ideas? Thanks!!! The reason I use xcode7 (and not 6.4) is that I need to target an existing project to iOS9 for testing. And the reason I am using El Capitan is that xcode7 doesn't run under Yosemite. And I need to replace a library (managed by cocoapod) that no longer works under iOS9. Here's how I install cocoapods in El Capitan sudo gem install -n

XCTest/XCTest.h not found on old projects built in Xcode 6

时光毁灭记忆、已成空白 提交于 2019-11-28 15:17:21
I have a few projects I'm trying to build with Xcode 6 Beta 2. The projects all have some type of library that uses XCTest (Kiwi/XCTest and Specta) that don't build in Xcode 6 because XCTest/XCTest.h cannot be found. fatal error: 'XCTest/XCTest.h' file not found #import <XCTest/XCTest.h> I noticed that XCTest.framework is no longer in the "Link Libraries with Binaries" build phase list, but that's fine because when I create a new project with Xcode 6 it appears the library is linked in automatically. Perhaps of some relevency, my XCTest-needing dependencies are all brought in via Cocoapods. Is