cocoapods

How can I open Podfile for editing [closed]

£可爱£侵袭症+ 提交于 2019-12-02 18:26:36
I used CocoaPods with my app I noticed I can't open pod file and the file turn to exec file like the image down, I need to edit it to add new libraries. Open the Podfile with TextEdit use terminal $ cd "your_project_location" $ open -a TextEdit Podfile I think you will try these steps : 1- $ cd Your file location 2- $ open -a Xcode Podfile Open file from Terminal vim Podfile 1.open podfile from terminal $ cd "your_project_location that contain podfile" $ nano Podfile 2.You can also open podfile using xcode Right click to podfile and choose openwith xcode. Drag and drop it to TextEdit or open

running pod set up gives me “bad interpreter: No such file or directory”

China☆狼群 提交于 2019-12-02 18:17:56
recently tried to do pod setup and i get this: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I followed Ray Wenderlich's guide to install cocoapods and i get this issue so i have no idea what is going on. Torre Lasley I encountered this problem when upgrading to Mac OS High Sierra. This was my fix: sudo gem install cocoapods I found this answer on the CocoaPods issue list on Github . After upgraded to High Sierra, I got the same error, just reinstalled the cocoapods sudo gem install -n /usr/local/bin cocoapods Niraj Paul Same issue I was

How to install specific pod without touching other dependencies

▼魔方 西西 提交于 2019-12-02 18:03:25
I want to install specific dependency using cocoapods . if I execute pod install , other dependencies are getting updated before installing my newly added dependency. I just want to install specific pod without touching any others. And I know deleting , updating any dependency also updates others. Is there any way to solve this problem? Actually my problem is when I myself modify some dependency ( AFNetworking for example) and run pod install it reverts back to its original version. But I don't want to lose my changes. Imran To Skip running pod repo update before install.Use pod install --no

How to structure a Xcode project with Frameworks, Extensions and CocoaPods

六月ゝ 毕业季﹏ 提交于 2019-12-02 17:37:06
NB: Here is a more abstract and simplified sub-set of this question . With the addition of Touch Frameworks, Extensions and the Apple Watch Xcode 6 projects and workspaces are getting more and more complex. If you add CocoaPods into this mix things start to get almost unmanageable. How would I structure an Xcode project/Workspace with the following targets and dependancies? (Assumptions: I am using Git for all the components, I am using CocoaPods for all third party code, I am using Xcode 6). MyCoolApp Several 3rd Party UI libraries via CocoaPods MyCoolNetworking.framework, a framework

'pod install' doesn't update an existing pod

£可爱£侵袭症+ 提交于 2019-12-02 17:26:27
I am trying to update my pod using pod install and finding that it doesn't update properly unless I delete the original pod . Is there some extra step required or is there a common mistake that makes updates fail? I'm not sure from which version, but if you update your cocoapods installation to the latest version, you'll find two new commands to help with this. pod outdated This will list all pods that have updates available. pod update This will update the pods listed in the previous command You can add the verbose tag and see if there is an error showing up during the update. pod install -

Building a static library with cocoapods

流过昼夜 提交于 2019-12-02 16:48:37
I am trying to build a static library that has different dependencies (AFNetworking for example) specified in a Podfile. I don't want the dependencies to be included in the final static library (call libMyProject.a), I just want to link against them and then create a MyProject.Podspec file where I can put the same dependencies. The problem is that when I build libMyProject.a the libPods.a is linked and included, so that if I distribute libMyProject.a and other people integrates it in a project which uses some of the same dependencies it will have duplicate symbols issues. How can I link

CocoaPods Trunk cannot push update: “You need to register a session first.”

为君一笑 提交于 2019-12-02 16:28:35
I am attempting to publish my library using the new CocoaPods Trunk service pod trunk push your-library.podspec This gives the error: [!] You need to register a session first. How does one register a session? Register a CocoaPods session in Terminal like so: pod trunk register name@example.org 'Your Name' --description='macbook pro' You will then be emailed at the provided address, click a link, and confirm your session. http://guides.cocoapods.org/making/getting-setup-with-trunk.html 来源: https://stackoverflow.com/questions/23900688/cocoapods-trunk-cannot-push-update-you-need-to-register-a

使用Carthage集成Alamofire

馋奶兔 提交于 2019-12-02 16:12:14
Carthage相较于Cocoapods有着使用灵活,对目标工程改动小的优势,使得它越来越受欢迎。今天就对我使用Carthage集成FBSDK做一个记录。 1、首先 https://github.com/Carthage/Carthage 查看官方网站,安装好Carthage. 在mac上我习惯用homebrew来安装,使用如下两个指令来安装。 安装:brew update brew install Carthage 如果你之前安装过Carthage,那么可以使用如下指令来查看当前版本号以及更新Carthage。 查看:carthage version 升级:brew upgrade carthage 2、安装完成后,cd 到你的工程根目录 Carthage和Cocoapods一样,通过一个文件来管理第三方库。名叫Cartfile 新建Cartfie文件:touch Cartfile 使用Xcode打开进行编辑:open -a Xcode Cartfile Cartfile指定依赖源以及版本号,版本号的控制与Cocoapods一样。 不指定版本号即默认最新版本。 Cartfile文件中的内容示例如下: /*--> */ /*--> */ github "Alamofire/Alamofire" ~>4.5.0 github "Alamofire/AlamofireImage"

How to find out the version of installed cocoa pods?

社会主义新天地 提交于 2019-12-02 15:22:45
How to find out the version of installed cocoa pods? I'm not asking about the version of the cocoa pods gem , but the version of the pods themselves. Ideally it would say "pod GreatViewController is installed in version 1.2.3, new version available: 1.2.6". Is there something like that? EDIT Based on your clarification you're looking for pod outdated . You can see more information about this with pod outdated --help Original answer before question was edited The command you want is pod --version In the future you should use pod --help to find answers such as this. You can also use pod COMMAND

How to rebuild development pod changes?

北战南征 提交于 2019-12-02 15:22:43
I have a development pod that I connect to the my app locally using :path => '~/Projects/Swift/pod' . When I make changes inside the application code in that development pod, this changes are not included after build. It's like I'm build cached code, not my code changes. For include code changes into build I have to run the command "Clean Build Folder", but after that build takes a very long time, for 10 minutes, which is not very productive. Literally, I comment on a line of code and wait 10 minutes to see the changes. What is the problem? I was trying to run "pod install/pod update" after