core-bluetooth-tool icon indicating copy to clipboard operation
core-bluetooth-tool copied to clipboard

Error when trying to install

Open fc opened this issue 2 years ago • 1 comments

I'm not super familiar with swift but I ran into this error (M1, Ventura 13.2.1):

warning: /Users/clay/Library/org.swift.swiftpm/configuration is not accessible or not writable, disabling user-level configuration features.
warning: /Users/clay/Library/org.swift.swiftpm/security is not accessible or not writable, disabling user-level security features.
warning: /Users/clay/Library/Caches/org.swift.swiftpm is not accessible or not writable, disabling user-level cache features.
warning: 'core-bluetooth-tool-20230310-10926-1amfaec': failed loading cached manifest for 'core-bluetooth-tool-20230310-10926-1amfaec': Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/clay/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000021e9ce0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: 'core-bluetooth-tool-20230310-10926-1amfaec': failed closing cache: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/clay/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000021f5590 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
error: 'core-bluetooth-tool-20230310-10926-1amfaec': Invalid manifest
<unknown>:0: remark: did not find a prebuilt standard library for target 'arm64-apple-macos' compatible with this Swift compiler; building it may take a few minutes, but it should only happen once for this combination of compiler and target
/private/tmp/core-bluetooth-tool-20230310-10926-1amfaec/Package.swift:3:8: error: no such module 'PackageDescription'
import PackageDescription
       ^
make: *** [build] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/mickeyl/homebrew-formulae/issues

fc avatar Mar 11 '23 06:03 fc

I'm afraid this looks more like a problem with your Swift installation than with core-bluetooth-tool. Here's a transcript from my machine:

 ~  brew tap mickeyl/formulae                                                                                                                                                                                                     So 12 Mär 15:14:07 2023
==> Tapping mickeyl/formulae
Cloning into '/opt/homebrew/Library/Taps/mickeyl/homebrew-formulae'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 118 (delta 40), reused 106 (delta 31), pack-reused 0
Receiving objects: 100% (118/118), 14.08 KiB | 4.69 MiB/s, done.
Resolving deltas: 100% (40/40), done.
Tapped 3 formulae (16 files, 25.2KB).
 ~  brew install core-bluetooth-tool                                                                                                                                                                                     1625ms  So 12 Mär 15:14:18 2023
==> Fetching mickeyl/formulae/core-bluetooth-tool
==> Cloning https://github.com/mickeyl/core-bluetooth-tool.git
Cloning into '/Users/mickey/Library/Caches/Homebrew/core-bluetooth-tool--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> Installing core-bluetooth-tool from mickeyl/formulae
==> make install prefix=/opt/homebrew/Cellar/core-bluetooth-tool/0.3.3
🍺  /opt/homebrew/Cellar/core-bluetooth-tool/0.3.3: 6 files, 4.9MB, built in 44 seconds
==> Running `brew cleanup core-bluetooth-tool`...
 ~  core-bluetooth-tool                                                                                                                                                                                                   46.9s  So 12 Mär 15:15:10 2023
OVERVIEW: CoreBluetooth command-line tool for scanning and more

USAGE: core-bluetooth-tool <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  scan                    Scan BLE devices
  bridge                  Establish a serial bridge via a pseudo-TTY

  See 'core-bluetooth-tool help <subcommand>' for detailed help.

Are the Xcode command line utilities installed? If not, please do so and retry.

mickeyl avatar Mar 12 '23 14:03 mickeyl