Cap
Cap copied to clipboard
error when running pnpm dev:desktop
Description
--- stderr
** BUILD FAILED **
The following build commands failed:
CompileC /Users/home/PhpstormProjects/Cap/target/debug/build/cidre-4d9ea21412eb6ba0/out/pomace.build/Debug/core_audio.build/Objects-normal/arm64/core_audio.o /Users/home/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/pomace/core_audio/core_audio.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'core_audio' from project 'pomace')
(1 failure)
thread 'main' panicked at /Users/home/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/build.rs:145:5:
assertion failed: status.success()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
/Users/home/PhpstormProjects/Cap/apps/desktop:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @cap/desktop@ dev: `pnpm -w cap-setup && cross-env RUST_BACKTRACE=1 dotenv -e ../../.env -- pnpm run preparescript && tauri dev`
Exit status 101
ELIFECYCLE Command failed with exit code 101.
Reproduction
I followed all steps in ### General Setup from the CONTRIBUTIONS.MD
Additional Context
-
Cap version: Master branch
-
Operating system, version: MACOS 14.0
/Users/samuel/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/pomace/core_audio/core_audio.h:12:6: error: expected ';' after top level declarator
Class CA_TAP_DESCRIPTION;
^
;
/Users/samuel/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/pomace/core_audio/core_audio.h:22:9: error: use of undeclared identifier 'CA_TAP_DESCRIPTION'
CA_TAP_DESCRIPTION = NSClassFromString(@"CATapDescription");
^
/Users/samuel/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/pomace/core_audio/core_audio.h:22:30: error: call to undeclared function 'NSClassFromString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
CA_TAP_DESCRIPTION = NSClassFromString(@"CATapDescription");
^
/Users/samuel/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/pomace/core_audio/core_audio.h:28:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
NS_ASSUME_NONNULL_END
^
/Users/samuel/.cargo/git/checkouts/cidre-2c979cd9b38fdb3d/3479c18/cidre/pomace/core_audio/core_audio.m:8:23: error: expected identifier or '('
#import "core_audio.h"
^
6 errors generated.
How to fix this ?
I am guess it is some global version issue. But I don't know if it is XCode, my MacOS, or C . My rust version is rustc 1.85.0 (4d91de4e4 2025-02-17)