Go to file
Dirk Zimmermann 4b98050619 Merge branch 'PEMA-443' 2023-04-14 16:13:38 +02:00
PublicHeaders PEMA-54 Roll back the outgoing rating change config 2022-12-01 16:40:47 +01:00
Subprojects PEMA-443 Add libc++ where needed 2023-04-05 14:37:23 +02:00
build-linux IOSAD-239 Fix Linux Makefile to include subfolders. 2022-03-25 14:53:18 +01:00
build-mac PEMA-443 libc++.tbd only in executables 2023-04-11 13:00:37 +02:00
build-windows/POC IPS-6 POC project files 2022-02-17 16:12:52 +01:00
src PEMA-443 Use rsa4k as cipher suite 2023-04-06 09:40:17 +02:00
.gitignore IPS-100 Linking Experiments. 2021-11-30 16:26:18 +01:00
README.md E3-3 Fix some readme parts 2023-02-13 09:28:58 +01:00


HowToBuild pEpObjCAdapter for macOS & iOS


PER_MACHINE_DIRECTORY="/Library/Application Support/pEp"

Required Tools

For building the engine, you need a working python3 environment and all dependencies:

sudo port install git
sudo port install gmake
sudo port install autoconf
sudo port install libtool
sudo port install automake
sudo port install wget
sudo port install capnproto

pushd ~
git clone https://gitea.pep.foundation/fdik/yml2

curl https://sh.rustup.rs -sSf | sh

add this to ~/.profile (create if it doesn't exist):

source $HOME/.cargo/env
export PATH="$HOME/.cargo/bin:$PATH"

restart your Console (!)

sudo port install pkgconfig
rustup update

Install Xcode (if not installed already)

Apple IDs & Certificates

Apple ID

You need to have an Apple ID (connected to pEp team account) configured in Xcode . Ask #service, if you want to be added to the team account.

Build Dependencies

mkdir src_pEpObjCAdapter
cd src_pEpObjCAdapter

git clone https://gitea.pep.foundation/buff/common-dependency-build-helpers-4-apple-hardware.git
git clone http://pep-security.lu/gitlab/iOS/pep-toolbox.git
git clone https://pep-security.lu/gitlab/iOS/CocoaLumberjack
git clone https://pep-security.lu/gitlab/misc/libetpan.git
git clone https://pep-security.lu/gitlab/misc/sqlite.git
git clone https://gitea.pep.foundation/pEp.foundation/pEpEngine
git clone https://gitea.pep.foundation/pep.foundation/pEpObjCAdapter.git

Build for iOS

iOS Only: Copy System DB

The system.db from the pEpEngine repository must be copied in the bundle that uses the pEpObjCAdapter.a static lib. The ObjCAdapter copies it at runtime in the desired directory.

Backround: Has been introduces to use Apple Shared App Directory of the client App.

Using Xcode UI

open build-mac/pEpObjCAdapter.xcodeproj/

Build scheme "pEpObjCAdapter_iOS".

Using terminal

xcodebuild -workspace "build-mac/pEpObjCAdapter.xcodeproj/" -scheme "PEPObjCAdapter_iOS" -configuration RELEASE

(or DEBUG)

Build Dir & Build Artefacts

You can find the build artefacts in the pEpMacOSAdapter/build folder

Build for macOS

Using Xcode UI

open pEpObjCAdapter/pEpObjCAdapter.xcworkspace/

Build scheme "PEPObjCAdapter_macOS".

Using terminal

xcodebuild -workspace "pEpObjCAdapter.xcworkspace" -scheme "PEPObjCAdapter_macOS" -configuration RELEASE

(or DEBUG)

Using terminal

xcodebuild -workspace "pEpObjCAdapter.xcworkspace" -scheme "PEPObjCAdapter_macOS" -configuration RELEASE

(or DEBUG)

Build Dir & Build Artefacts

You can find the build artefacts in the pEpMacOSAdapter/build folder

How to build pEpObjCAdapter for Linux

See pEpObjCAdapter/pEpObjCAdapter/build-linux/README.md