You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade to macOS Mojave 10.14 caused an installation error #21
This is an error when trying to build a GGEZ project, but is during the installation of this package, when running cargo build. The project built fine before the Mojave upgrade, afterward it starting throwing the error:
error: failed to run custom build command for `coreaudio-sys v0.2.2`
process didn't exit successfully: `/<..path_to_project..>/target/debug/build/coreaudio-sys-9f38879f24253caf/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=framework=AudioUnit
cargo:rustc-link-lib=framework=CoreAudio
--- stderr
//Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h:12:10: fatal error: 'TargetConditionals.h' file not found
//Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h:12:10: fatal error: 'TargetConditionals.h' file not found, err: true
thread 'main' panicked at 'unable to generate bindings: ()', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
Hope this helps. I can try to provide any more info I can if this is not enough.
I tried this on another machine running macOS Mojave 10.14 and it compiled. So, I'm not sure if it is due to Rust upgrading to 1.29.1 that fixed it of if there is just something weird going on with the set up on my other machine. I'll double check later today and report back.
Checked on the machine that was originally having problems and even on Rust 1.29.1 I am still getting the above issue. Not sure why one machine is working and the other isn't yet. I've tried to to a complete reinstall of Rust and Cargo and still no luck. 🤔
What fixed it for me in the end was manually installing the macOS_SDK_headers by opening the .pkg file witch you can open by running the following command in your terminal:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
Not sure if how often it happens to other users of this library but wanted to report back if anyone else comes across this issue.
What fixed it for me in the end was manually installing the macOS_SDK_headers by opening the .pkg file witch you can open by running the following command in your terminal:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
Not sure if how often it happens to other users of this library but wanted to report back if anyone else comes across this issue.
faced the same problem. Could you help me please?
I try:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
The file /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg does not exist.
Actually, I just got confirmation that other folks are also hitting this when trying to build Firefox on Catalina. The fix I suggested above no longer seems to work.
I was able to fix this issue by upgrading my dependencies so that coreaudio-sys version 0.2.3 was used instead of version 0.2.2. (Specifically, I updated rodio from 0.9.0 to 0.10.0 and then ran cargo update to regenerate Cargo.lock). So maybe this issue has already been fixed?
Confirmed @CleanCut's fix on Catalina (macOS 10.15). I am currently using quicksilver for which coreaudio-sys is a dependancy and I was having the same issues. After I added the line coreaudio-sys = "^0.2.3" to my Cargo.toml file explicitly the build has worked.
Reacted by Mahshad and Michael K
Reacted by Nathan Stocks, Leolu, Mahshad and Michael K
Activity
[-]Upgrade to Mojave caused issue[/-][+]Upgrade to Mojave caused an installation error[/+][-]Upgrade to Mojave caused an installation error[/-][+]Upgrade to macOS Mojave 10.14 caused an installation error[/+]ootoovak commentedon Oct 4, 2018
I tried this on another machine running
macOS Mojave 10.14and it compiled. So, I'm not sure if it is due to Rust upgrading to1.29.1that fixed it of if there is just something weird going on with the set up on my other machine. I'll double check later today and report back.ootoovak commentedon Oct 4, 2018
Checked on the machine that was originally having problems and even on Rust
1.29.1I am still getting the above issue. Not sure why one machine is working and the other isn't yet. I've tried to to a complete reinstall of Rust and Cargo and still no luck. 🤔Rhuagh commentedon Oct 13, 2018
Try reinstalling xcode? Osx is terrible at removing old stuff.
ootoovak commentedon Oct 21, 2018
What fixed it for me in the end was manually installing the
macOS_SDK_headersby opening the.pkgfile witch you can open by running the following command in your terminal:Not sure if how often it happens to other users of this library but wanted to report back if anyone else comes across this issue.
loothood commentedon Nov 11, 2018
faced the same problem. Could you help me please?
I try:
loothood commentedon Nov 11, 2018
Solved:
dbousamra commentedon Mar 13, 2019
I am still receiving this error.
If I try the suggestion above:
Edit: Fixed! I ran
sudo xcode-select -rtoreset to the default command line tools path. This solved itkahirokunn commentedon Aug 4, 2019
I got the same error.
ajmwagar commentedon Aug 16, 2019
Same here.
Edit: I got it working!
araa47 commentedon Sep 20, 2019
Im running 10.14.6 Mojave, but the above commands did not solve the problem.
marcoscaceres commentedon Oct 24, 2019
FWIW, I hit this from a different project, but in case it helps anyone else:
(or track down there "MacOSX10.14.sdk" folder is being placed in the OS)
Xcode no longer ships with "macOS_SDK_headers_for_macOS_10.14.pkg", so you need to point to it explicitly.
marcoscaceres commentedon Oct 28, 2019
Actually, I just got confirmation that other folks are also hitting this when trying to build Firefox on Catalina. The fix I suggested above no longer seems to work.
marcoscaceres commentedon Oct 28, 2019
So xcode trashes the "MacOSX10.14.sdk" directory on update, so it's best to put the directory somewhere else.
So, solution is to clone:
https://github.com/phracker/MacOSX-SDKs
(SDK 10.14 is not in the releases... though check) ... then:
CleanCut commentedon Nov 20, 2019
I was able to fix this issue by upgrading my dependencies so that
coreaudio-sysversion0.2.3was used instead of version0.2.2. (Specifically, I updated rodio from 0.9.0 to 0.10.0 and then rancargo updateto regenerate Cargo.lock). So maybe this issue has already been fixed?ootoovak commentedon Dec 3, 2019
Confirmed @CleanCut's fix on Catalina (macOS 10.15). I am currently using
quicksilverfor whichcoreaudio-sysis a dependancy and I was having the same issues. After I added the linecoreaudio-sys = "^0.2.3"to myCargo.tomlfile explicitly the build has worked.tsal commentedon May 4, 2020
Confirmed @CleanCut fixes this issue on Mojave (macOS 10.14) with the latest XCode (some clang updates broke the linking in
0.2.2, I think).est31 commentedon May 4, 2020
Closing the issue due to the user reports that 0.2.3 fixes it.