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
Command PhaseScriptExecution failed with a nonzero exit code - Error when Archive on Xcode 14.3 #36762
Comments
Having the same issue. Apple M2 Pro, Xcode 14.3. |
+1 |
1 similar comment
+1 |
Facing the same issue. rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9] Command PhaseScriptExecution failed with a nonzero exit code UPDATE |
duplicate of #36739 |
@kelset The patch reported in the problem you cited, does not solve my problem. I had a very strange issue where the pods frameworks script would fail to copy the framework files when archiving a build (building worked fine). |
re opening - but it looks like it's not a react-native problem, but cocoapods, so not really anything we can do about it CocoaPods/CocoaPods#11828 --- I'll pass it along |
While trying to upgrade step by step from 0.69.1 to 0.71.5 step by step I have not gotten fastlane to build the latest week. iOS simulator runs fine. I have applied the target deployment version patch and set my Gemfile for
which resolves to CocoaPods/CocoaPods@3ac99be. Given these changes a clean out and pod-reinstall I'm still seeing symlink issues after running this darling command:
from the ios folder. The log output from fastlane is saying:
Which to me clearly indicates a still present symlink issue. Are we still convinced this is a cocoapods-issue or how RN uses cocoapods or the script? Also, cocoapods does not accept issues with RN/Flutter, as per their new issue template. I am not sure where to start to make this a reproducible issue without RN.
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Yes, same issue here after upgrading to Xcode 14.3. Cocoapods is broken in this release. Anyone been able to resolve? |
Same issue. React Native 0.65. |
check for spaces as you are naming the project folders. Use space alternatives. |
This help me to fix the issue. https://developer.apple.com/forums/thread/725230 Please have a look, may be this will help..! |
For everyone still having this issue, I recommend to follow the instructions in this link and add a post install script for now. |
Hi, anyone are experience these issue? Processing Info.plist ▸ Running script ‘[CP] Embed Pods Frameworks’ ▸ Generating ‘App.app.dSYM’ ** ARCHIVE FAILED ** The following build commands failed: PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/runner/Library/Developer/Xcode/DerivedData/App-azlyibamtvkrbhfwntgmcwffjqtw/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/Script-9592DBEFFC6D2A0C8D5DEB22.sh (in target ‘App’ from project ‘App’) (1 failure) |
@RenzoPH have you tried updating cocoapods to version 1.12.1? Updating to the mentioned version solved all my issues |
Fixed this by updating updating - set -e
+ set +e P.S. Tried switching node from nvm to brew but that didn't made any difference. |
Thanks! Worked for me! |
God, you saved me!!!!!!!! |
try this, it worked for me # ios/.xcode.env
export NODE_BINARY=$(which node) |
For anyone still having this issue, it could be a miss on import statement on js code. |
Same issue with React Native "0.73.2" and xcode 14.0 and M1 |
this worked for me, thanks. |
it seems we need to change it everytime when installing/uninstalling a package. |
A patch can be generated using patch-package. |
I just encountered this upgrading a project from |
where does |
try removing the currently installed Node version and download a different version of Node you could use NVM to manage different versions of Node if you already use it try another version i solve this error by downgrade my version |
it is path issue. just check your ios folders path, if it has empty space please remove it and reindex all project |
Thanks, this is worked for me :) |
Worked for me |
This worked on the latest react-native (0.73.5). |
https://stackoverflow.com/a/66497247 |
Upgraded the react-native to the latest version (0.73.6) and it works. |
Found some more info and what looks like a root cause of this issue when running commands with |
Same here |
change index.tsx or index.ts to index.js |
how i fix for me i have a space in foldername like " app name " in main file after removing the space its start working |
This worked for me |
This is pretty sick. I don't know what else I can do. I've tried all the possibles solutions in this thread and none of them have worked for me. I really appreciate your help, I need to fix this ASAP. I'm using NVM and default alias is set to latest lts (20.12.1). If I start a new React-Native bare cli project I can run it on xcode without no issues. |
What fixed it for me is to move the project to a proper file path. So you
want to avoid this *desktop/new folder on desktop/yourproject *and do this
*desktop/newfolderondesktop/**yourprojec*t, no spaces or funky characters.
clean build folder and Xcode derived data from storage, restart, reopen
your project in xcode from the new file path, then run build again.
…On Fri, Apr 12, 2024 at 8:20 PM Carlos Rivero ***@***.***> wrote:
This is pretty sick. I don't know what else I can do. I've tried all the
possibles solutions in this thread and none of them have worked for me. I
really appreciate your help, I need to fix this ASAP. I'm using NVM and
default alias is set to latest lts (20.12.1). If I start a new React-Native
bare cli project I can run it on xcode without no issues.
This is the error that xcode build log returns
[image: Uploading Captura de pantalla 2024-04-12 a las 17.37.25.png…]
—
Reply to this email directly, view it on GitHub
<#36762 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A27O777YYJ5BQA2BNGMPN6LY5AXYLAVCNFSM6AAAAAAWQOXYUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJSGM4TKNRYGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I appreciate your answer, but it's not my case. I don't have spaces in any folder. I've tried everything in this thread and still not working |
@carlosriveroib have you tried setting the
(replace |
Surprisingly this works for me, tqvm!! Anyone know what does this change means? I've tried several things: clean build / reinstall pod / restart and re-pair device but doesn't work. |
#Fixed this by
|
this is read only file |
Description
Hi Guys, I'm trying to perform an archive using 0.71.5 but I'm getting an error.
The error occurs in Build phase "[CP] Embed Pods Frameworks", when he runs the script with:
"${PODS_ROOT}/Target Support Files/Pods-MyApp/Pods-MyApp-frameworks.sh"
React Native Version
0.71.5
Output of
npx react-native info
System:
OS: macOS 13.3
CPU: (8) arm64 Apple M1
Memory: 79.22 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
Watchman: 2022.11.14.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/leonardo.felipe/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK:
API Levels: 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33
Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0
System Images: android-32 | Google APIs ARM 64 v8a, android-33 | Google APIs ARM 64 v8a
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.5 => 0.71.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
Investigating the problem I noticed that the problem occurs in the "Symlinked..." of the script Pods-MyApp-frameworks.sh
The Workaround above was suggested for the issue below and has now been merged into the cocoapods repository.
I believe we will need an RC with this FIX pointing to the new version of cocoapods as soon as it is released.
CocoaPods/CocoaPods#11808
CocoaPods/CocoaPods#11828
The text was updated successfully, but these errors were encountered: