Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode build error on simulator clang: error: no such file or directory: '__entitlements'

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?

like image 527
pr4n Avatar asked Oct 13 '16 00:10

pr4n


2 Answers

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.

like image 138
Kyle Avatar answered Sep 17 '22 14:09

Kyle


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.

like image 43
snehal B. Avatar answered Sep 20 '22 14:09

snehal B.