react ntive ios buid fails as operatoin not permitted - ios

when I try to build the ios app with
react-native run-ios
I receive
error: unable to open output file '.../ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/double-conversion.o': 'Operation not permitted'
1 error generated.
The environment
macbook pro mojave 10.14.5
Help appreciated

Whenever you get this error on mac, it is because you system is not allowing react native to read or write some files.
Please try this one
sudo react-native run-ios
Hope so it will help

Related

Getting frequent Kill:9 Error in Xcode and Terminal

I have recently upgraded the Mac OS to Ventura 13.2.1 and Xcode to 14.2, now once I try to compile any application with Xcode, I am getting Kill:9 related issue for random task/framework in the project. I also get Kill:9 issue sometime on terminal as well.
Listing the errors here:
failed to read asset tags: The command `` terminated with uncaught signal 9. The command had no output.
Driver threw jobFailedWithNonzeroExitCode(9, "") without emitting errors.
Unable to execute command: Killed 9 Clang frontend command failed due to signal.
Please help me to resolve this issue/crash.
Open project in Xcode.
Build the app with Simulator (I tried with iPhone 14 Pro)
Error occurs in the build
Ideally project should have compiled without any error.
It sounds to me that the problem is with the installation of Xcode because when an unprivileged task is attempted, the OS will kill it off (with signal 9).
What I recommend is for you to re-install Xcode.
When you first run the new Xcode, it should prompt you for an administrator password in order to install system related components. Make sure you do this step. Hopefully that should then allow you to compile and run your iOS apps.

Native-Module can not be Null when launching react-native run-ios

I want to build existing react-native app on ios simulator. It shows build is successfull but the App is not launching and crashed the App. It shows the given Error.
Native module can not be null
please someone help me to find out the solution of the given problem. I am getting stuck for long time
Maybe it's because of your dependecies or your node_modules folder, try running npm install or npm i on terminal
Thanks everyone for helping me.
I fix the above problem by uninstalling Push Notifaction and Geolocation and react-native-vectors-icons and then install again react-native-vector-icons and boom..!!!
my ios application is running on my xcode simulator.

Failed to run react native project on IOS Simulator

enter image description hereI'm new to react native, I'm following the official React native's website to init a new project, try to run IOS. But, failed with the error below.
React-Native version 0.59
XCode 10.2
error Failed to build iOS project. We ran "xcodebuild" command but it
exited with error code 65. To debug build logs further, consider
building your app with Xcode.app, by opening HelloWorld.xcodeproj
When I run react-native run-ios --simulator="iPhone 7"
Error as below:
info Command PhaseScriptExecution failed with a nonzero exit code
info
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening HelloWorld.xcodeproj
Starting the simulator : Once you have your React Native project initialized, you can run 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.
Specifying a device : You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone X". If you wish to run your app on an iPhone 4s, just run react-native run-ios --simulator="iPhone 4s".
The device names correspond to the list of devices available in Xcode. You can check your available devices by running xcrun simctllist devices from the console.
In my case, I was specifying a simulator, but I had a different simulator open. Targeting the one that was opened, or simply closing it fixed the issue.
try this and see if it works or not.
first go to to ios folder of the project in terminal.
for that you can use terminal in visual studio code.
cd ios then
pod install
go back (to app directory)
cd ..
npm install
npm start
take a new terminal then,
npx react-native run-ios

Failed to verify bitcode in TNSWidgets.framework/TNSWidgets

I am working with Nativescript iOS app, when trying to create an Enterprise Archive using XCode. App builds fine but fails with the following error when Enterprise distribution is selected. Please help me to resolve this.
Failed to verify bitcode in TNSWidgets.framework/TNSWidgets:
error: Bundle only contains bitcode-marker /var/folders/5d/kv3n6r795l156_mwk8lzpfv00000gn/T/IDEDistributionOptionThinning.Sgt/Payload/hektor.app/Frameworks/TNSWidgets.framework/TNSWidgets (arm64)
Thanks in advance
I have resolved issue using this command. Go to your project directory and run this command in terminal
tns build ios --release --forDevice
Then you could get your ipa file from this location
../your_project_directory/platforms/ios/build/Release-iphoneos/yourappname.ipa

running into error when running ionic cordova emulate ios

When trying to test my project on the ios emulator from Xcode on my Mac, i get the following error in the CLI :
"Error: tsconfig: Cannot read file '/Users/catalin/VetLab/platforms/ios/cordova/tsconfig.json': ENOENT: no such file or directory, open '/Users/catalin/VetLab/platforms/ios/cordova/tsconfig.json'."
Thanks to everybody who has tried to help me with this problem. The solution I found was to run the command in the terminal after opening the IOS emulator in Xcode.

Resources