wulkano / Aperture

Record the screen on macOS
MIT License
1.24k stars 111 forks source link

Lates commit breaks build #15

Closed StefMa closed 7 years ago

StefMa commented 7 years ago

Since the latest commit I'm unable to build aperture.js.

This is my package.json:

[...]
  "dependencies": {
    "aperture.js": "https://github.com/wulkano/aperture.js.git#0d9e86c4ba9cfb2fa22fb8155878441a011d4079"
  }
[...]

Now, if I run npm install it works. But when I change aperture.js to the commit 2e485a65e10b6a8ed10b1cee96ae5717811febc4 it breaks with the following message:

The following build commands failed:
    CompileSwift normal x86_64
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! aperture.js@0.1.0 build: `cd swift && xcodebuild && mv build/release/aperture main && rm -r build`
npm ERR! Exit status 65
npm ERR! 
npm ERR! Failed at the aperture.js@0.1.0 build script 'cd swift && xcodebuild && mv build/release/aperture main && rm -r build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aperture.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cd swift && xcodebuild && mv build/release/aperture main && rm -r build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs aperture.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aperture.js
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/[TOP_SECRET]/Developer/[TOPSECRET]/[TOPSECRET]/node_modules/aperture.js/npm-debug.log
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-linux:
npm WARN notsup Not compatible with your operating system or architecture: 7zip-bin-linux@1.0.3
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-win:
npm WARN notsup Not compatible with your operating system or architecture: 7zip-bin-win@2.0.2
npm WARN [TOP_SECRET]@0.1.0 No repository field.
npm WARN [TOP_SECRET]@0.1.0 No license field.
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE

npm ERR! aperture.js@0.1.0 postinstall: `npm run build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the aperture.js@0.1.0 postinstall script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aperture.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs aperture.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aperture.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

Before this output I got some errors with swift:

AVFoundation.AVCaptureFileOutputRecordingDelegate:133:17: note: protocol requires function 'captureOutput(_:didFinishRecordingToOutputFileAtURL:fromConnections:error:)' with type '(AVCaptureFileOutput!, didFinishRecordingToOutputFileAtURL: NSURL!, fromConnections: [AnyObject]!, error: NSError!) -> Void'
    public func captureOutput(captureOutput: AVCaptureFileOutput!, didFinishRecordingToOutputFileAtURL outputFileURL: NSURL!, fromConnections connections: [AnyObject]!, error: NSError!)
                ^
/Users/[TOP_SECRET]/Developer/[TOP_SECRET]/[TOP_SECRET]/node_modules/aperture.js/swift/aperture/Recorder.swift:59:18: error: value of type 'AVCaptureMovieFileOutput' has no member 'startRecording'
      self.output?.startRecording(toOutputFileURL: self.destination, recordingDelegate: self);

(For example)

sindresorhus commented 7 years ago

You probably need to upgrade Swift or Xcode.

StefMa commented 7 years ago

Lol. Captain obvious ☠️ I assume that I have the current latest and greatest Xcode version. But it wasn't so. However why I've installed 7.x.x and swift 2.2.

Now I've Xcode 8.2.1 and swift 3.0.2 and everthing works fine. Thank you ❤️