Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[macOS] Build fails at iobluetooth #139

Open
marcinbauer85 opened this issue Jul 17, 2023 · 1 comment
Open

[macOS] Build fails at iobluetooth #139

marcinbauer85 opened this issue Jul 17, 2023 · 1 comment

Comments

@marcinbauer85
Copy link

Trying to build this on my mac and Im getting this error.
marcinbauer@marcinbauercodiblycom SoundcoreManager-macos-fixes % yarn tauri build yarn run v1.22.19 $ tauri build Running beforeBuildCommand yarn build`
$ tsc && vite build
vite v4.3.1 building for production...
✓ 1107 modules transformed.
dist/index.html 0.40 kB │ gzip: 0.28 kB
dist/assets/a3951_img_device_left-4d0d7088.webp 8.56 kB
dist/assets/a3951_img_device_right_edited-0c3d60b2.webp 8.71 kB
dist/assets/a3040_img_device-877189fe.webp 15.24 kB
dist/assets/a3935_img_device-a77ed0ac.webp 19.28 kB
dist/assets/a3027_img_device-e0d85385.webp 33.85 kB
dist/assets/a3029_img_device-56d22a6c.webp 38.49 kB
dist/assets/a3028_img_device-cdafd53d.webp 46.67 kB
dist/assets/index-c4dd7fee.js 737.05 kB │ gzip: 242.93 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:

  • Using dynamic import() to code-split the application
  • Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
  • Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
    ✓ built in 2.38s
    Compiling iobluetooth v0.1.0 (/Users/marcinbauer/Downloads/SoundcoreManager-macos-fixes/bluetooth-lib/iobluetooth)
    Compiling console v0.15.5
    Compiling tauri-runtime-wry v0.12.3
    Compiling chrono v0.4.23
    Compiling notify-rust v4.5.10
    Compiling encoding_rs v0.8.31
    Compiling tauri-macros v1.2.1
    Compiling rfd v0.10.0
    error: failed to run custom build command for iobluetooth v0.1.0 (/Users/marcinbauer/Downloads/SoundcoreManager-macos-fixes/bluetooth-lib/iobluetooth)

Caused by:
process didn't exit successfully: /Users/marcinbauer/Downloads/SoundcoreManager-macos-fixes/src-tauri/target/release/build/iobluetooth-4556dd54046b94a3/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-changed=protos/search.proto
cargo:rerun-if-changed=protos

--- stderr
thread 'main' panicked at 'Could not find protoc installation and this build crate cannot proceed without
this knowledge. If protoc is installed and this crate had trouble finding
it, you can set the PROTOC environment variable with the specific path to your
installed protoc binary.You could try running brew install protobuf or downloading it from https://github.com/protocolbuffers/protobuf/releases

For more information: https://docs.rs/prost-build/#sourcing-protoc
', /Users/marcinbauer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.11.4/src/lib.rs:1296:10
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error failed to build app: failed to build app
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

Any ideas what can be wrong?

@postn
Copy link

postn commented Mar 27, 2024

Exact same issue error: failed to run custom build command for iobluetooth v0.1.0. Not sure if I need to do anything else.

Edit: Same error with macos-fixes tree too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants