I am stuck on a problem. While running commnand from cli react-native run-ios
Found Xcode project myproject.xcodeproj
Launching iPhone 6 (iOS 10.3)...
Building using "xcodebuild -project myproject.xcodeproj -configuration Debug -scheme myproject -destination id=CB73A374-3E21-4C73-BEC4-AD29A583FCE8 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/.../myproject/ios/build
It just hangs and then nothing happens, no response.
I already checked an earlier question in stackoverflow and issue in github, but got no help. I may have asked a duplicate question but I am in badly need of a solution. Any help will be highly appreciated.
Once you have your React Native project initialized, you can run npx react-native run-ios inside the newly created project directory. If everything is set up correctly, you should see your new app running in the iOS Simulator shortly.
With React Native, developers can write real, natively rendering mobile applications for iOS and Android. It helps build apps on two platforms at once, while maintaining the look, feel, and productivity of an app built on the specific iOS or Android platform.
It is possible to build an iOS app on Windows with React Native. With efficient tools like Codemagic, you don't need to own a MacBook to build an iOS app. Codemagic automates the process of deployment and handles all the difficult jobs for you. That way, all you have to do is focus on building your app.
If you are already familiar with mobile development, you may want to use React Native CLI. It requires Xcode or Android Studio to get started. If you already have one of these tools installed, you should be able to get up and running within a few minutes.
I know this is way later than the question was asked, but since it was never answered, I wanted to throw this up here cause it just happened to me.
I got past that by doing rm -rf node_modules/
and then doing npm install
.
Hope this helps someone else in the future as well! :-D
This resolved the problem for me, Under project.workspace, there is a file called "contents.xcworkspacedata".(This can be opened from your IDE) There was a duplication of the fileref tag, removed one and ran react-native run-ios, and it worked.
<FileRef
location = "group:project.xcodeproj">
</FileRef>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With