add primitivetype for apple