Skip to content
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 ipc spec command generates JSON with escaped + char while on other machines not #12324

Open
1 task done
headfire94 opened this issue Mar 25, 2024 · 0 comments
Open
1 task done

Comments

@headfire94
Copy link

Report

What did you do?

When i run pod ipc spec ./custom-podspecs/libevent.podspec on our custom specification i get json which is a little bit different that json generated on co-workers machines

image

We all use same cocoapods version, ruby version, xcode version and macos version.

What did you expect to happen?

I expect to have same result.

What happened instead?

It add escape char around "+" symbol which leads to different checksum generated in podfile.lock

CocoaPods Environment

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
    RubyGems : 3.0.3.1
        Host : macOS 14.4 (23E214)
       Xcode : 15.3 (15E204a)
         Git : git version 2.43.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '14'
prepare_react_native_project!

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
#   dependencies: {
#     ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

install! 'cocoapods', :deterministic_uuids => false

def available_pods
  # Flags change depending on the env values.
  flags = get_default_flags()

  pod 'Base64', :podspec => './custom-podspecs/Base64.podspec'
  pod 'JWT', :podspec => './custom-podspecs/JWT.podspec'
  pod 'SSZipArchive', :podspec => './custom-podspecs/SSZipArchive.podspec'
  pod 'lottie-ios', :podspec => './custom-podspecs/lottie-ios.podspec'
  pod 'fmt', :podspec => './custom-podspecs/fmt.podspec'

  config = use_native_modules!
  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => true,
    :fabric_enabled => false,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  pod 'react-native-image-editor', :path => '../node_modules/@exodus/image-editor'

end

target 'exodus' do
  available_pods
end

target 'genesis' do
  available_pods
end

target 'qa' do
  available_pods
end

target 'creative' do
  available_pods
end


post_install do |installer|
  react_native_post_install(
    installer,
    # Set `mac_catalyst_enabled` to `true` in order to apply patches
    # necessary for Mac Catalyst builds
    :mac_catalyst_enabled => false
  )

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if target.name == "React-Core-AccessibilityResources"
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
      config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
    end
  end
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant