holepunchto / pear-expo-hello-world

17 stars 11 forks source link

`Could not find bare_bin using the following names: bare` #9

Open gmaclennan opened 3 months ago

gmaclennan commented 3 months ago

I tried to run this example from scratch on an M2 MacBook, and got this error:

CMake Error at node_modules/bare-dev/cmake/bare/bare.cmake:13 (find_program):
  Could not find bare_bin using the following names: bare
Call Stack (most recent call first):
  node_modules/bare-dev/cmake/bare/bare.cmake:183 (find_bare)
  vendor/bare/node_modules/bare-buffer/CMakeLists.txt:19 (add_bare_module)
cmake: 3.29.6
MacOS: 14.4.1
XCode: 15.4
Node: 18.19.0

> npm list --depth=0
pear-expo-hello-world@1.0.0 ~/pear-expo-hello-world
├── @babel/core@7.23.9
├── @types/react@18.2.56
├── bare-console@4.1.0
├── bare-dev@0.7.12
├── bare-process@1.3.2
├── compact-encoding@2.13.0
├── events@npm:bare-node-events@1.0.0
├── expo-build-properties@0.11.1
├── expo-status-bar@1.11.1
├── expo@50.0.6
├── react-native@0.73.4
├── react@18.2.0
├── tiny-buffer-rpc@2.0.1
├── typescript@5.3.3
└── which@4.0.0

The steps I took were:

  1. git clone https://github.com/holepunchto/pear-expo-hello-world.git
  2. git submodule update --init --recursive
  3. npm install
  4. bin/hello-pear.js --configure

The full output was:

❯ bin/hello-pear.js --configure
# /opt/homebrew/bin/cmake -S . -B ~/pear-expo-hello-world/build/ios-arm64 -G Unix Makefiles -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -DCMAKE_MODULE_PATH=~/pear-expo-hello-world/node_modules/bare-dev/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_LIBRARY_ARCHITECTURE=arm64 -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_DEPLOYMENT_TARGET=14
-- Mirroring drive qogbhqbcxknrpeotyz7hk4x3mxuf6d9mhb1dxm6ms5sdn6hh1uso into ~/pear-expo-hello-world/vendor/bare/prebuilds
-- summary of build options:
    Install prefix:  /usr/local
    Target system:   iOS
    Compiler:
      C compiler:    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc (AppleClang)
      CFLAGS:

--
--
-- Library base name: mimalloc
-- Version          : 2.1
-- Build type       : release
-- C Compiler       : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Compiler flags   : -Wall;-Wextra;-Wno-unknown-pragmas;-fvisibility=hidden;-Wstrict-prototypes;-Wpedantic;-Wno-static-in-inline;-ftls-model=initial-exec
-- Compiler defines :
-- Link libraries   : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk/usr/lib/libpthread.tbd
-- Build targets    : shared
--
CMake Error at node_modules/bare-dev/cmake/bare/bare.cmake:13 (find_program):
  Could not find bare_bin using the following names: bare
Call Stack (most recent call first):
  node_modules/bare-dev/cmake/bare/bare.cmake:183 (find_bare)
  vendor/bare/node_modules/bare-buffer/CMakeLists.txt:19 (add_bare_module)

-- Configuring incomplete, errors occurred!
error: spawn() failed
gmaclennan commented 3 months ago

I was able to get bin/hello-pear.js --configure to run successfully by running npm install bare-dev@latest, which installed bare-dev@0.11.3. The app successfully built and opened, but upon initializing crashed. Full report in #10

gasolin commented 1 month ago

got the same issue, but seems works with new instructions.

@gmaclennan would you like to try again?