symeonmattes / pjsip

Cordova plugin for the PJSIP library version 2.5.5.
Apache License 2.0
9 stars 7 forks source link

iOS / xcode10.1 #5

Open rvleyden opened 5 years ago

rvleyden commented 5 years ago

Hello,

where can I set the following in Xcode 10.1 ? : "After installation you need to add manually in Build settings the following configurations a. Apple LLVM 8.1 Preprocessing->Preprocessor Macros->(both debug/release) PJ_AUTOCONF=1 b. Search paths->Header Search Paths -> (both debug/release in cordova plugin) i. fulllocation/pjsua/pjmedia ii. fulllocation/pjsua/pjnath iii. fulllocation/pjsua/pjlib-util iv. fulllocation/pjsua/pjlib v. fulllocation/pjsua/pjsip"

symeonmattes commented 5 years ago

Hi,

It's a tab called build settings. Check the image: https://cdn-images-1.medium.com/max/1200/1*JH3lJ0krxRiZepKpnzwS0g.png

rvleyden commented 5 years ago

Thanks, but I still do not onderstaand what Value's to put in and on which parameters. I'm sorry but I am not so well know with xcode and project parameters.

symeonmattes commented 5 years ago

Check the images: https://raw.githubusercontent.com/BranchMetrics/react-native-branch-deep-linking/master/docs/assets/8-add-preprocessor-macro.png https://blogs.wcode.org/wp-content/uploads/2014/11/Screen-Shot-2014-11-19-at-09.30.10-2.png

In Xcode the build settings tab is supposed to be setting for the compiler. Normally you will find sections like Apple LLVM 8.1 etc, Search paths etc. There you should add (with the + sign) the parameters I mention.

rvleyden commented 5 years ago

Is the setting correct as marked in my screenshot ? image

symeonmattes commented 5 years ago

It seems to be ok, but the value is not 1 b, it's 1. In the manual it's like that: After installation you need to add manually in Build settings the following configurations a. Apple LLVM 8.1 Preprocessing->Preprocessor Macros->(both debug/release) PJ_AUTOCONF=1 b. Search paths->Header Search Paths -> (both debug/release in cordova plugin) i. fulllocation/pjsua/pjmedia ii. fulllocation/pjsua/pjnath iii. fulllocation/pjsua/pjlib-util iv. fulllocation/pjsua/pjlib v. fulllocation/pjsua/pjsip

rvleyden commented 5 years ago

Is it possible to send me a sample project (ionic) where the settings are working for Ios ?

Thanks

rvleyden commented 5 years ago

for the following :

i. fulllocation/pjsua/pjmedia ii. fulllocation/pjsua/pjnath iii. fulllocation/pjsua/pjlib-util iv. fulllocation/pjsua/pjlib v. fulllocation/pjsua/pjsip

Do you mean with fulllocation the path to the pjsua directory in de

symeonmattes commented 5 years ago

yes...it's the full path, e.g. /Users/blabla/etc. I hadn't found another way to deal with this cumbersome.

Unfortunately I don't have a working project as this plugin had been used for proprietary use.