mediar-ai / screenpipe

rewind.ai x cursor.com = AI powered by your 24/7 screen & voice local recording.
https://screenpi.pe
MIT License
8.7k stars 492 forks source link

[question] error: failed to run custom build command for `mac-notification-sys v0.6.1` #626

Open anirudhkannan9 opened 22 hours ago

anirudhkannan9 commented 22 hours ago

I'm following the steps under "macos installation" in the docs: https://docs.screenpi.pe/docs/getting-started. Specifically, I'm trying to build the Desktop app from source.

Everything until and including bun scripts/pre_build.js seems to go fine.

bun tauri build returns the following (I can't fit the entire message body here due to character count limitations, so I'm just adding the part where it fails + the part directly before it fails):

error: failed to run custom build command formac-notification-sys v0.6.1`

Caused by: process didn't exit successfully: /Users/kannana1/Developer/screenpipe/screenpipe-app-tauri/src-tauri/target/release/build/mac-notification-sys-bbb1ec8d24cd3978/build-script-build (exit status: 1) --- stdout OUT_DIR = Some(/Users/kannana1/Developer/screenpipe/screenpipe-app-tauri/src-tauri/target/release/build/mac-notification-sys-2ab65e2c6d36e6a5/out) TARGET = Some(aarch64-apple-darwin) OPT_LEVEL = Some(3) HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CC_aarch64-apple-darwin CC_aarch64-apple-darwin = None cargo:rerun-if-env-changed=CC_aarch64_apple_darwin CC_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(false) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = Some(10.13) cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin CFLAGS_aarch64-apple-darwin = None cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin CFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'Foundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12: cargo:warning=While building module 'CoreServices' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15: cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'Foundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12: cargo:warning=In file included from :1: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:95: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:9: fatal error: could not build module 'CoreServices' cargo:warning=#import <CoreServices/CoreServices.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=In file included from :1: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=In file included from :1: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'ApplicationServices' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:10: cargo:warning=In file included from :1: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:10: fatal error: could not build module 'CoreServices' cargo:warning=#include <CoreServices/CoreServices.h> cargo:warning= ~~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'ApplicationServices' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:10: cargo:warning=While building module 'CoreText' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTLayoutTypes.h:16: cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'ApplicationServices' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:10: cargo:warning=While building module 'ImageIO' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:47: cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreData' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h:12: cargo:warning=In file included from :1: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h:8:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreData' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h:12: cargo:warning=While building module 'CloudKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentCloudKitContainerOptions.h:12: cargo:warning=In file included from :1: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.h:8:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreData' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h:12: cargo:warning=While building module 'CloudKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentCloudKitContainerOptions.h:12: cargo:warning=While building module 'CoreLocation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKRecord.h:14: cargo:warning=In file included from :1: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h:18: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h:10:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreImage' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:51: cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreImage' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:51: cargo:warning=In file included from :1: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:9: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:19:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreImage' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:51: cargo:warning=While building module 'CoreVideo' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:15: cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreImage' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:51: cargo:warning=While building module 'CoreVideo' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:15: cargo:warning=In file included from :1: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:29: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:23: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:29:10: fatal error: could not build module 'ApplicationServices' cargo:warning=#include <ApplicationServices/ApplicationServices.h> cargo:warning= ~~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreImage' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:51: cargo:warning=While building module 'CoreVideo' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:15: cargo:warning=While building module 'IOSurface' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h:31: cargo:warning=In file included from :4: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h:15:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'CoreImage' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:51: cargo:warning=While building module 'CoreVideo' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:15: cargo:warning=While building module 'Metal' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h:41: cargo:warning=In file included from :1: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:9: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h:8:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'Symbols' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h:12: cargo:warning=In file included from :1: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Symbols.framework/Headers/Symbols.h:8:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/Foundation.h> cargo:warning= ~~~^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'QuartzCore' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h:11: cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here cargo:warning=module SwiftBridging { cargo:warning= ^ cargo:warning=While building module 'Cocoa' imported from objc/notify.h:1: cargo:warning=While building module 'AppKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: cargo:warning=While building module 'QuartzCore' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h:11: cargo:warning=In file included from :1: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:16: cargo:warning=In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:10: cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:9: fatal error: could not build module 'Foundation' cargo:warning=#import <Foundation/NSValue.h> cargo:warning= ~~~^ cargo:warning=In file included from objc/notify.m:1: cargo:warning=objc/notify.h:1:9: fatal error: could not build module 'Cocoa' cargo:warning=#import <Cocoa/Cocoa.h> cargo:warning= ~~~^ cargo:warning=21 errors generated.

--- stderr

error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=arm64-apple-darwin" "-mmacosx-version-min=10.13" "-Wall" "-Wextra" "-fmodules" "-Wno-deprecated-declarations" "-mmacos-version-min=10.13" "-o" "/Users/kannana1/Developer/screenpipe/screenpipe-app-tauri/src-tauri/target/release/build/mac-notification-sys-2ab65e2c6d36e6a5/out/307ac93856b42bcb-notify.o" "-c" "objc/notify.m" with args cc did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish... failed to build app: failed to build app Error failed to build app: failed to build app error: script "tauri" exited with code 1`

linear[bot] commented 22 hours ago

MED-260 [question] error: failed to run custom build command for `mac-notification-sys v0.6.1`

louis030195 commented 5 hours ago

@anirudhkannan9 can you share details on your OS version, architecture etc.?

maybe you need to run the xcode update, not sure