react-native-pjsip icon indicating copy to clipboard operation
react-native-pjsip copied to clipboard

Set PJ_AUTOCONF on react-native-pjsip.podspec

Open asukiaaa opened this issue 5 years ago • 1 comments

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:

  • MacOS 10.15.7
  • Xcode 12.0.1
  • iOS 13.5.1 (iPhone X)
  • react-native 0.63.2

References:

  • https://github.com/florindumitru/react-native-sip/issues/6#issuecomment-605302549
  • https://github.com/FastPBX/react-native-sip/blob/14cbbf082bc484c8ed8651b110adf475acb2f7bf/react-native-sip.podspec#L19-L22

asukiaaa avatar Oct 19 '20 08:10 asukiaaa

@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!

linus-komnick avatar Aug 08 '21 07:08 linus-komnick