Ankit-Aggarwal / SwiftyWebRTC

Swift Framework for WebRTC
MIT License
159 stars 32 forks source link

Framework not building with Carthage #8

Open albertobitto opened 6 years ago

albertobitto commented 6 years ago

Hi,

I'm trying to add your library to my project with Carthage, but I'm running into some problems.

I've added github "Ankit-Aggarwal/SwiftyWebRTC" to my Cartfile and the run carthage update, but this is what I get:

*** Skipped building WebRTC due to the error:
Dependency "WebRTC" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/Anakros/WebRTC/issues/new
*** Building scheme "SwiftyWebRTC" in SwiftyWebRTC.xcodeproj
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -project /path/to/my/project/Carthage/Checkouts/SwiftyWebRTC/SwiftyWebRTC.xcodeproj -scheme SwiftyWebRTC -configuration Release -derivedDataPath /Users/myuser/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4_9F1027a/SwiftyWebRTC/v0.1.6 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/v0/yz384q754hb8zcdjy4j72wb1c3vwd0/T/SwiftyWebRTC SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /path/to/my/project/Carthage/Checkouts/SwiftyWebRTC)

Looking into the build log, I see this

Failed to read file or folder at /path/to/my/project/Carthage/Checkouts/SwiftyWebRTC/Carthage/Build/iOS/WebRTC.framework

Any help would be precious.

Thanks

codearce commented 6 years ago

+1 same problem here :(

Ankit-Aggarwal commented 6 years ago

Gonna look into this..

Ankit-Aggarwal commented 6 years ago

@Punkers @bbigotes : Can you give me more details like which carthage version, xcode version and swift version you are using. It worked fine for me. I used following. cartfile github "Ankit-Aggarwal/SwiftyWebRTC" ~> 0.1 Which leads to resolve version to be github "Ankit-Aggarwal/SwiftyWebRTC" "v0.1.6"

Used this command to fetch and update. carthage update SwiftyWebRTC --platform ios

It was done on my earlier project and i just used last command again today to check issue with latest carthage version if any.

dylanmoo commented 5 years ago

I've run the same commands you're suggesting and I see the WebRTC.framework, but nothing else in the Build/iOS folder