The following exceptions occur when I try to archive a version of this app. It runs fine in DEBUG - ive bashed my head through all github forums and stack overflow posts trying all fixes:
- deleting the duplicate pods in xcode - cause a hermes error which then fails ALL builds
the following all show the same symptoms (same error ONLY in an archive build)
- adjusting pod file to eliminate duplicates
- inserting a script in build phases
- have checked info.plist, project.pbxproj and other key files
HELP... i need to get this published 4 weeks ago
Prepare build error: Multiple commands produce '/Users/Library/Developer/Xcode/DerivedData/WildtrackProReact-ccekvzdhkorxtrauputwcraqedhf/Build/Intermediates.noindex/ArchiveIntermediates/WildtrackProReact/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle' note: Target 'React-Core-c704a495-RCTI18nStrings' (project 'Pods') has create directory command with output '/Users/Library/Developer/Xcode/DerivedData/WildtrackProReact-ccekvzdhkorxtrauputwcraqedhf/Build/Intermediates.noindex/ArchiveIntermediates/WildtrackProReact/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle' note: Target 'React-Core.common-RCTI18nStrings' (project 'Pods') has create directory command with output '/Users/Library/Developer/Xcode/DerivedData/WildtrackProReact-ccekvzdhkorxtrauputwcraqedhf/Build/Intermediates.noindex/ArchiveIntermediates/WildtrackProReact/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle'
Multiple commands produce '/Users/Library/Developer/Xcode/DerivedData/WildtrackProReact-ccekvzdhkorxtrauputwcraqedhf/Build/Intermediates.noindex/ArchiveIntermediates/WildtrackProReact/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RCTI18nStrings.bundle'
So I've fixed this ... with the jankiest fix imaginable... but it works:
Step 1: build in debug and test.
Step 2: Archive with both:
- react-Core.common - RCTI18nStrings
- react-Core-c704a495-RCTI18nStrings
This build will then error
Step 3: Navigate to the folder for derived data and then into:
- <PROJECT NAME>/Build/Intermediates.noindex/ ArchiveIntermediates/WildtrackProReact/BuildProductsPath/Debug-iphoneos/React-Core.Common/
Leave this folder open (or a folder nearby in the tree)
Step 4: In Xcode navigate to the PODS; delete:
- React-Core-c704a495-RCTI18nStrings
Step 5: Archive the project...
Do Step 6 QUICKLY or it will error
Step 6: Copy RCTI18nStrings.bundle from the folder navigated to in Step 3 and Paste it into:
- <PROJECT NAME>/Build/Intermediates.noindex/ ArchiveIntermediates/WildtrackProReact/BuildProductsPath/Debug-iphoneos/React-Core-c704a495/
These folders will be adjacent in the build tree so you dont have to navigate far.
The project will then archive...