Skip to content
Brian Osborn edited this page Apr 26, 2024 · 9 revisions

Pull from CocoaPods

pod 'PROJ', '~> 9.4.0'

Module Headers

If you use use_modular_headers! in your Podfile, you may need to disable modular headers for PROJ.

pod 'PROJ', '~> 9.4.0', :modular_headers => false

Or when the dependency is inherited from another Pod:

pod 'PROJ', :modular_headers => false

Xcode Setup

Add libc++.tbd and libsqlite3.tbd to project target Frameworks and Libraries

Note: When using PROJ through another library such as proj-ios, the files should be included already.

Xcode

Database

PROJ proj.db - search paths

Set the PROJ database path

NSString *databasePath = [PROJIOUtils databasePath];
proj_context_set_database_path(PJ_DEFAULT_CTX, [databasePath UTF8String], NULL, NULL);

Copy Database from PROJ Pod (Pods/PROJ/proj.db) to Current Directory

Import

#import "proj.h"

Documentation

Quick start

Functions

Example

projections-ios library

Clone this wiki locally