react-native icon indicating copy to clipboard operation
react-native copied to clipboard

iOS unable to archive [RN 0.63.3] - ".../AccessibilityResources.bundle" not found

Open cedced19 opened this issue 4 years ago • 6 comments

Hi, I'm facing the same kind of issue since some days. The workarounds didn't work for me. Someone had the same issue but didn't find any solution. Thank you for your help.

Description

I am unable to archive the project for release:

error: Resource "/Users/cedricjung/Library/Developer/Xcode/DerivedData/decouverto-asvavlxsbksyvhgovxmjpnlracmz/Build/Intermediates.noindex/ArchiveIntermediates/decouverto/BuildProductsPath/Release-iphoneos/React-Core/AccessibilityResources.bundle" not found. Run 'pod install' to update the copy resources script.

React Native version:

System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz
    Memory: 75.77 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.19.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.14.8 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.3 => 0.63.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Archive this RN project.

Link to my repository:

You can check all source code there.

cedced19 avatar Nov 07 '20 19:11 cedced19

Still exists when downgrading to react-native 0.63.2

cedced19 avatar Nov 20 '20 22:11 cedced19

having the same issue

chgsilva avatar Dec 11 '20 21:12 chgsilva

Has anyone figured this out? Stuck for weeks now.

julianxlozano avatar Jan 23 '22 19:01 julianxlozano

The way I overcame this @julianxlozano was navigating to the actual script located at vim <Project>/ios/Pods/Target\ Support\ Files/Pods-<Project>/Pods-<project>-resources.sh and removing the require of the accessibility pod. Was able to get an archive built (currently testing to see what side effects if any). I figured removing the validation straight in the script was okay given the other thread actually says remove the pod in general.

The block I removed from looks something like

if [[ "$CONFIGURATION" == "Debug" ]]; then
  install_resource "${PODS_CONFIGURATION_BUILD_DIR}/PersonalizedAdConsent/PersonalizedAdConsent.bundle"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
  install_resource "${PODS_CONFIGURATION_BUILD_DIR}/PersonalizedAdConsent/PersonalizedAdConsent.bundle"
fi

sdb1228 avatar Feb 18 '22 23:02 sdb1228

Having the same issue. Is there any solution?

davidking1234 avatar Sep 21 '22 01:09 davidking1234

THANK YOU @sdb1228 !!! THAT WORKED!!! You are a life saver!

shahzore-qureshi avatar Mar 07 '23 22:03 shahzore-qureshi

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 04 '23 05:09 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Sep 11 '23 05:09 github-actions[bot]