升级Xcode 11.4后构建Firebase项目重复报错求助
Pods-Project19-resources.sh Error After Upgrading Xcode to 11.4 for Firebase Projects Hey there, sorry you're stuck with this build error after updating Xcode to 11.4 on your Firebase project. I’ve helped troubleshoot similar issues before, so let’s go through practical steps to get this resolved:
Common Fixes to Try
1. Wipe Xcode Caches and Build Folder
Corrupted cached data is often the culprit here. Let’s clear it out:
- Close Xcode completely first.
- Run this command in Terminal to delete Xcode’s derived data:
rm -rf ~/Library/Developer/Xcode/DerivedData - Reopen your project, press
Cmd+Shift+Kto clean the current project’s build folder, then try rebuilding withCmd+B.
2. Fully Reintegrate Pods with Compatibility Checks
Just deleting Podfile.lock might not be enough—let’s do a full reset and verify Firebase versions:
- Run this in Terminal to completely remove all Pods from your project:
pod deintegrate - Open your
Podfileand double-check that your Firebase dependencies are compatible with Xcode 11.4. For example, you can specify a stable, Xcode 11-friendly version like:
(Adjust versions based on the latest stable releases that support Xcode 11.x)pod 'Firebase/Core', '~> 6.33.0' pod 'Firebase/Analytics', '~> 6.33.0' - Delete
Podfile.lockagain, then runpod installto fresh-install all dependencies.
3. Fix Execution Permissions for the Resources Script
Sometimes the Pods-Project19-resources.sh script loses its executable permissions, causing build failures:
- Navigate to
Pods/Target Support Files/Pods-Project19/in your project directory. - Run this command to grant execute access to the script:
chmod +x Pods-Project19-resources.sh - Try rebuilding your project afterward.
4. Audit Resource File Paths and Names
Xcode 11.4 has stricter handling of file paths. Check if any of your project’s resources (images, storyboards, xibs) have:
- Special characters (like
!@#$%^&*) in their names or paths - Non-ASCII characters (like Chinese characters)
Rename these files or adjust their paths to use only alphanumeric characters and underscores/hyphens, then rebuild.
If None of the Above Work
Try creating a brand new empty Xcode 11.4 project, integrate the same Firebase dependencies, and see if it builds successfully. If it does, compare the new project’s build settings and Pod configuration with your original project to spot any mismatches.
内容的提问来源于stack exchange,提问作者Rajni Tandon

