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

I have an interactive application with Pods enabled. It works and works fine on the device itself, but recently, when I try to run it on Simulator, I get this strange error clang: error: no such file or directory: '__entitlements' .

Any ideas what could be causing this?

+6
source share
2 answers

I ran into this problem and I understood the solution. In my particular case, I had a wayward argument -force_load in additional linker flags without a specified path. I believe this led to some arguments becoming inappropriate with the connection. As soon as I deleted it, the error stopped.

+10
source

I found a problem, I had it in the build settings in another linker flag

 Other Linker Flag = ( "$(inherited)", "-ObjC", "-force_load", ); 

remove -force_load . Then clean and create your project, and then try again.

+1
source

All Articles