-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Upgrade from Xcode 14.2 to 14.3 rsync: link_stat failed: No such file or directory (2) for pods that were working earlier. #11808
Comments
Same issue with another project, but on a different pod, with Xcode Version 14.3 beta 2 (14E5207e)
Podfile:
|
Attaching a sample Xcode project using one of the pods. Please use Xcode Version 14.3 beta 2 (14E5207e) to see the archiving issue. The app will run on simulator but the archive will fail with following: |
same, on Xcode 14.3 RC, across several projects |
same issue!
I think the problem is coming by the command: "cd /Users/***/WORK/***ion-iOS" |
Update: Can confirm that running in XCode Cloud 14.2 (14C18) does not have this issue, but any 14.3 reveals this issue. Same issue with a basic Capacitor config:
|
Same issue here, any workaround or fix? |
I think I found the issue, created a PR: #11828 |
Workaround is to update all the generated This is my first time contributing to CocoaPods though, so take it with a grain of salt! |
@skuske locally, if you still have an XCode 14.2, you should be able to go in Xcode Settings (in your Xcode 14.3 RC) > Locations tab and then select If you're having the issue on Xcode Cloud, then you want to Edit your workflow > Environment select Can confirm both worked for me, but I've been actively using the latter. |
Many thanks. I am running it locally and re-downloaded 14.2 yesterday due to this issue. And yes, I can also confirm that your workaround helps. Xcode is fundamentally slower with archiving now, but it works. |
I can confirm this works for us (we need Xcode 14.3 due to some new APIs enabled). |
@chrisvasselli Your fix worked! I was able to archive on Xcode 14.3 without issue after modifying my local script to match your PR |
Not sure why but I got another similar issue that frameworks locate in another directory when using Xcode 14.3. The fix is #11833 |
Wasn't expecting fix with this, but just to add still an issue on Xcode 14.3 RC2 |
I just faced this issue on a freshly downloaded Xcode Version 14.3 (14E222a). |
Experiencing this problem as well would love a fix, especially since 14.3 was just released generally. |
Pods-项目名-frameworks.sh文件: |
We have been experiencing this too. We need to efficiently test against iOS 16.4. With this blocker in Xcode 14.3 using cocoapods, we are stuck as most developers are. The workaround is OK, but temporary in our current pipeline flow. I can archive adding an -f flag, or switch to using command line 14.2, but that is not ideal. It messes up all of our automation in our CI pipeline. There has been a PR out there to fix for a couple of days. I am hoping this can get some priority. |
Experiencing this problem. Hopefully this will be fixed soon |
I am waiting for this to make a build for unity project also. |
Everybody is currently blocked, we've acknowledged that. |
Thanks for inspiration from comment. /ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh
|
This comment was marked as off-topic.
This comment was marked as off-topic.
I've blocked the last commenter from the CocoaPods org, I guess you can't stop people being idiots on the internet on the long run - but that sort of thing isn't acceptable here. |
@vadimwe |
We had the same problem with Xcode 14.3 and Cocoapods 1.12.1 on an Intel Macbook. To fix it, we replaced the line |
update pod to 1.12.1 |
@chrisvasselli workaround worked for me |
If there are people who cannot be solved with the # ...
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(greadlink -f "${source}")"
fi
# ... Reference: |
If you are in the Ionic app the fix is to run these commands at ios/App/App path and build the solution again for ios
|
Thanks raghav-kokotree. I was implemented your recomendation and my app it's work! |
Funny enough, this is what worked for me.... Doing the complete opposite of earlier comments. It is well |
save my day, thanks @esodot |
For the people facing error in Xcode after update to 14.3. In your xcode, Go to PODS folder : Change source="$(readlink "${source}")" source="$(readlink -f "${source}")" |
We are still facing this issue even after upgrading to 1.12.1 on Xcode 14.3. What we have tried so far:
Does anyone have a clue what we might be missing here? |
@StephanBis can you share the error or a screenshot that appears at your side. |
Now that I look at it again, it might have something to do with signing? However, when deploying via XCode everything seems to work fine. |
@StephanBis is this happening when you try to archive the app? |
No, this is when building with Ionic/Capacitor. Archiving is fixed now, however since the error remained the same I was hoping that Cocoapods was the issue. But I think I have to check on the Capacitor issue page. |
@StephanBis have you added the fix mentioned above to replace code for source of frameworks in your frameworks.sh file ? |
I can also confirm that this is still an issue on Xcode 14.3 + 1.12.1 as well. I have tried all of the above solutions with no success. |
@FridaySG can you share the screenshot for the issue and the fix you added to avoid these but they did not worked for you. |
My understanding is you don't have to put in the fix manually as updating the package would suffice. However, after adding the manual fix, I am still facing this issue. Edit: I've checked the generated (derived data) shell script and followed it to the pods-app-frameworks.sh file. I can literally see "readlink -f", so I really do not understand why this issue is still present. |
I have the same issue. It is somehow related to code signing, since the error can be easily reproduced by running the codesign command in a terminal and getting an error |
Have they added any official fixes since I can see the ticket closed? the archival works fine when I change the line
|
Yes, this was our issue. It was a case of very bad timing, our development certificate expired on the same day of updating CocoaPods. After renewing the certificate everything starting working. |
@StephanBis Thank you for updating (Y) |
@ashrafkvt you can update the cocoapods to latest version and this is fixed in that |
Report
What did you do?
Archive an iOS app on Xcode Version 14.3 beta 2 (14E5207e)
What did you expect to happen?
create an .ipa file
What happened instead?
error below:
Xcode Version 14.3 beta 2 (14E5207e)
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users//Library/Developer/Xcode/DerivedData//Build/Intermediates.noindex/ArchiveIntermediates/Staging/IntermediateBuildFilesPath/.build/Release-iphoneos/*.build/Script-887C37B6C54D972D35131B16.sh (in target '' from project '**')
Symlinked...
rsync --delete -av --filter P ..?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" "/Users//Library/Developer/Xcode/DerivedData/-fhmnysqlfziamdezcdnckgrfgtgn/Build/Intermediates.noindex/ArchiveIntermediates/Staging/InstallationBuildProductsLocation/Applications/**.app/Frameworks"
building file list ... rsync: link_stat "/Users/***/***App/iOSRelease/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
Any solution for this issue?
none
CocoaPods Environment
ℹ Please replace these two lines with the output of
pod env
.e.g. via
pod env | pbcopy
Stack
Installation Source
Plugins
Podfile
The text was updated successfully, but these errors were encountered: