IOS run/build error
MomoDeLuxe opened this issue · 4 comments
With default template on macOS
npx rnv run -p ios : fail
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run -p ios │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-rn (./node_modules/@rnv/engine-rn)
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 overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli/build/bin.js overridden 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/ios. Will be used to generate assets.
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:
Error: Command failed with exit code 1: bundle exec pod install
/opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/definition.rb:603:in materialize': Could not find cocoapods-1.14.3, activesupport-6.1.7.10, cocoapods-core-1.14.3, xcodeproj-1.27.0, concurrent-ruby-1.3.5, i18n-1.14.7, minitest-5.25.4, zeitwerk-2.6.18, nanaimo-0.4.0, rexml-3.4.0, json-2.7.6, nkf-0.2.0, ffi-1.17.1 in locally installed gems (Bundler::GemNotFound) from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/definition.rb:193:in specs'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/definition.rb:260:in specs_for' from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/runtime.rb:18:in setup'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler.rb:164:in setup' from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/setup.rb:32:in block in <top (required)>'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/ui/shell.rb:159:in with_level' from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/ui/shell.rb:111:in silence'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/bundler/setup.rb:32:in <top (required)>' from <internal:/opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in require'
from internal:/opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb:136:in `require'
@MomoDeLuxe thanks for reporting this issue, could you provide rnv and node versions, Xcode version?
RNV 1.9.0
Xcode Version 16.0 (16A242d).
Should of do fresh project after Ruby and cocoapods re-install
Had to reinstall Ruby and Cocoapods. Now all fine. Thanks.
System:
OS: macOS 15.1.1
CPU: (12) arm64 Apple M2 Max
Memory: 18.71 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.6.1 - /opt/homebrew/bin/node
npm: 11.0.0 - /opt/homebrew/bin/npm
Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - ../../../.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.0, iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, watchOS 11.0
IDEs:
Android Studio: 2024.1 AI-241.15989.150.2411.11948838
Xcode: 16.0/16A242d - /usr/bin/xcodebuild
Languages:
Java: 17.0.11 - /usr/bin/javac
Ruby: 3.3.7 - ../../../.rbenv/shims/ruby
npmPackages:
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.73.4
wanted: 0.73.4
npmGlobalPackages:
rnv: 1.9.0
Closing as issue was resolved, feel free to reopen if needed