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.
asked Jul 11, 2016 at 12:35
Ahmed AbdallahAhmed Abdallah
2,2511 gold badge18 silver badges29 bronze badges
3
Open the Podfile with TextEdit use terminal
$ cd "your_project_location" $ open -a TextEdit Podfileanswered Jul 11, 2016 at 12:35
Ahmed AbdallahAhmed Abdallah
2,2511 gold badge18 silver badges29 bronze badges
4
Open file from Terminal
vim Podfile
answered Jul 11, 2016 at 13:57
Yakiv KovalskyiYakiv Kovalskyi
1,7371 gold badge15 silver badges29 bronze badges
4
I think you will try these steps :
1- $ cd Your file location
2- $ open -a Xcode Podfile
answered Jul 11, 2016 at 13:22
Abd AboudiAbd Aboudi
3312 silver badges7 bronze badges
0
1.open podfile from terminal
$ cd "your_project_location that contain podfile" $ nano Podfile2.You can also open podfile using xcode
Right click to podfile and choose openwith xcode.
answered Jul 11, 2016 at 12:49
Drag and drop it to TextEdit or open project in XCode and edit there.
answered Jul 11, 2016 at 12:50
IgorIgor
11.9k4 gold badges54 silver badges72 bronze badges
To create a new project with CocoaPods, follow these simple steps: Integrating CocoaPods with an existing workspace requires one extra line in your
Podfile. Simply specify the .xcworkspace filename in outside your target blocks like so: Many people are confused about when to use pod install and when to use pod update. Especially, they often use pod update where they should instead use pod install. You can find a detailed explanation about
when to use each and what are the intended usage of each command in this dedicated guide. Whether or not you check in your Pods folder is up to you, as workflows
vary from project to project. We recommend that you keep the Pods directory under source control, and don't add it to your .gitignore. But ultimately this decision is up to you: Whether or not you check in the Pods directory, the Podfile and Podfile.lock should always be kept under version control. This file is generated after the first run of pod install, and tracks the version of each Pod that was installed. For example,
imagine the following dependency specified in the Podfile: Running pod install will install the current version of RestKit, causing a Podfile.lock to be generated that indicates the exact version installed (e.g. RestKit 0.10.3). Thanks to the Podfile.lock, running pod install on this hypothetical project at a later point in time on a different machine will still install RestKit 0.10.3 even if a newer version is available. CocoaPods will honour the Pod version in Podfile.lock unless the
dependency is updated in the Podfile or pod update is called (which will cause a new Podfile.lock to be generated). In this way CocoaPods avoids headaches caused by unexpected changes to dependencies. There's a great video from Google about how this works: "CocoaPods and Lockfiles (Route 85)". In Xcode, with references directly from the ruby source, it: Note that steps 3 onwards are skipped if the CocoaPods static library is already in your project. This is largely based on Jonah
Williams' work on Static Libraries. CocoaPods and git submodules attempt to solve very similar problems. Both strive to simplify the process of including 3rd party code in your project. Submodules link to a specific commit of that project,
while a CocoaPod is tied to a versioned developer release. Before you decide to make the full switch to CocoaPods, make sure that the libraries you are currently using are all available. It is also a good idea to record the versions of the libraries you are currently using, so that you can setup
CocoaPods to use the same ones. It's also a good idea to do this incrementally, going dependency by dependency instead of one big move. <Adding Pods to an Xcode project
Before you begin
<Installation
<Creating a new Xcode project with CocoaPods
<Integration with an existing workspace
<When to use pod install vs pod update?
<Should I check the Pods directory into source control?
<Benefits of checking in the Pods directory
<Benefits
of ignoring the Pods directory
<What is Podfile.lock?
<What is happening behind the scenes?
<Pods and Submodules
<Switching from submodules to CocoaPods