Skip to content

This is a Cocoa library that enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.

License

GPL-2.0, LGPL-3.0 licenses found

Licenses found

GPL-2.0
COPYING
LGPL-3.0
LICENSE.TXT
Notifications You must be signed in to change notification settings

chrislim2888/IP2Location-Cocoa-Library

Repository files navigation

IP2Location Cocoa 7.0.0

This is IP2Location Cocoa library that enables the user to find the country, region (state), city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, and usage type by IP address or hostname originates from. The library reads the geo location information from IP2Location BIN data file.

Supported IPv4 and IPv6 address.

For more details, please visit: https://www.ip2location.com/developers/cocoa

#Installation (Mac OS X)

  1. Download and decompress ip2location-cocoa-x.x.x.zip
  2. For Xcode usage:
    1. Add ip2location.framework to your Xcode project by dragging and dropping it into Project Navigator
    2. In your appropriate target, under "Build Settings", select "Runpath Search Paths" in the "Linking" category, and enter "@loader_path/../Frameworks" (without the quotes).
    3. Build your project
  3. For build from command line or makefile
    1. Copy ip2location.framework to your working directory
    2. Build and link your target with following options added (without the quotes): "-F. -L. -Wl,-framework,ip2location -Wl,-framework,Foundation"
    3. Change linked framework path in your binary: "install_name_tool -change @rpath/ip2location.framework/Versions/A/ip2location ip2location.framework/Versions/A/ip2location binary_executable"

Sample BIN Databases

IPv4 BIN vs IPv6 BIN

  • Use the IPv4 BIN file if you just need to query IPv4 addresses.
  • Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

Support

Email: [email protected].
URL: https://www.ip2location.com

About

This is a Cocoa library that enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.

Topics

Resources

License

GPL-2.0, LGPL-3.0 licenses found

Licenses found

GPL-2.0
COPYING
LGPL-3.0
LICENSE.TXT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published