Giter Club home page Giter Club logo

Comments (11)

SeanChenU avatar SeanChenU commented on September 24, 2024 32

Here are my steps to integrate APPRTC into my project manually:

  1. Remove: pod 'APPRTC' and add them: pod 'libjingle_peerconnection' pod 'SocketRocket' in Podfile
  2. Copy from Lib/ folder from APPRTC project into my project
  3. Add these frameworks and libraries into project: "QuartzCore", "OpenGLES", "CoreGraphics", "CoreVideo", "CoreMedia", "CoreAudio", "AVFoundation", "AudioToolbox", "GLKit", "CFNetwork", "Security", "sqlite3", "stdc++.6", "icucore", "c++"
  4. Add related headers in my case #import <libjingle_peerconnection/RTCEAGLVideoView.h> #import "ARDAppClient.h" #import "RTCPeerConnectionFactory.h" into Bridging-Header.h
  5. Build!

from apprtc-ios.

Xioshock avatar Xioshock commented on September 24, 2024

I haven't tried this this project yet, but if you are targeting iOS 8+ and have updated CocoaPods, you don't need bridging header. Just type use_frameworks! at the top of your Podfile. It will create a framework from this library and you can then import it in your swift file, same as UIKit is imported

from apprtc-ios.

SeanChenU avatar SeanChenU commented on September 24, 2024

I am using pod 0.39.0 and encountering this issue when pod install
The 'Pods-XXX-iOS' target has transitive dependencies that include static binaries: (/Users/User/XXX-ios/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a)

from apprtc-ios.

coolwr avatar coolwr commented on September 24, 2024

Yes, the project should work inside your Swift Project. However, because of the static library dependency you'll need to manually integrate into your project or create a framework per @Xioshock

The transitive dependency error seems to e an issue with the recent version of cocoa pods. We'll need to investigate this further to find a resolution.

from apprtc-ios.

coolwr avatar coolwr commented on September 24, 2024

Awesome. Thanks for posting the instructions! Would be great if someone could help investigate how to fix the transitive dependency error in cocoa pods so the integration would be easier.

from apprtc-ios.

cmorell avatar cmorell commented on September 24, 2024

Hi! yes I also did the same like @SeanChenU but I really like how to add appRTC pod or how to create ones in order to has AppRTC client as a Pod and be usefull using swift project. Can anyone did it before?

I think I am closer (or not) but I get this error:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_RTCSessionDescription", referenced from:
      objc-class-ref in ARDSignalingMessage.o
      objc-class-ref in RTCSessionDescription+JSON.o
      l_OBJC_$_CATEGORY_RTCSessionDescription_$_JSON in RTCSessionDescription+JSON.o
  "_OBJC_CLASS_$_RTCICECandidate", referenced from:
      objc-class-ref in ARDSignalingMessage.o
      objc-class-ref in RTCICECandidate+JSON.o
      l_OBJC_$_CATEGORY_RTCICECandidate_$_JSON in RTCICECandidate+JSON.o
  "_OBJC_CLASS_$_RTCPair", referenced from:
      objc-class-ref in ARDAppClient.o
      objc-class-ref in RTCMediaConstraints+JSON.o
  "_OBJC_CLASS_$_RTCMediaConstraints", referenced from:
      objc-class-ref in ARDAppClient.o
      objc-class-ref in RTCMediaConstraints+JSON.o
      l_OBJC_$_CATEGORY_RTCMediaConstraints_$_JSON in RTCMediaConstraints+JSON.o
  "_OBJC_CLASS_$_RTCVideoCapturer", referenced from:
      objc-class-ref in ARDAppClient.o
  "_OBJC_CLASS_$_RTCICEServer", referenced from:
      objc-class-ref in ARDAppClient.o
      objc-class-ref in RTCICEServer+JSON.o
      l_OBJC_$_CATEGORY_RTCICEServer_$_JSON in RTCICEServer+JSON.o
  "_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from:
      objc-class-ref in ARDAppClient.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from apprtc-ios.

saiteja7 avatar saiteja7 commented on September 24, 2024

what is the meanning of 2nd step @SeanChenU

from apprtc-ios.

cmorell avatar cmorell commented on September 24, 2024

@saiteja7 the meaning of 2nd step in @SeanChenU comment is that we need to copy in our project the classes that contains AppRTC/Lib folder:

ARDAppClient.(h/m)
ARDMessageResponse.(h/m)
ARDRegisterResponse.(h/m)
ARDSignalingMessage.(h/m)
ARDUtilities.(h/m)
ARDWebSocketChannel.(h/m)
RTCICECandidate+JSON.(h/m)
RTCICEServer+JSON.(h/m)
RTCMediaConstraints.(h/m)
RTCSessionDescription.(h/m)

from apprtc-ios.

saiteja7 avatar saiteja7 commented on September 24, 2024

okay thanq

On 18 August 2016 at 15:00, cmorell [email protected] wrote:

@saiteja7 https://github.com/saiteja7 the meaning of 2nd step in
@SeanChenU https://github.com/SeanChenU comment is that we need to copy
in our project the classes that contains AppRTC/Lib folder:

ARDAppClient.(h/m)
ARDMessageResponse.(h/m)
ARDRegisterResponse.(h/m)
ARDSignalingMessage.(h/m)
ARDUtilities.(h/m)
ARDWebSocketChannel.(h/m)
RTCICECandidate+JSON.(h/m)
RTCICEServer+JSON.(h/m)
RTCMediaConstraints.(h/m)
RTCSessionDescription.(h/m)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#39 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATr_kL_hnRPp_GZXESw5ZGsd_BHfb4jiks5qhCYbgaJpZM4Iv2iT
.

from apprtc-ios.

sonysum avatar sonysum commented on September 24, 2024

Hi,
@SeanChenU i follow your solution but i can not call renderFrame,
Ex: [self.localView renderFrame:nil]; // error class has no men=mber 'renderFrame'
any solution?

from apprtc-ios.

Carlos77 avatar Carlos77 commented on September 24, 2024

I have the same problem can i have more informations for how to solve this issues

WorkSpace/Test2/platforms/ios/Test2/Plugins/com.onsip.cordova/libwebrtc_base.a
Undefined symbols for architecture arm64:
"OBJC_CLASS$_RTCEAGLVideoView", referenced from:
objc-class-ref in PhoneRTCPlugin.o
"OBJC_CLASS$_RTCICEServer", referenced from:
objc-class-ref in PhoneRTCPlugin.o
"OBJC_CLASS$_RTCICECandidate", referenced from:
objc-class-ref in PhoneRTCDelegate.o
"OBJC_CLASS$_RTCMediaConstraints", referenced from:
objc-class-ref in PhoneRTCDelegate.o
"OBJC_CLASS$_RTCPair", referenced from:
objc-class-ref in PhoneRTCDelegate.o
"OBJC_CLASS$_RTCVideoCapturer", referenced from:
objc-class-ref in PhoneRTCDelegate.o
"OBJC_CLASS$_RTCSessionDescription", referenced from:
objc-class-ref in PhoneRTCDelegate.o
"OBJC_CLASS$_RTCPeerConnectionFactory", referenced from:
objc-class-ref in PhoneRTCDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from apprtc-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.