cocoapods

Cocoapods Completely Broke

a 夏天 提交于 2019-12-23 12:14:09
问题 To start: I'm using Cocoapods 0.37.2, XCode 6.3.1 compiling for iOS 8.3 My project worked just fine before I ran a basic "pod update" now it's completely refusing to compile. I'm quite positive this has nothing to do with the pods themselves. Specifically the error I'm getting is this: ld: warning: directory not found for option '-F/Users/user_name/Library/Developer/Xcode/DerivedData/AppName-bjozswzeepmhacfkeimeepxzcxgb/Build/Products/Debug-iphoneos/include' ld: library not found for -lPods

Build active architecture only for CocoaPods needs to be NO in Xcode

有些话、适合烂在心里 提交于 2019-12-23 12:09:45
问题 In an old project where we use cocoapods, there is a strange problem since Xcode 6: when compiling for iphone (not simulator), some random cocoapods are not found while building (e.g. Flurry). In Xcode 5 everything is fine. This is with When 'Build active architecture only = YES' in the Cocoapods target. When 'Build active architecture only = NO', everything works as expected. Why is this? I've already rebuilt cocoapods a few times, but it keeps the same. 回答1: Append to your Podfile: post

Supported platforms, base SDK, build active architecture only settings reverted after pod update

ⅰ亾dé卋堺 提交于 2019-12-23 12:04:53
问题 My team recently started to employ CocoaPods to manage dependency in our iOS app project. Here's the podfile: platform :ios, '6.0' pod "UI7Kit" pod "AFNetworking", "~> 2.0" pod "TMCache" pod "SVProgressHUD" pod "SVPullToRefresh" However, after using CocoaPods, building targets for iPhone 5 always fails, but succeeds for simulator. Here's the error log: ld: warning: ignoring file [DerivedData directory]/libPods.a, file was built for archive which is not the architecture being linked (armv7):

CocoaPods adds incorrect Other Linker Flags

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 11:50:46
问题 I placed $(inherited) in Other Linker Flags in the Build Settings of my app. Now, it's causing an error, but adding a Test framework. The error and solution are explained in detail here: Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest How can I modify the Other Linker Flags added by CocoaPods to ensure the XCTests does not get added? One solution would be if I can somehow copy all the actual values of $(inherited) and replace $(inherited) with those values,

Error 'xcodebuild: Returned an unsuccessful exit code' after trying publishing Pod

落爺英雄遲暮 提交于 2019-12-23 11:45:13
问题 Command 'pod trunk push --verbose' outputs the following: Build settings from command line: CODE_SIGN_IDENTITY = - SDKROOT = iphonesimulator10.1 === CLEAN TARGET GTNetworkQualityChecker OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies ** INTERNAL ERROR: Uncaught exception ** Uncaught Exception: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil Stack: 0 __exceptionPreprocess (in CoreFoundation) 1 objc_exception_throw (in libobjc.A.dylib) 2 -[__NSArrayM insertObject

Error 'xcodebuild: Returned an unsuccessful exit code' after trying publishing Pod

你离开我真会死。 提交于 2019-12-23 11:45:12
问题 Command 'pod trunk push --verbose' outputs the following: Build settings from command line: CODE_SIGN_IDENTITY = - SDKROOT = iphonesimulator10.1 === CLEAN TARGET GTNetworkQualityChecker OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies ** INTERNAL ERROR: Uncaught exception ** Uncaught Exception: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil Stack: 0 __exceptionPreprocess (in CoreFoundation) 1 objc_exception_throw (in libobjc.A.dylib) 2 -[__NSArrayM insertObject

No such module when simulator, but when use device it can find it

流过昼夜 提交于 2019-12-23 10:50:45
问题 I got a project where I use some Pods, where one of them is Meteor. I have installed with cocoapods with this podfile platform :ios, '8.0' use_frameworks! pod 'OpenTok', '~> 2.6' pod 'Meteor', '~> 0.1' And then open up the .xcworkspace instead of .xcodeproj Then in my project I import Meteor in my AppDelegate. When I choose a simulator and try to run/build it comes with the error "No such module 'Meteor'" But then if I take my iPad and connect it and choose it as target, I can fine run/build.

Linker error comes while running as well as testing the Xcode workspace after updating KIF framework via cocoapods

别来无恙 提交于 2019-12-23 10:22:02
问题 I have an Xcode workspace in which I have updated to KIF 2.0(pod update via terminal & pod 'KIF' in the podfile) after that I have configured the workspace as per the instructions provided in https://github.com/kif-framework/KIF#configure-the-testing-target(installation with Cocoapods section).But when I tried to execute the project as well as Run my test target it throws an error, ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app

Error when running pod install

风格不统一 提交于 2019-12-23 08:49:40
问题 When I run the pod install command, I am getting the following error: [!] The `master` repo requires CocoaPods 1.0.0 -  (currently using 0.39.0) Update Cocoapods, or checkout the appropriate tag in the repo. Updating is not an option for me currently. I looked at the answers to this question but none of the solutions seemed to work for me. How can I continue to use CocoaPods 0.39.0 for my dependency management? 回答1: Cocoapods had an issue with rate limiting back in March and implemented

Linker errors in a Swift project with Google Maps for iOS added via CocoaPods

走远了吗. 提交于 2019-12-23 07:33:23
问题 I'm trying to add Google Maps SDK for iOS for a Swift project I'm working on via CocoaPods since CocoaPods now supports Swift. Here's my podfile. source 'https://github.com/CocoaPods/Specs.git' use_frameworks! platform :ios, '7.0' pod 'Google-Maps-iOS-SDK' Pod installation completes successfully and I could import the framework like this import GoogleMaps without any compilation errors. But then I went ahead and added a UIView and set its class to GMSMapView and added a IBOutlet to my view