# iziz/libPhoneNumber-iOS

iOS port of Google's libphonenumber with Objective-C core, Swift facade, SwiftUI input, and CocoaPods/SPM support

Repository: https://github.com/iziz/libPhoneNumber-iOS
Canonical: https://ross.abutalabs.com/products/libphonenumber-ios
Homepage: https://github.com/iziz/libPhoneNumber-iOS/releases/latestc
Language: Objective-C
License: Apache-2.0
License Family: permissive
Topics: libphonenumber, cocoapods, objective-c, ios, metadata, phone-number, phone-number-formatting, phone-number-validation, spm, swift, swift-package-manager, swiftui
Last push: 2026-08-15T10:49:44+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 96, longevity 100
- inputs: {"age_days": 4571, "days_push": 18, "days_rel": 29, "gap_med": 13.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2386, forks 482 (observed 2026-08-28T04:06:42.660643+00:00)

## What it is
An iOS port of Google's libphonenumber library with an Objective-C core and Swift-first facade modules for parsing, formatting, and validating phone numbers. It includes optional modules for geocoding, short/emergency numbers, carrier lookup, time zones, and a SwiftUI phone input field.

## Use cases
- validate phone numbers in an iOS app
- format phone numbers as the user types in Swift
- parse international phone numbers in Objective-C
- show country-specific phone number input field in SwiftUI
- look up carrier or time zone for a phone number
- detect emergency or short-code numbers
- get geographic info for a phone number offline

## When to choose
- building iOS or Apple-platform apps that need robust international phone number handling
- you want Google libphonenumber metadata parity on iOS
- you need both Objective-C compatibility and modern Swift/SwiftUI APIs
- you prefer SPM or CocoaPods integration with modular imports

## When to avoid
- building for Android or non-Apple platforms (use the original libphonenumber)
- you need server-side phone number processing outside Swift/Objective-C
- you only need simple formatting and don't want extra metadata weight

## Facets
- artifact type: library
- maturity: active
- function: parser, sdk, internationalization
- domain: mobile-development, developer-tools
- platform: cross-platform
- tags: phone-number-validation, phone-number-formatting, libphonenumber, objective-c, swiftui, cocoapods, swift-package-manager, geocoding, short-numbers, localization, ios, swift, mobile

## Member repositories
- iziz/libPhoneNumber-iOS (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:42.660643+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:36.361982+00:00, confidence not recorded.
  - readme: https://github.com/iziz/libPhoneNumber-iOS (fetched 2026-08-28T04:06:42.660643+00:00, sha fe16d6e99d27)
- Data as of 2026-08-30T08:39:29.467469+00:00.
