Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find Xcode project files #205

Open
YuryRegis opened this issue May 5, 2024 · 9 comments
Open

Could not find Xcode project files #205

YuryRegis opened this issue May 5, 2024 · 9 comments
Assignees

Comments

@YuryRegis
Copy link
Collaborator

When try to boot my app I get this error message on React Native IDE output:

 [error] Couldn't start device session Could not find Xcode project files in "/Users/user/www/MY_APP/ios" folder

Diagnostics

Captura de Tela 2024-05-05 às 14 43 07

My specs:

React-Native-IDE: react-native-ide-0.0.9-beta
MacOS version: 14.3.1 (23D60)
Xcode version: 15.3 (15E204a)
Devices: iPhone 15 Pro (17.2) | iPhone 15 Pro (17.4)

pod version: 1.15.2
ruby version: 3.0.6 (with rbenv)
node version: 20.10.0

@kmagiera
Copy link
Member

kmagiera commented May 8, 2024

can you check what's inside the listed folder: /Users/user/www/MY_APP/ios you should have '.xcworkspace' file there, does it exist?

@gkueny
Copy link
Collaborator

gkueny commented May 15, 2024

Hello @kmagiera , I have the same issue:

React-Native-IDE: react-native-ide-0.0.10-beta
MacOS version: 14.4.1 (23E224)
Xcode version: 15.4 (15F31d)
Devices: iPhone 15 Pro (17.5)

ruby version: 3.2.3 (with rbenv)
node version: 18.20.2

react-native version: 0.73.8

You should have '.xcworkspace' file there, does it exist?

It exist yes

@jakub-gonet
Copy link
Member

@gkueny Do you use monorepo by any chance – do you have multiple .xcworkspace files in your project?

@gkueny
Copy link
Collaborator

gkueny commented May 16, 2024

@jakub-gonet no monorepo. I have only one .xcworkspace file in my project

@YuryRegis
Copy link
Collaborator Author

can you check what's inside the listed folder: /Users/user/www/MY_APP/ios you should have '.xcworkspace' file there, does it exist?

Yes, it exist:

"myapp.xcworkspace" and also "myapp.xcodeproj"

@YuryRegis
Copy link
Collaborator Author

@gkueny Do you use monorepo by any chance – do you have multiple .xcworkspace files in your project?

No, just one "xcworkspace" but I have multiple envs

@gkueny
Copy link
Collaborator

gkueny commented May 21, 2024

@jakub-gonet , not sure why, but it work now for me.
I will update this issue if it happen again

@jakub-gonet
Copy link
Member

jakub-gonet commented May 28, 2024

Can you please run find . -name "*.xcodeproj" -o -name "*.xcworkspace" | grep -v './node_modules' (or remove ./ from node_modules if doesn't work) and attach results here?

@jakub-gonet jakub-gonet self-assigned this May 28, 2024
@bazter
Copy link

bazter commented Jun 7, 2024

Can you please run find . -name "*.xcodeproj" -o -name "*.xcworkspace" | grep -v './node_modules' (or remove ./ from node_modules if doesn't work) and attach results here?

I have a monorepo with single RN app and I'm having the same issue, this is the output:

./col-mobile/ios/ColMobile.xcodeproj
./col-mobile/ios/ColMobile.xcodeproj/project.xcworkspace
./col-mobile/ios/Pods/Pods.xcodeproj
./col-mobile/ios/ColMobile.xcworkspace
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/simctl-1.6.10/spec/SampleApp/SampleApp.xcodeproj
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/simctl-1.6.10/spec/SampleApp/SampleApp.xcodeproj/project.xcworkspace
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/terminal-notifier-2.0.0/vendor/terminal-notifier/Terminal Notifier.xcodeproj
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/terminal-notifier-2.0.0/vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.xcworkspace
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/ffi-1.16.3/ext/ffi_c/libffi/libffi.xcodeproj
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/fastlane-2.219.0/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/fastlane-2.219.0/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace
./col-mobile/ios/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libffi.xcodeproj
./col-mobile/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/ext/ffi_c/libffi/libffi.xcodeproj

my launch.json lookslike this:

{
	"version": "0.2.0",
	"configurations": [
		{
			"type": "react-native-ide",
			"request": "launch",
			"name": "React Native IDE panel",
			"ios": {
				"configuration": "Debug",
				"scheme": "ColMobile"
			},
			"android": {
				"buildType": "debug"
			},
			"appRoot": "col-mobile",
			"metroConfigPath": "col-mobile/metro.config.js"
		}
	]
}

Console log looks like this:

2024-06-07 11:07:12.550 [info] Metro started on port 63530
2024-06-07 11:07:12.552 [info] Metro & devtools ready
2024-06-07 11:07:31.216 [info] Check pods in /{path to root}/col-mobile/ios /{path to root}/col-mobile
2024-06-07 11:07:31.514 [error] Couldn't start device session Could not find Xcode project files in "/{path to root}/col-mobile/ios" folder
2024-06-07 11:07:38.086 [info] Metro {"type":"dep_graph_loaded"}
2024-06-07 11:07:38.086 [info] Metro {"type":"transformer_load_started"}
2024-06-07 11:07:38.193 [info] Metro {"type":"transformer_load_done"}
2024-06-07 11:07:38.193 [info] Metro {"type":"initialize_done","port":0}

We are running vanilla react-native ^0.72.6

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants