Issues using run-ios with React Native - ios

It seems that once every other week I have the same issue where my React Native project stops building and won't open in Xcode, and I wanted to know what some fixes could be for this. When I try and build in Visual Studio Code the app gets stuck at the ⠇ Building the app message. And when I try opening the workspace in Xcode, Xcode stops responding and it gets stuck on the spinning rainbow wheel. For some reason, npx react-native start works just fine, the issue occurs when using npx react-native run-ios.
When this happens it takes me hours to troubleshoot and I can't find a consistent fix for this issue. Does anyone have experience with this and know a solution?

It appears that the issue results from Xcode's way of handling iCloud files. I was able to resolve the issue by moving my project to a folder that is not in my iCloud Drive.

Related

yogakit/yogakit.modulemap' not found React Native, on Apple M1

I am trying to compile a hello-world react-native app that has WatermelonDB configured. I have a M1 Macbook Pro M1 and am following the instructions given here and and here to set up the project for Watermelon. Once setup, the compile for Android works correctly, but the compile for iOS fails with the following error:
This issue is discussed over here, but the problem is that this error can occur in a lot of different situations. As a result there are loads of different suggestions, not all of which are particular to this issue arising on an M1.
I am using Xcode 13.4 and am trying to get the application launching on an iOS simulator as I do not have an iOS phone to test on.
Please do not offer solutions that involve installing older versions of react-native or Xcode. I am looking the solution to get the latest version of react-native working on the latest version of Xcode.
I have managed to get it working by making use of Rosetta. I did the following steps before I start creating the project.
Find Xcode in applications folder, right click on it and select "Get Info"
.
In the info dialog that opens up, check the checkbox labeled "Open using Rosetta" and then close the dialog.
After doing this, I followed all of the steps in the tutorial that I linked to in the question. The log still showed the error that I originally posted:
But the build continued, completed and was successfully launched on the iOS simulator.
Maybe there are better solutions that don't depend on Rosetta. But this works for me for now.
Edit:
Another thing that I did differently the second time I did this tutorial was to start the Xcode setup by double clicking on the .xcworkspace rather than on the .xcodeproj file. Not sure if this was part of the solution.

Suddenly "Could not build Module " is coming and it happens only for iOS devices, in Simulator it is working fine

As I am working on the iOS app since past few years, I was able to run it on devices and simulator both which is totally easy. But from few days I am facing a time wasting problem.
Whenever I am trying to build my project in iOS device it gives me "Module Not Found Error" also it includes other error like "Unknown Type Name Dipatch_Queue_t" etc. But the strange thing is it is working fine in simulator, it builds and run on simulator as it should but not in device. The error usually comes in PODS target.
AND THIS HAPPENS WITH ALL THE APPS I AM TRYING TO BUILD IN XCODE.
Working Environment - xcode 10.2.
Kindly suggest me what is wrong here, which I am not able to understand.
sometimes we stuck in some weird issues which we can't debug, so this issue is one of the case where I got to know some how the framework file of whole Xcode is corrupted but you can-not debug the Xcode framework, In my case even the framework file is not opening to check whether I wrote anything mistakenly, So solution was I delete the Xcode and reinstall the same version. If you want, you can download the upgraded version of Xcode as well. So all framework files are new and it is working fine now.

iOS - Application crashes only when running directly on simulator but working fine while debugging or running through Xcode

I've recently created a new framework project and moved many files to that project, now when I run the application it works fine on Xcode without any problem, but if I run the application directly from simulator (without Xcode) it launches and terminated immediately. I've checked simulator logs doesn't find any useful information related to that. Now I'm clueless. Any help or idea would be really appreciated. Thanks.
I've found the problem, it was an linker issue, new frameworks are not linked properly, I've added those in Embedded Binaries section from General tab, it started working.

Unity won't export iOS

i am trying to export my Unity Project to iOS (which has worked before), but then I downgraded from the newest Unity (5. something) to 4.6.7f, and now Unity won't even start exporting the project. It gives no errors, nothing. I also downgraded from XCode 7 to 6.4
As always, I set the player settings for iOS, click Build & Run, tell the program the location, hit save... nothing happens. The window "Build settings" keeps opened and I can just try over and over.
I tried a clean reinstall of XCode and Unity too, but to no avail. Does anyone have experienced this issue before?
Kind regards
Sebastian

Got stuck when deploy app on iphone

I got stuck when I try to deploy the test app on my device.
When I click run on XCode, the device is going to run the application. However, it stuck in the first view. And nothing is moving.
I was wondering if there is something wrong. Is it caused by jailbreak? My ios version is 5.0.1.
Then someone tell me what I could do to solve it.
There are some strange launch issues when debugging with LLDB.
Try using GDB instead
(EDIT) Latest Xcode 4.3 update with LLDB-112 should fix a lot of problems (but there are still bugs including reading of ivars)

Resources