yarn ios error ! error Could not find scheme greenhouse. Please make sure the schema you want to run exists. #44579
Labels
Platform: iOS
iOS applications.
Resolution: For Stack Overflow
A question for Stack Overflow. Applying this label will cause issue to be closed.
Description
yarn ios
yarn run v1.22.22
$ react-native run-ios
error Could not find scheme greenhouse. Please make sure the schema you want to run exists.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Steps to reproduce
It is normal to use xcode to compile the app, but starting with Yarn iOS causes an error that prevents real-time changes to the modifications!
PodFIle:
`# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', dir]).strip
platform :ios, min_ios_version_supported
prepare_react_native_project!
xcodeproj 'greenhouse.xcodeproj'
If you are using a
react-native-flipper
your iOS build will fail whenNO_FLIPPER=1
is set.because
react-native-flipper
depends on (FlipperKit,...) that will be excludedTo fix this you can also exclude
react-native-flipper
using areact-native.config.js
```js
module.exports = {
dependencies: {
...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'greenhouse' do
config = use_native_modules!
Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'greenhouseTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
podfile.lock:
PODS:DEPENDENCIES:
../node_modules/react-native/third-party-podspecs/boost.podspec
)../node_modules/react-native-linear-gradient
)../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
)../node_modules/react-native/Libraries/FBLazyVector
)../node_modules/react-native/React/FBReactNativeSpec
)../node_modules/react-native/third-party-podspecs/glog.podspec
)../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec
)../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
)../node_modules/react-native/Libraries/RCTRequired
)../node_modules/react-native/Libraries/TypeSafety
)../node_modules/react-native/
)../node_modules/react-native/ReactCommon/callinvoker
)build/generated/ios
)../node_modules/react-native/
)../node_modules/react-native/
)../node_modules/react-native/
)../node_modules/react-native/React/CoreModules
)../node_modules/react-native/ReactCommon/cxxreact
)../node_modules/react-native/ReactCommon/react/debug
)../node_modules/react-native/ReactCommon/hermes
)../node_modules/react-native/ReactCommon/jsi
)../node_modules/react-native/ReactCommon/jsiexecutor
)../node_modules/react-native/ReactCommon/jsinspector
)../node_modules/react-native/ReactCommon/logger
)../node_modules/react-native-ble-manager
)../node_modules/react-native-safe-area-context
)../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios
)../node_modules/react-native/ReactCommon/reactperflogger
)../node_modules/react-native/Libraries/ActionSheetIOS
)../node_modules/react-native/Libraries/NativeAnimation
)../node_modules/react-native/Libraries/AppDelegate
)../node_modules/react-native/Libraries/Blob
)../node_modules/react-native/Libraries/Image
)../node_modules/react-native/Libraries/LinkingIOS
)../node_modules/react-native/Libraries/Network
)../node_modules/react-native/Libraries/Settings
)../node_modules/react-native/Libraries/Text
)../node_modules/react-native/Libraries/Vibration
)../node_modules/react-native/ReactCommon
)../node_modules/react-native/ReactCommon/runtimeexecutor
)../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler
)../node_modules/react-native/ReactCommon/react/utils
)../node_modules/react-native/ReactCommon
)../node_modules/@react-native-async-storage/async-storage
)"../node_modules/react-native-gesture-handler
)../node_modules/react-native-image-crop-picker
)../node_modules/react-native-keychain
)../node_modules/react-native-reanimated
)../node_modules/react-native-screens
)../node_modules/react-native-svg
)../node_modules/react-native/ReactCommon/yoga
)SPEC REPOS:
trunk:
- CocoaAsyncSocket
- Flipper
- Flipper-Boost-iOSX
- Flipper-DoubleConversion
- Flipper-Fmt
- Flipper-Folly
- Flipper-Glog
- Flipper-PeerTalk
- FlipperKit
- fmt
- libevent
- OpenSSL-Universal
- SocketRocket
- TOCropViewController
- YogaKit
EXTERNAL SOURCES:
boost:
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
BVLinearGradient:
:path: "../node_modules/react-native-linear-gradient"
DoubleConversion:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
FBLazyVector:
:path: "../node_modules/react-native/Libraries/FBLazyVector"
FBReactNativeSpec:
:path: "../node_modules/react-native/React/FBReactNativeSpec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
hermes-engine:
:podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
:tag: hermes-2023-08-07-RNv0.72.4-813b2def12bc9df02654b3e3653ae4a68d0572e0
RCT-Folly:
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
RCTRequired:
:path: "../node_modules/react-native/Libraries/RCTRequired"
RCTTypeSafety:
:path: "../node_modules/react-native/Libraries/TypeSafety"
React:
:path: "../node_modules/react-native/"
React-callinvoker:
:path: "../node_modules/react-native/ReactCommon/callinvoker"
React-Codegen:
:path: build/generated/ios
React-Core:
:path: "../node_modules/react-native/"
React-CoreModules:
:path: "../node_modules/react-native/React/CoreModules"
React-cxxreact:
:path: "../node_modules/react-native/ReactCommon/cxxreact"
React-debug:
:path: "../node_modules/react-native/ReactCommon/react/debug"
React-hermes:
:path: "../node_modules/react-native/ReactCommon/hermes"
React-jsi:
:path: "../node_modules/react-native/ReactCommon/jsi"
React-jsiexecutor:
:path: "../node_modules/react-native/ReactCommon/jsiexecutor"
React-jsinspector:
:path: "../node_modules/react-native/ReactCommon/jsinspector"
React-logger:
:path: "../node_modules/react-native/ReactCommon/logger"
react-native-ble-manager:
:path: "../node_modules/react-native-ble-manager"
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
React-NativeModulesApple:
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
React-perflogger:
:path: "../node_modules/react-native/ReactCommon/reactperflogger"
React-RCTActionSheet:
:path: "../node_modules/react-native/Libraries/ActionSheetIOS"
React-RCTAnimation:
:path: "../node_modules/react-native/Libraries/NativeAnimation"
React-RCTAppDelegate:
:path: "../node_modules/react-native/Libraries/AppDelegate"
React-RCTBlob:
:path: "../node_modules/react-native/Libraries/Blob"
React-RCTImage:
:path: "../node_modules/react-native/Libraries/Image"
React-RCTLinking:
:path: "../node_modules/react-native/Libraries/LinkingIOS"
React-RCTNetwork:
:path: "../node_modules/react-native/Libraries/Network"
React-RCTSettings:
:path: "../node_modules/react-native/Libraries/Settings"
React-RCTText:
:path: "../node_modules/react-native/Libraries/Text"
React-RCTVibration:
:path: "../node_modules/react-native/Libraries/Vibration"
React-rncore:
:path: "../node_modules/react-native/ReactCommon"
React-runtimeexecutor:
:path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
React-runtimescheduler:
:path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler"
React-utils:
:path: "../node_modules/react-native/ReactCommon/react/utils"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
RNCAsyncStorage:
:path: "../node_modules/@react-native-async-storage/async-storage"
RNGestureHandler:
:path: "../node_modules/react-native-gesture-handler"
RNImageCropPicker:
:path: "../node_modules/react-native-image-crop-picker"
RNKeychain:
:path: "../node_modules/react-native-keychain"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNScreens:
:path: "../node_modules/react-native-screens"
RNSVG:
:path: "../node_modules/react-native-svg"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"
SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 5fbbff1d7734827299274638deb8ba3024f6c597
FBReactNativeSpec: 638095fe8a01506634d77b260ef8a322019ac671
Flipper: 6edb735e6c3e332975d1b17956bcc584eccf5818
Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30
Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b
Flipper-Folly: 584845625005ff068a6ebf41f857f468decd26b3
Flipper-Glog: 70c50ce58ddaf67dc35180db05f191692570f446
Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
FlipperKit: 2efad7007d6745a3f95e4034d547be637f89d3f6
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: 9180d43df05c1ed658a87cc733dc3044cf90c00a
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: 83bca1c184feb4d2e51c72c8369b83d641443f95
RCTTypeSafety: 13c4a87a16d7db6cd66006ce9759f073402ef85b
React: e67aa9f99957c7611c392b5e49355d877d6525e2
React-callinvoker: 2790c09d964c2e5404b5410cde91b152e3746b7b
React-Codegen: e6e05e105ca7cdb990f4d609985a2a689d8d0653
React-Core: 9283f1e7d0d5e3d33ad298547547b1b43912534c
React-CoreModules: 6312c9b2fec4329d9ae6a2b8c350032d1664c51b
React-cxxreact: 7da72565656c8ac7f97c9a031d0b199bbdec0640
React-debug: 4accb2b9dc09b575206d2c42f4082990a52ae436
React-hermes: 1299a94f255f59a72d5baa54a2ca2e1eee104947
React-jsi: 2208de64c3a41714ac04e86975386fc49116ea13
React-jsiexecutor: c49502e5d02112247ee4526bc3ccfc891ae3eb9b
React-jsinspector: 8baadae51f01d867c3921213a25ab78ab4fbcd91
React-logger: 8edc785c47c8686c7962199a307015e2ce9a0e4f
react-native-ble-manager: 3aeb5d13b0fbf53ed44c0e023e800906e0c3b6a9
react-native-safe-area-context: 36cc67648134e89465663b8172336a19eeda493d
React-NativeModulesApple: b6868ee904013a7923128892ee4a032498a1024a
React-perflogger: 31ea61077185eb1428baf60c0db6e2886f141a5a
React-RCTActionSheet: 392090a3abc8992eb269ef0eaa561750588fc39d
React-RCTAnimation: 4b3cc6a29474bc0d78c4f04b52ab59bf760e8a9b
React-RCTAppDelegate: 89b015b29885109addcabecdf3b2e833905437c7
React-RCTBlob: 3e23dcbe6638897b5605e46d0d62955d78e8d27b
React-RCTImage: 8a5d339d614a90a183fc1b8b6a7eb44e2e703943
React-RCTLinking: b37dfbf646d77c326f9eae094b1fcd575b1c24c7
React-RCTNetwork: 8bed9b2461c7d8a7d14e63df9b16181c448beebc
React-RCTSettings: 506a5f09a455123a8873801b70aa7b4010b76b01
React-RCTText: 3c71ecaad8ee010b79632ea2590f86c02f5cce17
React-RCTVibration: d1b78ca38f61ea4b3e9ebb2ddbd0b5662631d99b
React-rncore: bfc2f6568b6fecbae6f2f774e95c60c3c9e95bf2
React-runtimeexecutor: 47b0a2d5bbb416db65ef881a6f7bdcfefa0001ab
React-runtimescheduler: 7649c3b46c8dee1853691ecf60146a16ae59253c
React-utils: 56838edeaaf651220d1e53cd0b8934fb8ce68415
ReactCommon: 5f704096ccf7733b390f59043b6fa9cc180ee4f6
RNCAsyncStorage: ddc4ee162bfd41b0d2c68bf2d95acd81dd7f1f93
RNGestureHandler: c0d04458598fcb26052494ae23dda8f8f5162b13
RNImageCropPicker: e7ab6fb43d2fc3e84651e786ef4a080d63b0ed3d
RNKeychain: bfe3d12bf4620fe488771c414530bf16e88f3678
RNReanimated: 9f7068e43b9358a46a688d94a5a3adb258139457
RNScreens: 50ffe2fa2342eabb2d0afbe19f7c1af286bc7fb3
RNSVG: 53c661b76829783cdaf9b7a57258f3d3b4c28315
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654
Yoga: 4c3aa327e4a6a23eeacd71f61c81df1bcdf677d5
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
PODFILE CHECKSUM: 3ece7240fead27a0d8b263392757cdf69d26dea6
COCOAPODS: 1.15.2
`
React Native Version
"react-native": "0.72.7",
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
null
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: