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
CocoaPods - 1.1.1
My pod file looks like this:
target 'MyNewProject' do
pod 'XLPagerTabStrip', '~> 5.0'
pod 'AFNetworking', '~> 3.0'
end
use_frameworks!
XLPagerTabStrip library is installed with an old swift version and xcode propose me convert it up to 2.3 or 3.0. This issue is noticed with other swift libraries e.g. Reactive Cocoa
Thank you!
As mintioned in XLPagerTabStrip - Change Log:
6.0.0
Swift 3 support
So updating its pod to the latest version should let it supports Swift 3 by default.
You can add it as pod 'XLPagerTabStrip' without specifying the version number, which causes to get latest version (it's the default behavior if you are not specifying the version number).
Change: pod 'XLPagerTabStrip', '~> 5.0' to pod 'XLPagerTabStrip'
As mentioned, you should get version 6.0.0 (latest version).
Finally, your pod file should look like:
target 'MyNewProject' do
pod 'XLPagerTabStrip'
pod 'AFNetworking', '~> 3.0'
end
use_frameworks!
Recap: After making sure that the latest version of a library has been released to support -for example- Swift 3, install it without specifying the version number; Each time you'll update the podfile, it will automatically install the latest version of the pod.
For more information, you can check Podfile Syntax Reference.
Hope this helped.
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.
Hello i have a issue trying use alamofire 1.3, i need this because my projects wasn't migrated to swift 2.0, so here is my pod file:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
use_frameworks!
target 'AppName' do
pod 'Alamofire', '~> 1.3'
end
But always get this error:
Resolving dependencies of Podfile
[!] Unable to satisfy the following requirements:
- Alamofire (~> 1.3) required by Podfile
Any idea?
You cannot use Alamofire with CocoaPods with a deployment target of 7.0. It MUST be 8.0+. The reason for this is that Swift frameworks are not supported on iOS 7.
user$ pod install
Analyzing dependencies
CocoaPods 0.21.0.rc1 is available.
Downloading dependencies
Installing CorePlot (1.2)
[!] Unable to locate the executable `hg`
Content of Podfile:
**********************
platform :ios
pod 'CorePlot', '~> 1.2'
****************************
First result on Google (next time you may want to feel lucky)
You need Mercurial to install the CorePlot pod
brew install mercurial
will solve the issue (assuming you use brew already).
Otherwise just install it from the Mercurial website.
Download mercurial manually from this url:
https://www.mercurial-scm.org/wiki/Download