I recently finished coding my project but I need help with a warning that keeps popping up. The app runs fine on the simulator but when I run it on my device it crashes at the loading screen and I get this error:
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in -[CrimeViewController robberyPLASMAGUN] from /Users/CANITO/Library/Developer/Xco
My viewcontroller.m file is a big file and when I remove all the code from the specific file the error goes away and the app runs fine. I don't know what to do ? I need all the code in that specific file in order for my game to function. Please help.
PAY IS ADJUSTABLE DEPENDING ON HOW WELL YOU CAN HELP ME FIX THIS.