I have a react native app with Pods included. It works and runs fine on actual device, but recently when I try to run it on Simulator, I get this weird error clang: error: no such file or directory: '__entitlements'
.
Any ideas what could be causing it?
I was running into this issue and I figured out a solution. In my specific instance I had a wayward -force_load
argument in the 'additional linker flags' without a path specified. I believe this was causing some arguments to become out of place with the linking. Once I removed this, the error stopped.
I found the problem, I had this in the Build Settings in Other Linker Flag
Other Linker Flag = (
"$(inherited)",
"-ObjC",
"-force_load",
);
remove -force_load
.Then Clean and Build your Project and then try again.
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