ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.34k stars 411 forks source link

Pods error - target has transitive dependencies that include static binaries #21

Closed royherma closed 7 years ago

royherma commented 8 years ago

Getting this error when trying to install via pods:

Installing libjingle_peerconnection (11177.2.0)
[!] The 'Pods-Dabble' target has transitive dependencies that include static binaries: (/Users/royhermann/Desktop/Development/Dabble/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a)

Any ideas how to successfully install?

Thanks

royherma commented 8 years ago

BTW - The way the pod is set up, is it suppose to work for Swift as well or only ObjC?

KeChihYang commented 8 years ago

I also got this problem. My podfile need install Socket.IO-Client-Swift which need "use_framework!" command, but if add use_framework! in podfile, it can not successfully install.

Only remove use_framework! from podfile, can be installed successfully.

Anyone know how to fix this problem?

ssldhl commented 8 years ago

I am trying to integrate the AppRTC pod in my project (https://github.com/sushilthe/webrtc-ios-swift) but including use_frameworks! in PodFile gives me the exact same error.

Does anyone have the solution?

a-athaullah commented 8 years ago

I allready check on your project and run it on my xcode, it works well. So maybe you just need to update your pod.

a-athaullah commented 8 years ago

fyi: I just add "App Transport Security Settings" -> "Allow Arbitrary Loads" : "YES" in info.plist

kumangdeal commented 8 years ago

any solution ?

stanchiang commented 8 years ago

^bump

coolwr commented 8 years ago

Hi All, it might be a while before anyone on our side will be able to look into the "transitive dependency" error that occurs with the latest version of cocoa pods. Here's some guidance on this thread: https://github.com/ISBX/apprtc-ios/issues/39

stanchiang commented 8 years ago

got it. appreciate the quick followup.

momosmile commented 8 years ago

I also got this problem.please solution this problem?

coolwr commented 7 years ago

AppRTC upgraded to 1.0.3. For the transitive dependencies that include static binaries error when installing you can add the following to your PodFile

pre_install do |installer|
    def installer.verify_no_static_framework_transitive_dependencies; end
end
v-at-y commented 7 years ago

Per https://github.com/CocoaPods/CocoaPods/issues/3289#issuecomment-313726321, the pre_install command post-cocapods 1.3.x should be:

pre_install do |installer|
    # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
marwendoukh commented 6 years ago

You could install SocketIO with Carthage by adding this line to your Cartfile :

github "socketio/socket.io-client-swift"

Then add the Starscream and SocketIO frameworks to your project.

sansuba commented 5 years ago

Per CocoaPods/CocoaPods#3289 (comment), the pre_install command post-cocapods 1.3.x should be:

pre_install do |installer|
    # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

this was helped to solve the issue. My pod version is 1.0.4