Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

.sh script error – compiling a .framework – macOS Sonoma (14.0)

In one of the projects I have a .sh script that compiles a .framework

Since I updated to macOS Sonoma (14.0) it has stopped working, now it gives me this error:

error: cannot compute path of binary 'Path(str: "/private/var/folders/xh/******/T/*****.iOS.xcarchive/Products/Library/Frameworks/*** **.framework/*****")' relative to that of '/var/folders/xh/******/T/****.iOS.xcarchive/Products/Library/Frameworks/* ***.framework'

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Does anyone know how to solve it?

Thank you!😊

>Solution :

I think it is a bug with the latest Xcode, when running a compilation through the console it gives an error.

Try the following:

  1. Download Xcode 14.3.1 from here https://developer.apple.com/download/all/
  2. Unzip it and put it somewhere (don’t overwrite your current Xcode)
  3. In the console select this Xcode: sudo xcode-select -s /Applications/Xcode_14.3.1.app (in the path put yours)
  4. Launch the command again
  5. When you have to use your normal Xcode, select the current Xcode again: In Xcode go to Settings > Location > Command Line Tools (select the last one)

Confirm to me that it worked for you 😉

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading