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

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.

Related

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.

Xamarin - When try to deploy the build never ending

I'm developing xamarin application for both IOS and Androaid, when I'm try to publish the Ios appliaction to my iphone the build never ends and no error appear, I tring to upgrade my Xcode but this didn't help.
When I'm using the IOS simulator everything works fine, the build ends and the app run as expected. I tried all the solutions that I found on the internet but none of them help.
Is anybody encounter this problem and have solution for this issue??
enter image description here
Xamarin frameworks are updated as latest stable version on both of Visual Studio and MacOs?
Did you accept Apple New License Agreement on your apple account?
You can check logs. (Help->Xamarin->Open Logs)

Xcode 8 App installation failed, unknown error occured

The following error occurred when I tried to run a project on my iOS device. Running it on a simulator works fine.
The other weird thing is that I am able to run my other projects on my device, only this particular project that is giving me this error.
I tried all the solutions I'm able to find:
Cleaning the project, deleting derived data
Restarting Xcode, my Mac, and my iOS device
Deselect 'Automatically manage signing' in the testing Target.
I couldn't delete the app from my device and re-install it because it wasn't installed on my device before.
Any help would mean alot to me! I am using Xcode 8.1 with Swift 3.0, running on a iOS 10.1.1 device.
Close your Xcode completely from currently running on Dock
Unplug your iDevices cable at your Mac and plug again.
Open Xcode Again.
Clean,Build and Wait for indexing the device
Delete the previous app you install on your iDevice
Then install
If you have free Developer ID, make sure you got the Internet access
right on your iDevices.
Else,
Check your provision profile or certificates of your app that it's still available or not [Expire or not].
If expired, please create again.
Install those latest provision profile at your Xcode Preferences/Account/Detail/
Make sure Signing "Debug" and "Release" aren't empty
Close the Xcode(Completely quit from Dock) after you completed those steps
Open the Xcode again and do Clean,Build and Install
Hope this help.
Other alternative way,
Remove the app on the device and re-install
Change build version no and install again
Clean your the project and reattach your device
Do a pod update if you are using CocoaPods. This error can occur due to one of the pod libraries, device logs can be checked for the name of the library.
I get this error only on the second compile for device targets, and I've found that if I just modify one critical source code file by adding just an empty line, the error goes away and Xcode will compile again. The other way is to target a second device which isn't always convenient.
A way around this confusion is to add a an Xcode Run Script that basically does this for you.
Force Xcode 9 to recompile after a build seems to be file dependent also
touch ${SRCROOT}/MyProject/MySourceFile.swift exit $?
With the above script my issues went away, and I never saw the Xcode Alert again. This bug has been in several iterations of Xcode now.
I have the same problem too, and also tried all the solution like you. unfortunately, not solve this problem, but I copied my project to another path, the copied one can build on my phone successfully, hope this can help you.
It can happen if you have debugged the same app(bundle identifier) with more than one Apple Ids. Remove all accounts from Xcode and sign in to the one which you're currently working with.
Restart your Xcode & Uninstall your app.
Build & Clean your Project, now it working good.
this works for me
above is not working please Restart your system
This error message occurred when I was building on an iPhone 5 and an iPhone 6 Plus with Xcode 10. Build in iPhone 5s Simulator gave a different error: "App could not be installed at this timeā€¦/Notification Extension: No such file or directory"
Problem was resolved by check marking Target Membership in my Notification Extension's source file.

Appcelerator application throwing app.js not found on device

Recently I have upgraded all my iOS and Appcelerator kits to latest versions, and since then I have problems while preparing archive / builds.
Initially the app was throwing error on simulator but I found a way to resolve this.
Plz note I am using Xcode instead of Appcelerator for building archives
The steps I took to run the app successfully in simulator...
1. Xcode->Preferences->locations
2. Derived Data -> Advanced -> Custom: Relative to Workspace
3. Now build in Xcode it should not have that problem.
Now build is working fine in simulator, but I can still see app.js not found error on the device (I build the archive and installed via iTunes)
Thanks in advance... People having experience in using Xcode 7 may reply to this in a better way.
This is an known issue:
https://jira.appcelerator.org/browse/TIMOB-19818
Please use Appcelerator's JIRA to report and track bugs.
And as people have commented, you should not actually need to build form Xcode as the CLI and Studio will do this for you via the Xcode command line.
My issue was because we were using camelCase as the project name "I think!!!"

AppCode no product for target

I am trying to run Swift iOS app in iPad simulator in AppCode. App is successfully built, but there is an error
Error running ios-app: No product for target 'ios-app'
I am quite green in iOS development and I am trying to switch from XCode to AppCode since I am more familiar with it.
I am using latest AppCode (3.1.7), everything works great in XCode.
Thanks for responses :)
I ran into the same problem - I wasn't able to run my XCTest unit tests in AppCode any more although they were running perfectly in XCode.
My error message was "No product for target ..."
I was able to get them running again by switching to the latest AppCode 3.2 build (Tascalate).
You can get this one by opening the IDE Preferences, then go to Appearence & Behavior > System Settings > Updates
There you can switch to the Early Access Program to check for updates.
Hope this solves your issue, too.
Edit: Since Julian above asked an important question about the XCode version... in my case I was using AppCode 3.1.7 and XCode 7 beta 4. The switch to AppCode 3.2 EAP - as already mentioned above - solved the issue.
I have delete the .idea folder and restart Appcode, it's work

Resources