Fix problem with conditional which prevented clean project build on iOS

Without this fix, the project generated by kit on iOS won't compile cleanly.