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

React 73.6 and Xcode 15.3 Multiple commands produce 'React-Core-60309c9c-RCTI18nStrings' (project 'Pods') and 'React-Core-RCTI18nStrings' (project 'Pods') #43610

Closed
nethusan opened this issue Mar 22, 2024 · 11 comments

Comments

@nethusan
Copy link

nethusan commented Mar 22, 2024

Description

I've created a new React Native project using version 73, and it's working perfectly fine on Android. However, when it comes to iOS, although I can build the project fine but I encounter issues when trying to archive it. I'm currently using Xcode 15.3. Initially, I tried to resolve the problem by removing one of the React-Core-60309c9c-RCTI18nStrings, but this led to other issues, such as RCT-Folly.common-Fabric not being found, despite the package being visible within the Pods under the targets.

Steps to reproduce

This is my package.json

  "dependencies": {
    "@microsoft/applicationinsights-web": "^3.1.0",
    "@react-navigation/native": "^6.1.15",
    "@react-navigation/native-stack": "^6.9.24",
    "npm": "^10.5.0",
    "react": "18.2.0",
    "react-native": "0.73.6",
    "react-native-device-info": "^10.13.1",
    "react-native-notifications": "^5.1.0",
    "react-native-safe-area-context": "^4.9.0",
    "react-native-screens": "^3.29.0",
    "react-native-splash-screen": "^3.3.0",
    "react-native-vector-icons": "^10.0.3",
    "react-native-webview": "^13.8.1"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.73.21",
    "@react-native/eslint-config": "0.73.2",
    "@react-native/metro-config": "0.73.5",
    "@react-native/typescript-config": "0.73.1",
    "@types/react": "^18.2.6",
    "@types/react-native-vector-icons": "^6.4.18",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },

This is from reeact-native doctor

iOS
 ✓ Xcode - Required for building and installing your app on iOS
 ✓ Ruby - Required for installing iOS dependencies
 ✓ CocoaPods - Required for installing iOS dependencies
 ● ios-deploy - Required for installing your app on a physical device with the CLI
 ✓ .xcode.env - File to customize Xcode environment

React Native Version

0.73.6

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.4
  CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
  Memory: 35.50 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.12.0
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.5.0
    path: ~/Desktop/Haldor.Guardians.Native/node_modules/.bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: 0.73.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/...-ebfnqokvbhzmfmbksvdvbshqoqpe/Build/Intermediates.noindex/ArchiveIntermediates/.../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle'

Target 'React-Core-60309c9c-RCTI18nStrings' (project 'Pods') has create directory command with output '/Users/...../Library/Developer/Xcode/DerivedData/...-ebfnqokvbhzmfmbksvdvbshqoqpe/Build/Intermediates.noindex/ArchiveIntermediates/.../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle'

Target 'React-Core-RCTI18nStrings' (project 'Pods') has create directory command with output '/Users/.../Library/Developer/Xcode/DerivedData/...-ebfnqokvbhzmfmbksvdvbshqoqpe/Build/Intermediates.noindex/ArchiveIntermediates/..../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle'

Reproducer

.

Screenshots and Videos

No response

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Mar 22, 2024
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@cortinico
Copy link
Contributor

This feels like a local environment problems of yours.
Can you clean DerivedData and try again?

@nethusan
Copy link
Author

nethusan commented Mar 22, 2024

@cortinico Yes, I have tried cleaning and archiving the project again, but I still encounter the same problem. As mentioned earlier, I am able to build and run the project in debug mode without any issues. However, this problem seems to occur specifically when attempting to build in release mode.

I also tried to delete the project wihin the derviedData folder.
File > Workspace Settings Then clicked over the little grey arrow under Derived data section and selected the project folder to delete it.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Mar 22, 2024
@nethusan nethusan changed the title React 73.3 and Xcode 15.3 Multiple commands produce 'React-Core-60309c9c-RCTI18nStrings' (project 'Pods') and 'React-Core-RCTI18nStrings' (project 'Pods') React 73.6 and Xcode 15.3 Multiple commands produce 'React-Core-60309c9c-RCTI18nStrings' (project 'Pods') and 'React-Core-RCTI18nStrings' (project 'Pods') Mar 22, 2024
@cortinico
Copy link
Contributor

We can't help you further sadly.
I suggest you seek support on StackOverflow or on other forum as we use the issue tracker only for issues with consistent reproducers.

@cortinico cortinico added Resolution: Cannot Reproduce and removed Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Attention Issues where the author has responded to feedback. labels Mar 22, 2024
@siisee11
Copy link

I got exactly same problem, @nethusan Did you solve this issue?

1 similar comment
@jinxiaoman
Copy link

I got exactly same problem, @nethusan Did you solve this issue?

@hiriski
Copy link

hiriski commented Mar 24, 2024

Hi @nethusan, I got the same problem when trying to create an archive for ios, and i find a solution the issue I was having was caused by react-native-config package omitting the following line in the Podfile it worked for me.
Screenshot 2024-03-24 at 23 51 07

pod install after you eliminate both lines above

@acb
Copy link

acb commented Mar 24, 2024

I was just having this same issue and deleting React-Core-RCTI18nStrings from the Pods list in Xcode fixed it for me. It doesn't seem to have affected the performance of the app in any way, so I guess it's ok.

@nethusan
Copy link
Author

@hiriski i do not have such configs in my pods, so it can not be related to that.

# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
  'require.resolve(
    "react-native/scripts/react_native_pods.rb",
    {paths: [process.argv[1]]},
  )', __dir__]).strip

platform :ios, min_ios_version_supported
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

target 'ProjectName' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    :flipper_configuration => flipper_config,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'ProjectNameTests' do
    inherit! :complete
    # Pods for testing
  end

  post_install do |installer|
    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false
    )
  end
end

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

@nethusan
Copy link
Author

@acb yes, but as i mentioned above, if I remove it, I am getting error on this:

Showing All Issues
Library 'RCT-Folly.common-Fabric' not found

But when i check within the Pods project, I can see it exist
image

Did you encounter this error and how did you solve it?

@siisee11
Copy link

I solved it by modifying Podfile

    installer.pods_project.targets.each do |target|
    
    # Added below if-end statement
      if target.name == "React-Core-RCTI18nStrings"
       target.remove_from_project
      end
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants