question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS unable to archive [RN 0.63.2] - Target 'React-Core.common-AccessibilityResources' has create directory command with output

See original GitHub issue

Description

I am unable to archive the project for release.

React Native version:

System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 5.95 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 8.9.4 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.8.4 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 25, 26, 27, 28, 29
      Build Tools: 26.0.2, 26.0.3, 27.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.2
      System Images: android-28 | Google Play Intel x86 Atom, android-P | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6626763
    Xcode: 11.5/11E608c - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_172 - /usr/bin/javac
    Python: 2.7.14 - /usr/local/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Archive a RN project at 0.63.2 with new build system in xCode 11.5 after upgrading from RN 0.61.x or lower.

Error encountered:

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

1) Target 'React-Core.common-AccessibilityResources' has create directory command with output '/Users/.../Library/Developer/Xcode/DerivedData/...-ajoyscixyrdigdfuscjixbqjltzi/Build/Intermediates.noindex/ArchiveIntermediates/.../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'

2) Target 'React-Core.common-CoreModulesHeaders-AccessibilityResources' has create directory command with output '/Users/.../Library/Developer/Xcode/DerivedData/...-ajoyscixyrdigdfuscjixbqjltzi/Build/Intermediates.noindex/ArchiveIntermediates/.../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'

Current Workaround:

Remove target in your Podfile. It should look something like this (react-native 0.63.2): Note: ONLY remove React-Core.common-AccessibilityResources

target 'yourapp' do

  # your pods go here

  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 these next few lines.

  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)

    installer.pods_project.targets.each do |target|
      if target.name == "React-Core.common-AccessibilityResources"
        target.remove_from_project
      end
    end
    
  end
end

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:28
  • Comments:38

github_iconTop GitHub Comments

59reactions
heritvithalani19commented, Aug 30, 2020
  1. Open your xCode
  2. select pod folder
  3. find or search React-Core.common-AccessibilityResources
  4. Remove it from pod Screenshot 2020-08-30 at 2 23 23 PM

5 rebuild your project

10reactions
AngeeelDcommented, Aug 24, 2020

I had a couple of days attending this problem but I’m still getting same error or related error after testing different “solutions”

My project contains a Notification Extension and I’m getting this issue but instead to have it related with main target, i have the related with the extension.

Following Current Workaround provided on issue description, I’m getting this error on my Notification Extension:

error: Resource "/Users/angeeeld/Library/Developer/Xcode/DerivedData/..../BuildProductsPath/Release-iphoneos/React-Core.common/AccessibilityResources.bundle" not found. Run 'pod install' to update the copy resources script.

Any idea how to address the issue?

Meanwhile, I will continue on my research, if I found something, I won’t hesitate on let you know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix React Native App not building for iOS - Stack Overflow
I fixed this error by deleting 'React-Core.common-AccessibilityResources' from my pod targets. When attempting to archive, make sure you are ...
Read more >
Xcode 12.5 Multiple commands produ… - Apple Developer
Xcode 12.5 Multiple commands produce framework and ProcessXCFramework ... 2) Target 'AppCenter iOS Framework' has create directory command with output ...
Read more >
Running On Simulator - React Native
Once you have your React Native project initialized, you can run npx react-native run-ios inside the newly created project directory.
Read more >
Multiple commands produce on Xcode 12 and react native
I am trying to build and archive the app for ios. ... 2) Target 'React-Core-AccessibilityResources' has create directory command with output ...
Read more >
React-native – Xcode 10 archive build failed - iTecNote
react-nativereact-native-iosxcode10. I'm getting the errors below when trying to archive the app. ... 1) Target 'yoga' has a command with output
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found