Saturday, April 13, 2024
HomeiOS Developmentios - Challenge working "pod set up", creating app utilizing expo and...

ios – Challenge working “pod set up”, creating app utilizing expo and must have in app purchases


when runninng ‘npx expo prebuild’ i’ve a difficulty putting in cocoapods
beneath is an error i get working pod set up

[!] Unable to discover a specification for `RNFBApp` depended upon by `RNFBStorage`

You've gotten both:
 * out-of-date supply repos which you'll replace with `pod repo replace` or with `pod set up --repo-update`.
 * mistyped the identify or model.
 * not added the supply repo that hosts the Podspec to your Podfile.

Beneath is a replica of my podfile within the ios listing

require File.be a part of(File.dirname(`node --print "require.resolve('expo/package deal.json')"`), "scripts/autolinking")
require File.be a part of(File.dirname(`node --print "require.resolve('react-native/package deal.json')"`), "scripts/react_native_pods")

require 'json'
podfile_properties = JSON.parse(File.learn(File.be a part of(__dir__, 'Podfile.properties.json'))) rescue {}

ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.4'
set up! 'cocoapods',
  :deterministic_uuids => false

prepare_react_native_project!

# If you're utilizing a `react-native-flipper` your iOS construct will fail when `NO_FLIPPER=1` is about.
# as a result of `react-native-flipper` depends upon (FlipperKit,...), which can be excluded. To repair this,
# you may as well exclude `react-native-flipper` in `react-native.config.js`
#
# ```js
# module.exports = {
#   dependencies: {
#     ...(course of.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
#   }
# }
# ```
flipper_config = FlipperConfiguration.disabled
if ENV['NO_FLIPPER'] == '1' then
  # Explicitly disabled by way of setting variables
  flipper_config = FlipperConfiguration.disabled
elsif podfile_properties.key?('ios.flipper') then
  # Configure Flipper in Podfile.properties.json
  if podfile_properties['ios.flipper'] == 'true' then
    flipper_config = FlipperConfiguration.enabled(["Debug", "Release"])
  elsif podfile_properties['ios.flipper'] != 'false' then
    flipper_config = FlipperConfiguration.enabled(["Debug", "Release"], { 'Flipper' => podfile_properties['ios.flipper'] })
  finish
finish

use_frameworks!

goal 'Fortunate' do
  use_expo_modules!
  config = use_native_modules!

  use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
  use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']

  use_react_native!(
    :path => config[:reactNativePath],
    :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
    # An absolute path to your utility root.
    :app_path => "#{Pod::Config.occasion.installation_root}/..",
    # Notice that when you have use_frameworks! enabled, Flipper is not going to work if enabled
    :flipper_configuration => flipper_config
  )

  post_install do |installer|
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false
    )

    # That is obligatory for Xcode 14, as a result of it indicators useful resource bundles by default
    # when constructing for units.
    installer.target_installation_results.pod_target_installation_results
      .every do |pod_name, target_installation_result|
      target_installation_result.resource_bundle_targets.every do |resource_bundle_target|
        resource_bundle_target.build_configurations.every do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        finish
      finish
    finish
  finish

  post_integrate do |installer|
    start
      expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    finish
  finish
finish

I’ve had this problem for a number of days and am utterly caught on what to do. I’m utilizing an M2 Mac. I’ve tried to run ‘arch -x86_64 pod set up’ which additionally doesn’t work.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments