New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod install failure #11709
Comments
Same problem here Command
Report
Stack
Plugins
Podfilerequire_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '12.0'
target 'HappyV2' do
pre_install do |installer|
$RNMapboxMaps.pre_install(installer)
end
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
pod 'react-native-camera', path: '../node_modules/react-native-camera', subspecs: [
'TextDetector',
'FaceDetectorMLKit',
'BarcodeDetectorMLKit'
]
pod 'react-native-orientation-locker', :path => '../node_modules/react-native-orientation-locker'
target 'HappyV2Tests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.3
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
# use_flipper!({'Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})
# post_install do |installer|
# flipper_post_install(installer)
# end
post_install do |installer|
$RNMapboxMaps.post_install(installer)
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end Error
|
I got the same issue in this file gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `block (2 levels) in merged_xcconfigs' installing with gem |
It works for me, but what side effects will appear?! |
that seems to have solved it for me, but how did you find out ? |
Not saying it is a fix, someone who knows at least ruby should have a look. It is a workaround that seems stable so far... |
Where do i find this file???? |
Same problem. I don't know much about pod or ruby, but I don't think the workaround is correct. Why is a Pod::Version even being compared with def merged_xcconfigs(xcconfig_values_by_consumer_by_key, attribute, overriding: {})
xcconfig_values_by_consumer_by_key.each_with_object(overriding.dup) do |(key, values_by_consumer), xcconfig|
uniq_values = values_by_consumer.values.uniq
values_are_bools = uniq_values.all? { |v| v =~ /\A(yes|no)\z/i } # <-- here
if values_are_bools
|
Find the gem which cocoapods And then locate the The error line is: values_are_bools = uniq_values.all? { |v| v =~ /\A(yes|no)\z/i } It assumes uniq_values is an array of strings, but in the new config, it may be an array of arrays: # Normal uniq_values
["YES"]
["NO"]
# Causes problems uniq_values
[[["PICKER_MEDIA=1"], ["PICKER_AUDIO=1"], ["PICKER_DOCUMENT=1"]]] The # Detect v is "yes" or "no"
values_are_bools = uniq_values.all? { |v| v =~ /\A(yes|no)\z/i } Without future investigation, the solution may be one of these: # Flatten the array (so, there is always an array of strings)
values_are_bools = uniq_values.flatten.all? { |v| v =~ /\A(yes|no)\z/i }
# Convert the v from an Array to string
values_are_bools = uniq_values.all? { |v| v.to_s =~ /\A(yes|no)\z/i } |
Also having this issue, though it seems to only happen on ruby 3.2.0 for me - I tried 3.1.2 and 3.1.3 and they both worked fine. Same error:
|
for me the last line work |
Report
What did you do?
Run
pod install
What did you expect to happen?
Installation failure, an error occurred.
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
The text was updated successfully, but these errors were encountered: