datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
272 stars 228 forks source link

Set PJ_AUTOCONF on react-native-pjsip.podspec #219

Open asukiaaa opened 3 years ago

asukiaaa commented 3 years ago

I got the following errors at building.

Compile PjSipVideoViewManager.m
[project_dir]/ios/VialerPJSIP.framework/Headers/pj/config.h:303:5: "Please specify target machine."
[project_dir]/ios/VialerPJSIP.framework/Headers/pj/config.h:1297:4: "PJ_HAS_PENTIUM is not defined!"
[project_dir]/ios/VialerPJSIP.framework/Headers/pj/config.h:1301:4: "PJ_IS_LITTLE_ENDIAN is not defined!"
[project_dir]/ios/VialerPJSIP.framework/Headers/pj/config.h:1305:4: "PJ_IS_BIG_ENDIAN is not defined!"

To avoid them, I set PJ_AUTOCONF on react-native-pjsip.podspec. Thanks.

Environments:

References:

linus-komnick commented 2 years ago

@asukiaaa This works great! Thx so much! @datso Could you please merge this branch? Without this commit building the app in Xcode fails and you have to set PJ_AUTOCONF=1 every time you want to build the app which is annoying... Thx in advance!