Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

error when running pnpm dev:desktop #343

Open
tolotrasamuel opened this issue Feb 26, 2025 · 1 comment · May be fixed by #348
Open

error when running pnpm dev:desktop #343

tolotrasamuel opened this issue Feb 26, 2025 · 1 comment · May be fixed by #348
Labels
bug Something isn't working

Comments

@tolotrasamuel
Copy link
Contributor

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

@tolotrasamuel tolotrasamuel added the bug Something isn't working label Feb 26, 2025
@tolotrasamuel tolotrasamuel changed the title error when running pnpm dev:desktopi error when running pnpm dev:desktop Feb 26, 2025
@tolotrasamuel
Copy link
Contributor Author

tolotrasamuel commented Feb 26, 2025

  /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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant