I was recently using Xcode 13.4.1. Downloaded and installed the 14.3 beta. Deleted the beta completely, ran 13.4.1 and it wouldn’t build my project anymore. I don't receive any “errors”, I just get a warning saying, “Could not read serialized diagnostics file: error(“Failed to open diagnostics file”).” for a couple of my package dependencies(no specific package, shows the error for different ones everytime I try to build). Or sometimes I get the warning above AND an error that says, “CompiledSwiftSources failed with a non-zero exit code”.
At one point, I did see this warning, “Failed to retrieve search paths with pkg-config; maybe pkg-config is not installed.” I'm not seeing it anymore, but maybe it still applies?
I've tried cleaning my project, reset packages cache, deleting derived data, restarting Xcode, restarting my machine, deleting 13.4.1 and re-downloading it. No cigar.
Anyone else run into this and/or have an idea on how to resolve this?
Related
I have an app that uses graphql and connected to Apollo. Everything works as expected until one day it produces this error (please see image). I follow the solution found in this thread
I enabled the run script for install builds only on my build phase settings. My apps runs again as expected but whenever I try to archive my app, I encountered the error again. I tried to clean my project, reintall pod. delete worxspace and generate again but still encounter the same error. I dont understand why I keep having this error. Please help. Thank you
When I create/open projects, I have this error:
Internal build system error. Backend exited with code 2.
I don't know what to do, I tried to reinstall Unity, but it didn't change anything.
Here is image of the error
It happens on the latest version of macOS because it dropped support for older versions of python.
Temporary workaround here: https://github.com/techyworm10/firebase-unity-sdk-editor-python-fix
I was successfully able to build my app for android in codemagic, but ios is just killing me. I got all sorts of errors I've seen for the first time. Many of them I hope I resolved successfully, but I haven't find the answer for this one:
/Users/builder/Library/Developer/Xcode/DerivedData/Runner-edaimyiflreloheqntgnhkmwcclv/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/assetcatalog_generated_info.plist
The path does not exist
Command PhaseScriptExecution failed with a nonzero exit code
So I did some googling, and if I understand correctly DerivedData hold the builds for the project. I had a look into the folder and I didn't find the Runner-edaimyiflreloheqntgnhkmwcclv which explains the error.
However when I tried to build the app in xcode I had the same error except the Runner-***** directory was different and this time it was present with every other directory down to assetcatalog_generated_info.plist which then didn't make sense to me since it was present.
I tried flutter clean and wanted to build it again, but the same error would come up.
The link github.com/flutter/flutter/issues/23465 from #MikhailTokarev helped big time.
By the end of the thread scut204 commented:
Select "Run script only when installing" in Xcode Build Phase script.
Encountered and solved.
Tutorial update demanding.
That solved it.
I'm trying to "archive" an existing project after Xcode upgrade to 10.2 (10E125) and it continuously fails.
But it works perfect when I'm building and running the project on simulator / device and even when target device is "Generic iOS Device".
Looks like the issue is related only to "Archive" function.
Complete error text is the following:
Command failed due to signal: Bus error: 10
and no extra details unfortunately..
I've already tried Cleaning the project, removing "Derived Data", restarting my Mac but nothing helps.
Could you please suggest if that's can be fixed or any workaround exist?
Still not able to find a 100% valid solution to that but notice that continuously trying to Archive sometimes succeeds without any code / configuration changes (randomly)
I would say each ~10th Archive attempt succeeds.
That's my temporary workaround for now - Archive until Archived...
Upgraded to Swift 3.0 with Xcode 8.3.3 but got this error with first simple app build:
Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
failed with exit code 1 error: Swift does not support the SDK
'iPhoneSimulator9.3.sdk'
So I followed the steps here: Swift does not support the SDK 'iPhoneSimulator9.3.sdk'?
including renaming and removing the file, then cleaning and building the project.
But then I started getting a different error, saying: Can not load underlying CoreGraphics. (see attachments).first image.
So first the compiler complained about the presence of the 9.3 simulator and then it complained that it couldn't be found.
I also tried renaming the 9.3 Simulator but still does not resolve problem.
What can I do to get my environment to be correct?
Thanks
Ok the important part was that I had to actually delete the file, which probably freed up a file handle for it.
I had tried to rename it and leave it in the same directory, and move it to another directory.
But when I actually moved it to the Trash, then I was able to clean, build and run the project.