(iOS) Refactor initWithCore for iOS