I have been trying to run ios for a new but kept getting this error
** BUILD FAILED **
The following build commands failed:
CompileC /Users/struggle/Library/Developer/Xcode/DerivedData/client-grabnjjdhfcfyugfdqcwdvbebnva/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/struggle/Desktop/Tax/client/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I saw a solution that said to add use_flipper!({ 'Flipper-Folly' => '2.3.0' }) in my podfile now when i run pod install i get the following error
`[!] CocoaPods could not find compatible versions for pod "Flipper-Folly":
In Podfile:
Flipper-Folly (= 2.3.0)
FlipperKit (~> 0.54.0) was resolved to 0.54.0, which depends on
FlipperKit/Core (= 0.54.0) was resolved to 0.54.0, which depends on
Flipper (~> 0.54.0) was resolved to 0.54.0, which depends on
Flipper-Folly (~> 2.2)
FlipperKit (~> 0.54.0) was resolved to 0.54.0, which depends on
FlipperKit/Core (= 0.54.0) was resolved to 0.54.0, which depends on
Flipper (~> 0.54.0) was resolved to 0.54.0, which depends on
Flipper-RSocket (~> 1.1) was resolved to 1.3.0, which depends on
Flipper-Folly (~> 2.5)`
Using ({'Flipper-Folly' => '2.3.0'}) results in me getting the inital error again.
Please help me fix this issue. Thank You
In my case, I had just had to update the repo.
pod install --repo-update
the above command worked for me.
Delete Podfile.lock and run pod install. It will start working.Also update your cocoapods by running sudo gem install cocoapods
as of today April 11, 2021 use_flipper!({ 'Flipper-Folly' => '2.3.0' }) no longer works. Instead you use, use_flipper!({ 'Flipper-Folly' => '2.5' }) if this won't work in the future either. Look into the error it will tell you which version to use.
For Mac M1 mates.
I just updates the repo.
arch -x86_64 pod install --repo-update
its worked
Delete Podfile.lock
Add to your Podfile
use_flipper!({ 'Flipper-Folly' => '2.3.0' }) # update this part
post_install do |installer|
flipper_post_install(installer)
end
run pod install.
if your Podfile contains below code or something like this and its working successfully for one of your project but not working for others,
which means
Your podfile.lock may contains above definition or working flavour of folly.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
arch -x86_64 pod install --repo-update
after running above command for the issue on M1 Chip Mac
CocoaPods could not find compatible versions for pod "FlipperKit": In
Podfile: FlipperKit (= 0.125.0)
and you will see the result as per showing image
Remove the version with flipper so that it installs the latest available one on pod install.
So in pod file:
Change:
use_flipper!({ 'Flipper-Folly' => '2.3.0' })
to:
use_flipper!
For xcode 13 and react-native 0.66 (since the question is tagged with react-native), the only solution that worked for me is:
react-native start --reset-cache
rm -rf node_modules/
rm -rf package-lock.json
cd ios && pod deintegrate
cd .. && rm -rf ios/Podfile.lock
npm install
npm audit fix
react-native link
cd ios && pod install
cd .. && react-native run-ios
Source: https://github.com/facebook/react-native/issues/28408
I needed to go down one version before it, since the last one was 3 hours ago and obviously still not available in any repo.
Check this:
https://github.com/facebook/flipper/releases
And this:
https://fbflipper.com/docs/getting-started/react-native/
Update 2022, May 27th:
npx pod-install --repo-update
For fast fix
Do update pod file :-
# use_flipper!
# post_install do |installer|
# flipper_post_install(installer)
# end
Related
Cocoapods is no longer generating all the required headers in Pods/Headers/Private and thus causing hundreds of "missing from working copy" build issues.
The issue started happening when I upgraded from:
Xcode 7
Cocoapods pre-1.0 (not sure which version I had)
OSX El Capitan
platform ios 7.0
to
Xcode 8 Beta 6
Cocoapods 1.0.1
macOS Sierra 10.12 Beta
platform ios 8.0
My "Pods/Target Support Files" folder has 35 pods, but my "Pods/Headers/Private" and "Pods/Headers/Private" have only 4 pods each.
I tried adding "$(inherited)" to my build settings and many other of the suggested fixes on stackoverflow and cocoapods' website with no success.
platform :ios, '8.0'
target 'Meow' do
use_frameworks!
pod "AFNetworking"
pod 'SCLAlertView-Objective-C'
pod "MMMaterialDesignSpinner"
pod "JMImageCache"
pod “AWSCore”
pod “AWSSNS”
pod “AWSMobileAnalytics”
pod ”SSToolkit”, '~> 2.0.0'
pod ”TTTAttributedLabel”
pod ”M13ProgressSuite”
pod ”SSKeychain”
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod "Flurry-iOS-SDK"
pod "TPKeyboardAvoiding"
pod "UITextView+Placeholder"
pod "UIReadMoreLabel"
pod "RTLabel"
pod "HexColors"
pod "Branch"
pod 'Google/Analytics'
pod 'Mixpanel'
pod 'Fabric'
pod 'Crashlytics'
target 'MeowTests' do
inherit! :search_paths
end
end
Any help is super appreciated!
Henri
After lots of digging and trial/error I figured it out. The root issue was the upgrade from Cocoapods 0.39 to 1.0+.
You can solve this by following theses steps:
Remove any build settings you're overriding by following this: Cocoapods no longer builds project after update?
Downgrade from v1.0+ to 0.39 following this: How to downgrade or install an older version of Cocoapods
Delete the Pods folder, the Pod lock file
Add this line to the top of your Podfile
source "https://github.com/CocoaPods/Old-Specs"
Run pod install
Run cmd+k in Xcode and compile.
More Resources:
http://blog.cocoapods.org/Sharding/
To me #cybermach answer is partially helpful.
The full answer is:
1- Downgrade the CocoaPods from 1.0 to 0.39 using this link:
Install old cocoapods?
2- Then use this command "pod install" to again add the private headers.
I have a problem with cocoapods using versions 0.34.4 & cocoapods-0.35.0.rc2
After I updated my laptop to OS X Yosemite I had to update gems and cocoapods and my old iOS project stop working
I'm getting the following errors:
using cocoapods-0.34.4:
ld: library not found for -lPods-Evernote-SDK-iOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
using cocoapods-0.35.0.rc2:
There is a circular dependency between ShareKit/NoARC and ShareKit/Core
Here is my podfile contents, Any Help ??
platform :ios, '6.0'
source 'https://github.com/CocoaPods/Specs.git'
pod 'CXAlertView'
pod 'ShareKit'
pod 'JSONKit'
pod 'FPPopover'
pod 'Base64'
pod 'CZDateFormatterCache'
pod 'JMImageCache'
pod 'Reachability'
pod 'MFSideMenu'
pod 'ASIHTTPRequest'
Remove your current 0.35.0 version you could just run:
sudo gem uninstall cocoapods
you must install a specific version of cocoa pods via the command:
sudo gem install cocoapods -v 0.34.4
than pod install
Solved by creating new project!
I used cocoapods-0.34.4 with the new project
The first version I released for my framework was 1.0.0.
I just finished version 1.1.0 and wanted to update the the version in cocoa pods.
Steps I did:
Updated podspec file (Changed the version and tag to 1.1.0 and added a framework that I needed).
I first pushed the changes to Github using the Github for Mac app
Ran pod lib lint and passed validation
Entered git add -A && git commit -m "Release 1.1.0" and got a weird (Your branch is ahead of 'origin/master' by 1 commit).
Entered git tag '1.1.0'
Entered git push --tags (and it said everything was good and it showed 1.1.0 passing).
When I search my framework in pod search "name" it still shows 1.0.0 as the version.
Did I miss something or does it take some time to update?
You just follow the below terminal commands.
While your going to update your pods you just focus on the below terminal commands.These commands are more than enough for update your pods. Hope it may help you.
Open the Terminal:
$sudo gem update —system
$sudo gem uninstall cocoapods
$sudo gem install cocoapods
$pod setup
$cd <project path>
$pod init
$ open -a Xcode Podfile
add files(framework name) into to your pod file.
Example:
platform :ios, '7.0'
pod 'FBSDKLoginKit'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBAudienceNetwork'
pod 'FBSDKMessengerShareKit'
Save your pod file. then,
$pod install
$pod update(if you need)
The frameworks will downloading the latest version, if we are not mentioning the version name (Ex:
pod 'AFNetworking', '~> 2.5'
)
platform :ios, '7.0' (The version 7.0 is your Deployment target)
Open your project folder --> Open the project workspace not the Xcode project.
Clean the Project.
Run the Project.
Hope it will useful for you.!
Thanks.
please refer to cocoapods spec Cocoa guid
You can use
pod trunk push NAME.podspec
Your steps 4,5,6 is not necessary.
I successfully install cocoapods 0.29, and after attempting to run pod setup, it claims I must install 0.29.
Can someone please explain this to me??
Successfully installed cocoapods-0.29.0
Parsing documentation for cocoapods-0.29.0
1 gem installed
bash-3.2$ pod setup
Setting up CocoaPods master repo
Already up-to-date.
[!] The `master` repo requires CocoaPods 0.29.0 -
Update CocoaPods, or checkout the appropriate tag in the repo.
UPDATE:
After updating cocoapods, I am able to run pod setup, however still getting some error about 0.29 not being installed: (And also, when running pod --version, it says I'm on 0.22.3???)
bash-3.2$ sudo gem update cocoapods
Updating installed gems
Nothing to update
bash-3.2$ sudo pod setup
Setting up CocoaPods master repo
Already up-to-date.
Setup completed (read-only access)
bash-3.2$ pod install
Setting up CocoaPods master repo
Already up-to-date.
[!] The `master` repo requires CocoaPods 0.29.0 -
Update CocoaPods, or checkout the appropriate tag in the repo.
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.3.2/lib/claide/command.rb:210:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
bash-3.2$ pod --version
0.22.3
navigate this file and delete it
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.3.2/lib/claide
then open ur terminal add this
sudo gem update
its worked for me 100%
Based on your comment
$ type -a pod
pod is /Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod
pod is /Users/me/.rvm/rubies/ruby-2.0.0-p247/bin/pod
pod is /usr/bin/pod
it appears you have multiple installations of Cocoapods: one with gem install cocoapods in /Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod and another with sudo gem install cocoapods in /usr/bin/pod (I don't know what /Users/me/.rvm/rubies/ruby-2.0.0-p247/bin/pod is).
So running gem install cocoapods should fix the problem by updating the install in /Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod.
I'd recommend cleaning up your install though by removing either the global (with sudo) one or the local (without sudo) one.
EDIT:
Here's my Jenkins install:
Installed Cocoapods with gem install cocoapods.
Running type -a pod yield:
$ type -a pod
pod is /Users/Shared/Jenkins/Home/gems/bin/pod
In the Jenkins global config, I added the following environment variables:
GEM_HOME = $JENKINS_HOME/gems
GEM_PATH = $JENKINS_HOME/gems:/usr/lib/ruby/gems/1.8/
PATH = $PATH:$HOME/gems/bin
I added a "Shell script" build step to each project with:
POD_PROJECT_DIRECTORY='MyProject' # Directory where the Podfile is. Probably the same as Xcode plugin's "Xcode Project Directory".
cd "$WORKSPACE/$POD_PROJECT_DIRECTORY"
# rm -rf ./Pods # Uncomment this line if you want to re-download all the Pods each time
pod install --no-color
I found the mismatch of version reported by 'pod --version' and what I was seeing when I updated to be mystifying. Then I realized I had more than one ruby installed on my machine. I changed my $PATH so that the ruby I needed to use came first (e.g. /usr/local/opt/ruby/bin):
In a new shell I found that 'pod --version' started reporting the '0.29.0' version I wanted.
Hi I'm trying to install Pod files for TumbrSdk and when I give this command Install pod It is giving me Unable to find a specification for `JXHTTP (= 1.0.0) this error.
Steps I'm doing
After setup Pod
- I change directory to where I want to add podfile
- Then typed command vim Podfile
- Then Insert
platform :ios, '5.0'
pod 'TMTumblrSDK'
- Followed by :wq command thus far all went well
- When I fire this command pod install
It gave me the above error
Has any1 faced this issue?? Please help if you have the solution.
Thanks
You should make sure the JXHTTP spec exists in ~/.cocoapods/repos/master/Specs/JXHTTP/1.0.0/JXHTTP.podspec.json
Assuming it doesn't and this is the issue you can redownload the entire master specs repo with:
rm -rf ~/.cocoapods && pod setup