cocoapods

Cannot install Alamofire 4.0 in Xcode 8.0 Using CocoaPods

时光怂恿深爱的人放手 提交于 2019-12-01 20:49:33
I need to upgrade one project to Swift 3.0, that has some libraries by Cocodpods. So, I've removed all links related with Cocoapods and recreate pod file using pod init and upgrade some version of library such as AlamorFire. But pod install said [!] Unable to satisfy the following requirements: - `Alamofire (~> 4.0)` required by `Podfile` None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.0)`. You have either: * out-of-date source repos which you can update with `pod repo update`. * mistyped the name or version. * not added the source repo that hosts the

Import RealmSwift no longer working using CocoaPods

心不动则不痛 提交于 2019-12-01 19:18:21
The CocoaPods installation of the RealmSwift Kruherson recommended here (or also is recommended from the realm.io page here ) basically works - however there is one problem that is remaining in my App using Swift 0.92.3: The following import is no longer recognized ! import RealmSwift What do I still need to do in order to make CocoaPods work under Swift ? Here is the content of my Podfile used : platform :ios, '8.3' use_frameworks! xcodeproj '/Users/XXX/.../MyApp/MyApp.xcodeproj' target 'MyApp' do pod 'RealmSwift', '>= 0.92.3' end Here a screenshot of my Xcode project (only Pods part) looks

CocoaPods安装和使用

你离开我真会死。 提交于 2019-12-01 18:45:43
当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库。总之,手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。这个时候,你需要 CocoaPods。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是必不可少的基本技能了。 下载和安装 在安装CocoaPods之前,首先要在本地安装好Ruby环境。至于如何在Mac中安装好Ruby环境,请google一下,本文不再涉及。 假如你在本地已经安装好Ruby环境,那么下载和安装CocoaPods将十分简单,只需要一行命令。在终端中输入以下命令: sudo gem install cocoapods 但是,且慢。如果你在天朝,在终端中敲入这个命令之后,会发现半天没有任何反应。原因无他,因为那堵墙阻挡了cocoapods.org。 但是,是的,又但是(不过是个可喜的“但是”)

Cocoa pods issue after modify Pods file

好久不见. 提交于 2019-12-01 18:07:38
when I change Pods file I get this error after command pod install /Users/mac/Documents/Projects/Test/Podfile:1: syntax error, unexpected tINTEGER, expecting '(' platform :ios, ‘7.0’ ^. Updating CocoaPods might fix the issue. So how I can update it? Replace the 'curly quotes' around the platform with single quotes: platform :ios, '7.0' Luca Corti Assuming that's the issue and you have installed cocoapods via gem: gem update --system updates gem itself gem update cocoapods updates cocoapods. Just had and then resolved this issue. Using TextEdit on Mac the quotes are 'smart quotes' (as the other

xCode: Library not found - lPods-Bolts - Exit Code 1

好久不见. 提交于 2019-12-01 18:00:20
Hi I'm having this issue: ld: library not found for -lPods-Bolts clang: error: linker command failed with exit code 1 (use -v to see invocation) However, I downloaded the Bolt package from the Facebook Docs and put it into my supporting files. In addition, I'm using Cocoapods so I also downloaded Bolt using Cocoapods. Ld /Users/mmk88/Library/Developer/Xcode/DerivedData/Jobazo-gejnfogovpyqypgovssmomabbuhl/Build/Products/Debug-iphoneos\ /Jobazo.app/Jobazo normal arm64 cd /Users/mmk88/Desktop/Jobazo export IPHONEOS_DEPLOYMENT_TARGET=8.1 export PATH="/Applications/Xcode.app/Contents/Developer

'pod install' giving error on Xcode 7

穿精又带淫゛_ 提交于 2019-12-01 17:44:29
I have updated my cocoapods(0.38.2) gem and xcodeproj(0.27.2), but still getting error:- Writing Xcode project file to `Pods/Pods.xcodeproj` 2015-09-24 09:40:27.969 ruby[12098:428715] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8227/IDEFoundation/Initialization/IDEInitialization.m:590 Details: Assertion failed: _initializationCompletedSuccessfully Function: BOOL IDEIsInitializedForUserInteraction() Thread: <NSThread: 0x7fb9adbd99d0>{number = 1, name = main} Hints: None Backtrace:0 0x000000011038ca5c -[DVTAssertionHandler

iOS CocoaPods - how to resolve “use of '@import' when modules are disabled” error?

浪子不回头ぞ 提交于 2019-12-01 16:36:32
I'm seeking how to resolve "use of '@import' when modules are disabled" when adding Google Analytics through cocoapods: pod 'Google/Analytics', '~> 1.0.0' link_with 'AppTarget', 'AppTargetTests' In code: #import <Google/Analytics.h> I get this error within a pod: "use of '@import' when modules are disabled" I checked all projects and see that modules are enabled, along with the other suggestiont to "Link frameworks automatically" I cannot override this import because of this error: How can I resolve "use of '@import' when modules are disabled" when adding frameworks through cocoapods in xCode6

following pods are integrated into targets that do not have the same Swift version

懵懂的女人 提交于 2019-12-01 15:46:20
I am updating my project to Swift 3. When updating some of my cocoapods to swift 3, I receive the following message in terminal, after running pod install: Analyzing dependencies [!] The following pods are integrated into targets that do not have the same Swift version: - AWSCore required by myApp (Swift 3.0.1), myApptests (Swift 3.0) - AWSS3 required by myApp (Swift 3.0.1), myApptests (Swift 3.0) - Alamofire required by myApp (Swift 3.0.1), myApptests (Swift 3.0) There is a lengthy thread here: https://github.com/CocoaPods/CocoaPods/issues/5864 about the issue, and I tried the proposed

Could not build module 'UIKit\" in cocoapods since Xcode 5.1

那年仲夏 提交于 2019-12-01 14:56:39
I cannot build my application anymore since I updated Xcode to the new version (Xcode 5.1). the error message is 'Could not build module 'UIKit''. I have the same problems with my two pods: AFNetworking SDWebImage Any thought on this? I met the similar problem. The only difference is that my error is "Could not build module SpriteKit". I finally solved the problem by deleting all files inside the ModuleCache folder: /Users/YOUR_USER_NAME/Library/Developer/Xcode/DerivedData/ModuleCache Then I build and met errors to prompt me to clean build. I clean the project and rebuild and everything is

following pods are integrated into targets that do not have the same Swift version

只愿长相守 提交于 2019-12-01 13:51:11
问题 I am updating my project to Swift 3. When updating some of my cocoapods to swift 3, I receive the following message in terminal, after running pod install: Analyzing dependencies [!] The following pods are integrated into targets that do not have the same Swift version: - AWSCore required by myApp (Swift 3.0.1), myApptests (Swift 3.0) - AWSS3 required by myApp (Swift 3.0.1), myApptests (Swift 3.0) - Alamofire required by myApp (Swift 3.0.1), myApptests (Swift 3.0) There is a lengthy thread