jaredly / reprocessing-example-cross-platform

A boilerplate example for getting cross-platform reprocessing games off the ground
51 stars 6 forks source link

Broken Installation on Mojave (includes fix) #4

Open RawToast opened 5 years ago

RawToast commented 5 years ago

I know this is an old repo and things have moved on, but it would be amazing to upgrade this to work Mojave (and later Catalina).

On two machines running Mojave 10.14.7, I've had this fail to install with:

> ./src/scripts/check_reqs.js && xcodebuild

You need at least Xcode 7.0 when you are on OS X 10.11 El Capitan (you have version 11.1)
npm WARN reprocessing-example-cross-platform@1.0.3 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ios-deploy@1.9.2 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ios-deploy@1.9.2 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

To get past this, I had to update a few things:

This then progresses further and eventually fails with complaints about bsb-native not being available.

RawToast commented 5 years ago

Essentially this fixes post install:

 "devDependencies": {
    "bsb-native": "4.0.7000",
    "reprocessing-scripts": "Gregoirevda/reprocessing-scripts"
  },
gaelollivier commented 5 years ago

Thanks for fixing the install! I'm trying to build this project too but it looks like a lot of changes need to be made. When trying to build, I get the following error:

  76 │ [@bs.send]
  77 │ external openFile :
  78 │   (httpRequestT, ~kind: string, ~filename: string, ~whatIsThis: Js.boo
       lean) => unit =
  79 │   "open";
  80 │ 

  This type constructor's parameter, `Js.boolean`, can't be found. Is it a typo?

I guess it's because since bs-platform@3.0.0 Js.boolean has been replaced by bool. It looks like a simple fix but I'd prefer using the latest reprocessing instead. However, this brings its own lots of issues since it looks like most of the changes are not added to upstream: https://github.com/Schmavery/reprocessing/pull/61

I tried fixing the first few issues and got it to build. However, now I'm at a state where bsb -make-world -backend js builds but none of the rsb commands work. They either just hang (npm run serve doesn't seem to start the server) or fail.

Did anyone manage to build this project and have a working fork? I built a small game with reprocessing and I'd love to build it for iOS 😄