Xcode 7 - How to remove ld: warning: -read_only_relocs cannot be used with x86_64

I recently updated Xcode 7 and now get the following warning when compiling:

ld: warning: -read_only_relocs cannot be used with x86_64

I don’t think I changed something in the build settings or the code to create this. Does anyone know what causes this warning and how to remove it?

+5
source share
1 answer

I found a problem for those interested. As mentioned in the commentary, I use the Twilio API , and if you install it via cocoapods, it will add the -read_only_relocs flag to the other Linker flags in Xcode (located in the Build Settings section). This not only generates the warning above (on the simulator), but it will not compile on a real device, because you cannot have BITCODE = YES and this flag. If you want to compile, you need to set Enable Bitcode to No in the build settings.

+7
source

Source: https://habr.com/ru/post/1232577/


All Articles