nesterenkodm / pjsip

PJSIP is Open Source SIP, Media, and NAT Traversal Library
495 stars 220 forks source link

Build errors after updating to 2.9 #84

Closed armandzwan closed 5 years ago

armandzwan commented 5 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

App to build normally after updating to version 2.9

Current Behavior

I get build errors

Failure Information (for bugs)

Undefined symbols for architecture arm64: "_opus_decode", referenced from: _codec_decode in libpjmedia-codec-apple-darwin_ios.a(opus.o) _codec_recover in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_repacketizer_out", referenced from: _codec_encode in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_repacketizer_get_nb_frames", referenced from: _codec_parse in libpjmedia-codec-apple-darwin_ios.a(opus.o) _codec_encode in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_encode", referenced from: _codec_encode in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_encoder_get_size", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_decoder_get_size", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_repacketizer_out_range", referenced from: _codec_parse in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_repacketizer_get_size", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_repacketizer_cat", referenced from: _codec_parse in libpjmedia-codec-apple-darwin_ios.a(opus.o) _codec_encode in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_encoder_ctl", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) _codec_modify in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_encoder_init", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_decoder_init", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_packet_get_nb_samples", referenced from: _codec_parse in libpjmedia-codec-apple-darwin_ios.a(opus.o) "_opus_repacketizer_init", referenced from: _codec_open in libpjmedia-codec-apple-darwin_ios.a(opus.o) _codec_parse in libpjmedia-codec-apple-darwin_ios.a(opus.o) _codec_encode in libpjmedia-codec-apple-darwin_ios.a(opus.o) ld: symbol(s) not found for architecture arm64

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Update project with v2.8 to 2.9
  2. Try to build

Context

welljsjs commented 5 years ago

Hey @armandzwan,

thanks for using our issue templates!

Would you be so kind and provide me 1.) your Podfile and 2.) some more information or a short code extract of how you've been using/integrating this framework (e.g. are you using a Bridging-Header)?

I just tried to reproduce with a new Xcode project and I didn't experience any issue at all. Nevertheless, we'll look into that.

armandzwan commented 5 years ago

My podfile:

platform :ios, '9.0'
use_frameworks!

target '...' do
  pod 'pjsip'
end

The bridging header is very simple:

#import "XCPjsua.h"
welljsjs commented 5 years ago

On it. Reproducible when calling any pjsua function from Swift.

I'll provide a fix asap.

Please note that it may take a few days until we come out with a fix for this/until the fix is uploaded to Cocoapods. @armandzwan You can get the latest version from the master branch directly, if necessary:

pod 'pjsip', :git => 'https://github.com/chebur/pjsip', :branch => 'master'

This is likely an issue with the Podspec file.

welljsjs commented 5 years ago

@chebur Would you update the pod with 2.9.0.2?

nesterenkodm commented 5 years ago

done