Skip to content

add support swift 5.7, macos 13+ builds#4

Open
beastoin wants to merge 1 commit intosohzm:mainfrom
beastoin:rzhfj_macos13
Open

add support swift 5.7, macos 13+ builds#4
beastoin wants to merge 1 commit intosohzm:mainfrom
beastoin:rzhfj_macos13

Conversation

@beastoin
Copy link

@beastoin beastoin commented Sep 25, 2025

what's included ?

  • my 2 cents fixes to compile the cheating-daddy in my ancient machine macos 13.

demo:

  1. comment this loc : cfg.captureMicrophone = false
  2. run.sh with your swift (5.7) on macos 13
~ sh run.sh "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift"
/Volumes/Ares/Developments/playground/cheating-daddy/systemAudioDump /Volumes/Ares/Developments/playground/cheating-daddy
warning: 'systemaudiodump': /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Volumes/Ares/Developments/playground/cheating-daddy/systemAudioDump/Package.swift -target arm64-apple-macosx11.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -I /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -swift-version 5 -package-description-version 5.7.0 -new-driver-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -empty-abi-descriptor -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -module-name main -disable-clang-spi -target-sdk-version 13.1 -o /var/folders/f7/nj7_1pc15mj0st_k9vyq2yl80000gn/T/TemporaryDirectory.1zDch8/Package-1.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld /var/folders/f7/nj7_1pc15mj0st_k9vyq2yl80000gn/T/TemporaryDirectory.1zDch8/Package-1.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/clang/lib/darwin/libclang_rt.osx.a -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -lobjc -lSystem -arch arm64 -force_load /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCompatibilityConcurrency.a -L /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/swift -rpath /usr/lib/swift -platform_version macos 11.0.0 13.1.0 -L /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -lPackageDescription -rpath /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI -o /var/folders/f7/nj7_1pc15mj0st_k9vyq2yl80000gn/T/TemporaryDirectory.IpzOrl/systemaudiodump-manifest
Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Target: arm64-apple-macosx11.0
Building for production...
[2/2] Linking SystemAudioDump
Build complete! (5.33s)
/Volumes/Ares/Developments/playground/cheating-daddy

up to date, audited 775 packages in 2s

124 packages are looking for funding
  run `npm fund` for details

5 vulnerabilities (2 low, 3 moderate)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> cheating-daddy@0.4.0 start
> electron-forge start

✔ Checking your system
✔ Locating application
✔ Loading configuration
✔ Preparing native dependencies [0.1s]
✔ Running generateAssets hook
✔ Running preStart hook

Initializing random process names for stealth...
Process name: chromegateway
Display name: AdobeSyncPro
Window title: Audio Devices
Set process title to: chromegateway
Applying anti-analysis measures...
Set window title to: Audio Devices
Applying additional stealth measures...
Hidden from macOS Mission Control
Set app name to: AdobeSyncPro
Content protection enabled
Set random user agent
Size update requested for view: main layout: normal
Current window size: 1100 x 800
Starting animated resize from 1100x800 to 900x600
Updating global shortcuts with: {
  moveUp: 'Alt+Up',
  moveDown: 'Alt+Down',
  moveLeft: 'Alt+Left',
  moveRight: 'Alt+Right',
  toggleVisibility: 'Cmd+\\',
  toggleClickThrough: 'Cmd+M',
  nextStep: 'Cmd+Enter',
  previousResponse: 'Cmd+[',
  nextResponse: 'Cmd+]',
  scrollUp: 'Cmd+Shift+Up',
  scrollDown: 'Cmd+Shift+Down',
  emergencyErase: 'Cmd+Shift+E'
}
Registered moveUp: Alt+Up
Registered moveDown: Alt+Down
Registered moveLeft: Alt+Left
Registered moveRight: Alt+Right
Registered toggleVisibility: Cmd+\
Registered toggleClickThrough: Cmd+M
Registered nextStep: Cmd+Enter
Registered previousResponse: Cmd+[
Registered nextResponse: Cmd+]
Registered scrollUp: Cmd+Shift+Up
Registered scrollDown: Cmd+Shift+Down                                                                                                                                           Registered emergencyErase: Cmd+Shift+E
Animation complete: 900x600
# $sh run.sh "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift"
SWIFT_BIN=${1:-swift}

# Clean build systemAudioDump
rm -rf systemAudioDump/.build/ && \
    pushd systemAudioDump && \
    $SWIFT_BIN build -c release && \
    cp ./.build/release/SystemAudioDump ../src/assets/ && \
    popd

# Start
npm install && npm start

#1 #3

@Kanishk1420
Copy link

@beastoin hey i need to ask something like can you make the systemaudiodump thing to universal like swift build -c release --arch arm64 --arch x86_64.? i think this systemaudiodump then works for all macos systems. can you verify and check this well?

@superbooker
Copy link

superbooker commented Nov 27, 2025

@beastoin could you drop a build of a version of SystemAudioDump file compatible with >macOS 13 in your own repo please ?

@beastoin
Copy link
Author

beastoin commented Nov 27, 2025

man, sad, i updated the os to 26 recently btw you can try to build it and, feel free to lmk the issue you face so i can help w/ it

@superbooker
Copy link

superbooker commented Nov 27, 2025

Oh too bad 😅 I don’t have Xcode installed at the moment. Not sure my 2018 MacBook Air is really worth installing Xcode and its 20 GB. Thanks anyway

edit : Actually, I didn’t need Xcode in the end. I managed to build a working version of SystemAudioDump pretty easily. It’s running perfectly on my 2018 MacBook Air with Sonoma 14.8.2.
Thanks for the tip @beastoin, I applied the changes you mentioned.

If anyone’s interested, I can push a functional SystemAudioDump build compatible with macOS 13+.

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

Successfully merging this pull request may close these issues.

3 participants