Making app compatible with XCODE 6 and iOS8