You may receive this warning from Apple, not because your application is on its own, but because it is a third-party library that has not been compiled as a PIE. For example, if you use the Marmalade SDK Engine, you will receive this warning (they will fix it in September).
But you can try adding more compiler flags to your build settings:
In other C flags, you can put the flag: -fPIC
In Other warning flags you can put: -Wl, - emit-relocs and -Wl, - warn-shared-textrel
To find out if your application is PIE:
otool -hf /path/to/your/App.app/app
Link: https://developer.apple.com/library/ios/qa/qa1788/_index.html
source share