Open GabrieleKaceviciute opened 2 months ago
1.0.0-rc.18
➜ macos git:(master) ✗ npx rnv run -p macos
┌─────────────────────────────────────────────────────────────────┐ │ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │ │ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │ │ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │ │ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │ │ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │ │ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │ │ $ npx rnv run -p macos │ └─────────────────────────────────────────────────────────────────┘ info: Some engines not installed in your project:
@rnv/engine-rn-next@1.0.0-rc.18 @rnv/engine-rn@1.0.0-rc.18 @rnv/engine-rn-tvos@1.0.0-rc.18 @rnv/engine-rn-electron@1.0.0-rc.18 @rnv/engine-rn-web@1.0.0-rc.18 ADDING TO PACKAGE.JSON...DONE ✔ Executing: yarn info: Current engine: @rnv/engine-rn-electron (./node_modules/@rnv/engine-rn-electron) task: ○ run ↺1 info: Build hooks not complied. BUILDING... task: ○ configure ↺1 task: ○ platform configure ↺1 task: ○ project configure ↺1 info: Creating folder ./platformBuilds ...DONE task: ○ workspace configure ↺1 task: ✔ workspace configure task: ○ app configure ↺1 info: Found only one app config available. Will use app info: Current app config: app warn: ○ project configure: Updates to package.json are required:
- raf (N/A) => (3.4.1) Missing dependency for platform tizen | engine.npm (@rnv/engine-rn-web)
? What to do? Update package and install (recommended) ✔ Executing: yarn task: ✔ app configure task: ✔ project configure info: Current Build Scheme: debug warn: ○ platform configure: Updates to package.json are required:
? What to do? Update package and install (recommended) ✔ Executing: yarn info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE task: ✔ platform configure info: Found custom assetFolderPlatform: electron. Will use it instead of deafult macos info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/electron. Will be used to generate assets. task: ✔ configure info: Your macos devServer at port 8086 is not running. Starting it up for you... info: Your macos devServerHost 127.0.0.1 at port 8086 is not running. Starting it up for you... ┌─────────────────────────────────────────────────────────────────┐ │ ⚠ BUNDLER STARTED | 5/3/2024, 1:12:03 PM | rnv@ │ │ $ npx rnv run -p macos │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ Workspace: rnv │ │ Platform (-p): macos │ │ Engine: @rnv/engine-rn-electron │ │ Template: @rnv/template-starter │ │ App Config (-c): app │ │ Build Scheme (-s): debug │ │ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch │ Env Info: darwin | arm64 | node v18.19.0 │ │ Executed Time: 0h:1m:41s:984ms │ │ warn: ○ project configure: Updates to package.json are required: │ warn: ○ platform configure: Updates to package.json are required: │ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE │ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE │ Project location: ./platformBuilds/app_macos │ └─────────────────────────────────────────────────────────────────┘ error: ⨯ ○ run: Error: Cannot find module 'babel-loader' Require stack:
┌─────────────────────────────────────────────────────────────────┐ │ ⨯ SUMMARY | 5/3/2024, 1:12:04 PM | rnv@ │ │ $ npx rnv run -p macos │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ Workspace: rnv │ │ Platform (-p): macos │ │ Engine: @rnv/engine-rn-electron │ │ Template: @rnv/template-starter │ │ App Config (-c): app │ │ Build Scheme (-s): debug │ │ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch │ Env Info: darwin | arm64 | node v18.19.0 │ │ Executed Time: 0h:1m:42s:910ms │ │ warn: ○ project configure: Updates to package.json are required: │ warn: ○ platform configure: Updates to package.json are required: │ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE │ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE │ error: ⨯ ○ run: Error: Cannot find module 'babel-loader' Require stack:
│ Project location: ./platformBuilds/app_macos │ └─────────────────────────────────────────────────────────────────┘ ➜ macos git:(master) ✗
- second and third way - same error as before
Should be fixed in this PR https://github.com/flexn-io/renative/pull/1541
works on rc.19
Describe the bug Macos run fails on new project (three different ways)
To Reproduce First way:
npx rnv run -p macos
-> errorExpected behavior app is built and launched on desktop
Screenshots or copy&paste
Second way:
npx rnv run
-> errornpx rnv run
and choose macos┌─────────────────────────────────────────────────────────────────┐ │ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │ │ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │ │ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │ │ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │ │ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │ │ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │ │ $ npx rnv run │ └─────────────────────────────────────────────────────────────────┘ ? Pick a platform for task: "rnv run" macos info: Current platform: macos info: Current engine: engine-rn (./node_modules/@rnv/engine-rn) task: ○ run ↺1 info: Build hooks not complied. BUILDING... task: ○ configure ↺1 task: ○ platform configure ↺1 task: ○ project configure ↺1 info: Creating folder ./platformBuilds ...DONE task: ○ workspace configure ↺1 task: ✔ workspace configure warn: ○ project configure: Updates to package.json are required:
? What to do? Update package and install (recommended) ✔ Executing: yarn task: ○ app configure ↺1 info: Found only one app config available. Will use app info: Current app config: app task: ✔ app configure task: ✔ project configure info: Current Build Scheme: debug warn: ○ platform configure: Updates to package.json are required:
? What to do? Update package and install (recommended) ✔ Executing: yarn info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE task: ✔ platform configure info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/macos. Will be used to generate assets. error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.mm error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.h info: Podfile.lock does not exist. Will execute pod actions... ✔ Executing: bundle install ✖ FAILED: bundle exec pod install error: ⨯ ○ configure: COMMAND:
bundle exec pod install
FAILED with ERROR:
[!] Invalid
Podfile
file: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_SOURCES}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting => {{PLUGIN_WARNINGS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting => {{PLUGIN_PATHS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting => ... = [{{PLUGIN_STATIC_FRAMEWORKS}}] ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting => ...IN_STATIC_POD_EXTRA_CONDITIONS}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting => ...{{PLUGIN_STATIC_POD_DEFINITION}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_INJECT}} ^ .from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
-------------------------------------------
Error: Command failed with exit code 1: bundle exec pod install
[!] Invalid
Podfile
file: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_SOURCES}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting => {{PLUGIN_WARNINGS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting => {{PLUGIN_PATHS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting => ... = [{{PLUGIN_STATIC_FRAMEWORKS}}] ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting => ...IN_STATIC_POD_EXTRA_CONDITIONS}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting => ...{{PLUGIN_STATIC_POD_DEFINITION}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_INJECT}} ^ .from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
-------------------------------------------
┌─────────────────────────────────────────────────────────────────┐ │ ⨯ SUMMARY | 4/11/2024, 10:36:12 AM | rnv@ │ │ $ npx rnv run │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ Workspace: rnv │ │ Platform (-p): macos │ │ Engine: engine-rn │ │ Template: @rnv/template-starter │ │ App Config (-c): app │ │ Build Scheme (-s): debug │ │ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch │ Env Info: darwin | arm64 | node v18.19.0 │ │ Executed Time: 0h:0m:42s:494ms │ │ warn: ○ project configure: Updates to package.json are required: │ warn: ○ platform configure: Updates to package.json are required: │ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE │ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE │ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.mm │ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.h │ error: ⨯ ○ configure: COMMAND:
bundle exec pod install
FAILED with ERROR:
[!] Invalid
Podfile
file: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_SOURCES}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting => {{PLUGIN_WARNINGS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting => {{PLUGIN_PATHS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting => ... = [{{PLUGIN_STATIC_FRAMEWORKS}}] ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting => ...IN_STATIC_POD_EXTRA_CONDITIONS}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting => ...{{PLUGIN_STATIC_POD_DEFINITION}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_INJECT}} ^ .from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
-------------------------------------------
Error: Command failed with exit code 1: bundle exec pod install
[!] Invalid
Podfile
file: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_SOURCES}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting => {{PLUGIN_WARNINGS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting => {{PLUGIN_PATHS}} ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting => ... = [{{PLUGIN_STATIC_FRAMEWORKS}}] ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting => ...IN_STATIC_POD_EXTRA_CONDITIONS}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting => ...{{PLUGIN_STATIC_POD_DEFINITION}} ... ^ /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting => {{PLUGIN_PODFILE_INJECT}} ^ .from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
-------------------------------------------
│ Project location: ./platformBuilds/app_macos/RNVApp.xcworkspace │ └─────────────────────────────────────────────────────────────────┘ ➜ macos git:(master)
➜ macos git:(master) ✗ npx rnv run -p macos
┌─────────────────────────────────────────────────────────────────┐ │ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │ │ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │ │ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │ │ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │ │ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │ │ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │ │ $ npx rnv run -p macos │ └─────────────────────────────────────────────────────────────────┘ info: Current engine: engine-rn-electron (./node_modules/@rnv/engine-rn-electron) task: ○ run ↺1 task: ○ configure ↺1 task: ○ platform configure ↺1 task: ○ project configure ↺1 task: ○ workspace configure ↺1 task: ✔ workspace configure task: ○ app configure ↺1 info: Current app config: app task: ✔ app configure info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json info: ./node_modules/@react-native-community/cli/build/bin.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json task: ✔ project configure info: Current Build Scheme: debug task: ✔ platform configure info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/macos. Will be used to generate assets. task: ✔ configure info: Your macos devServer at port 8086 is not running. Starting it up for you... info: Your macos devServerHost 127.0.0.1 at port 8086 is not running. Starting it up for you... ┌─────────────────────────────────────────────────────────────────┐ │ ✔ BUNDLER STARTED | 4/11/2024, 10:38:32 AM | rnv@ │ │ $ npx rnv run -p macos │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ Workspace: rnv │ │ Platform (-p): macos │ │ Engine: engine-rn-electron │ │ Template: @rnv/template-starter │ │ App Config (-c): app │ │ Build Scheme (-s): debug │ │ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch │ Env Info: darwin | arm64 | node v18.19.0 │ │ Executed Time: 0h:0m:0s:235ms │ │ Project location: ./platformBuilds/app_macos │ └─────────────────────────────────────────────────────────────────┘ error: ⨯ ○ run: Error: Cannot find module 'babel-loader' Require stack:
┌─────────────────────────────────────────────────────────────────┐ │ ⨯ SUMMARY | 4/11/2024, 10:38:32 AM | rnv@ │ │ $ npx rnv run -p macos │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ Workspace: rnv │ │ Platform (-p): macos │ │ Engine: engine-rn-electron │ │ Template: @rnv/template-starter │ │ App Config (-c): app │ │ Build Scheme (-s): debug │ │ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch │ Env Info: darwin | arm64 | node v18.19.0 │ │ Executed Time: 0h:0m:1s:16ms │ │ error: ⨯ ○ run: Error: Cannot find module 'babel-loader' Require stack:
│ Project location: ./platformBuilds/app_macos │ └─────────────────────────────────────────────────────────────────┘ ➜ macos git:(master) ✗