Giter Site home page Giter Site logo

ybrid / ogg-swift Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 11.0 431 KB

A swift xcframework wrapper for libogg API.

License: Other

Shell 51.81% C 7.22% Ruby 22.65% Swift 18.32%
audio swift ios ios-swift ogg audio-codec ogg-swift cocoapod xcframework macos macos-swift swift-package transport-layer vorbis-ogg ogg-opus

ogg-swift's Introduction

ogg-swift

A Swift wrapper to use libogg api.

Intension of this project is to support audio player SDK with a platform independend XCFramework that can be integrated in Swift projects via CocoaPod.

It supports iOS devices and simulators (version 9 to 14) and macOS (versions 10.10 to 11.2).

Version

The supported version of libogg API is 1.3.4.

Integration

After integration use

import YbridOgg

in your Swift code.

if you use CocoaPods

The Cocoa Podfile of a project using this framework, should look like

platform :ios, '9.0'
target 'player-sdk-swift' do
  use_frameworks!
  source 'https://github.com/CocoaPods/Specs.git'
  pod 'YbridOgg'
end

If you use Swift Package Management

The Package.swift using this framework should look like

  ...
  dependencies: [
    .package(
      name: "YbridOgg", 
      url: "[email protected]:ybrid/ogg-swift.git",
      from: "0.8.0"),
  ...

If you don't use CocoaPods or Swift Package Managenment

If you manage packages in another way you may download YbridOgg.xcframework.zip from the latest release of this repository and embed it into your own project manually.

Unzip the file into a directory called 'Frameworks' of your XCode project. In the properties editor, drag and drop the directory into the section 'Frameworks, Libraries and Embedded Content' of the target's 'General' tab.

Contributing

You are welcome to contribute.

Licenses

This project is under MIT license. It makes use of the sources for ogg from xiph.org/downloads. Ogg is licensed under the New BSD License. See the LICENSE file.

ogg-swift's People

Contributors

florianatnacamar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ogg-swift's Issues

Build fails on mac: YbridOgg.framework: bundle format is ambiguous (could be app or framework)

Hi, First of all - thank you for sharing the swift wrapper for ogg!
I was trying to use it via pods in my project, but when trying to build it I'm getting the following error:


rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Path/TO/Products/Debug/XCFrameworkIntermediates/YbridOgg/YbridOgg.framework" "/Path/To/App/Contents/Frameworks"

building file list ... done

YbridOgg.framework/
YbridOgg.framework/YbridOgg

sent 188533 bytes  received 48 bytes  377162.00 bytes/sec
total size is 586044  speedup is 3.11
Stripped /Path/To/App/Contents/Frameworks/YbridOgg.framework/YbridOgg of architectures: arm64

/usr/bin/codesign --force --sign XXX  --preserve-metadata=identifier,entitlements '/path/to/App/Contents/Frameworks/YbridOgg.framework'
/path/to/App/Frameworks/YbridOgg.framework: replacing existing signature
/path/to/App/Contents/Frameworks/YbridOgg.framework: bundle format is ambiguous (could be app or framework)

Update:
When building the xcframework locally:

./prepare
./build

And adding the framework to project, it works fine.

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.