Questions tagged [podfile]

The Podfile is a specification that describes the dependencies of the targets of one or more Xcode projects. The file should simply be named Podfile.

A pod file is used with CocoaPod and CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.

370 questions
4
votes
3 answers

Invalid `Podfile` file: No such file or directory @ rb_sysopen - flutter_module⁩/.ios/Flutter/podhelper.rb

I am integrating flutter module in the iOS app and while installing the pod, I am getting this error. Below is the code in podfile. # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'FlutteriOSApp'…
Nirav Tukadiya
  • 3,367
  • 1
  • 18
  • 36
4
votes
1 answer

iOS action extension Cocoapods Podfile FBSDKCoreKit 'sharedApplication' is unavailable

I need the Facebook SDK in both my app and my action extension. I use Cocoapods 1.4.0, Swift 4 and Xcode 9.2. I'm having this error message coming from the FBSDKCoreKit: 'sharedApplication' is unavailable: not available on iOS (App Extension) -…
Marie Dm
  • 2,637
  • 3
  • 24
  • 43
4
votes
1 answer

An error occurred while processing the post-install hook of the Podfile

The post_install used to work when I'd run pod install or pod update. But now it throws an error: [!] An error occurred while processing the post-install hook of the Podfile. undefined method `push' for # Did you mean? …
waseefakhtar
  • 1,373
  • 2
  • 24
  • 47
4
votes
2 answers

Update / Install CocoaPods for specific target

Is it possible to do pod install @targetName? I stuck with a problem that I do not have an option to update pods for my project but I have to install new pods for my unit tests target.
Mykyta Savchuk
  • 1,195
  • 13
  • 13
4
votes
1 answer

Retrieve pod from a folder inside a repo

Currently we need to work with a library which has been merged into another project. That library has its own podspec and was previously available as a remote pod from its own git repo. After it was merged in the big project, the big project uses…
Fawkes
  • 3,831
  • 3
  • 22
  • 37
4
votes
0 answers

my pod is not in the list after pod trunk push and success

I've just created a pod and push it to the cocoa pods with no error. Congrats xxxxx (0.1.1) successfully published July 26th, 15:44 https://cocoapods.org/pods/xxxx Tell your friends! But I can not see it on the list (cocoapods.com) Is…
Özgür Ersil
  • 6,909
  • 3
  • 19
  • 29
4
votes
3 answers

Proper way of editing a CocoaPod Library

I experienced before that manipulating CocoaPod installed. Let's assume I have TheLibrary.swift installed via CocoaPod. Now it's under Pods > Libray > TheLibrary.swift. It's very bad practice to edit that file. So what is the proper way of editing…
senty
  • 12,385
  • 28
  • 130
  • 260
4
votes
3 answers

Setting up a Framework on macOS Command Line apps - Reason: image not found

I have been wrestling with this for weeks now. Why does the following macOS setup give an Alamofire linker error ? Steps to recreate linker error: Create new macOS Command Line app Run pod init from Terminal Update Create the following…
rustyMagnet
  • 3,479
  • 1
  • 31
  • 41
3
votes
0 answers

How to add post_install script in my podspec file?

How can I add post_install script in podspec file of my custom cocoapod and execute code below? post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| …
3
votes
5 answers

Unable to Pod Install on a brand new React Native Project

I am running on an M1 Mac, and after following all of the instructions here, I am unable to run any form of pod install. When I do, I am given the following error... [!] Invalid `Podfile` file: undefined local variable or…
TheMilkMan
  • 143
  • 2
  • 7
3
votes
1 answer

"dependency.assets" is not allowed

I recently upgrade react-native to 0.69 When I use XCode and I start de project, the project build, but the app don't launch. I error, I got this : Package native-base contains invalid configuration: "dependency.assets" is not allowed. Please verify…
Pentagura
  • 551
  • 2
  • 8
  • 25
3
votes
0 answers

How to override version of pod dependency in flutter ios project

I am using flutter_facebook_auth and facebook_app_events plugins. One requires FBSDKCoreKit with version 13.0.0 and the other one with 13.1.0. When I want to run my app it fails because of this version conflict. Is there a way to override the…
Code Spirit
  • 3,992
  • 4
  • 23
  • 34
3
votes
0 answers

React Native Pod error No such file or directory .pm2

I am trying to set up the pod to get the camera permissions. Apparently, the pod cannot find the .pm2 file or directory when running pod install or pod setup. A:\App>pod setup internal/fs/utils.js:332 throw err; ^ Error: ENOENT: no such…
kakakakakakakk
  • 467
  • 10
  • 31
3
votes
0 answers

Use a Cocoapod from main project into a Swift package

I've developed a simple Swift Package with a UIView to use it in more projects. I needed in that UIView to use a UIImageView that receives the image from a URL and I want for that to use SDWebImage. I've added in my Swift Package Package.swift the…
poPaTheGuru
  • 1,009
  • 1
  • 13
  • 35
3
votes
1 answer

React Native- Using Hermes with Flipper disabled on iOS

I'm having a hard time using Flipper. I commented it out in Podfile while hermes_enabled => true. I ran pod install agin and build the app but it crashed upon launch. When I set Hermes to false, it was build successfully. Is there a way to…
Hadis
  • 535
  • 3
  • 11
  • 31