iOS: fix the release build

Change the library copying to use a system variable for the location that works in both builds