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'
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:
- Download Xcode 14.3.1 from here https://developer.apple.com/download/all/
- Unzip it and put it somewhere (don’t overwrite your current Xcode)
- In the console select this Xcode: sudo xcode-select -s /Applications/Xcode_14.3.1.app (in the path put yours)
- Launch the command again
- 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 😉