The strange thing is that it works fine with the simulator SDK and it even tried to work the first time I tried running it on the iPad but didn’t have the password for the iCloud account associated with it.
I tried everything, deleted the iOS build, reverted the whole unity project, changing settings back and nothing worked.
I even tried removing and adding imports in the pch file like I’ve read in another post but it seems it is not the same issue.