Coder Social home page Coder Social logo

Comments (5)

OlehKulykov avatar OlehKulykov commented on June 25, 2024
  1. Check file path exists.
  2. Check path extension for correct detecting archive type, because need to create suitable decoder, plus to all, file can be encrypted.

Or create reader with predefined archive type:

/**
 @brief Initialize archive with file url and archive type.
 @param fileURL File url to the archive. Can't be nil.
 @param type Manualy defined type of the archive.
 */
- (nonnull id) initWithFileURL:(nonnull NSURL *) fileURL andType:(LzmaSDKObjCFileType) type

Also, since release 0.0.6 was added initial error processing.

from lzmasdkobjc.

skauthner avatar skauthner commented on June 25, 2024

Thanks, I'm using -initWithFileURL:andType: Also, the file does exist

It looks like the function RegisterArc() is not called to register a decoder for 7z- I don't know why though.

I also tried the sample project (i.e. 'pod try LzmaSDK-ObjC'), and it worked fine. But then I copied and pasted the sample code into my own project (ViewController.h/.m) and got the 'No suitable decoder error'. Same code, and as far as I can tell, same build settings?

from lzmasdkobjc.

OlehKulykov avatar OlehKulykov commented on June 25, 2024

Yes, problem in stripping big half of c++ code without initializing static vars.
Solution found - make framework, add them to embeded frameworks list.
If it's time critical for you, you could build and link manually. Build command: xcodebuild -configuration Release -project ios.xcodeproj -target MakeLzmaSDKObjCFramework -sdk iphoneos9.1 clean build than add universal LzmaSDKObjC.framework to the embeded frameworks.
screen shot
Next step - make this automatically.

from lzmasdkobjc.

OlehKulykov avatar OlehKulykov commented on June 25, 2024

Hello, created cocoapod with dynamic framework, you could use it.

use_frameworks!
platform :ios, '8.0'

pod 'LzmaSDKObjC', :inhibit_warnings => true

from lzmasdkobjc.

skauthner avatar skauthner commented on June 25, 2024

Awesome, thanks, I'll give this a try!

On Dec 16, 2015, at 22:59, Oleh [email protected] wrote:

Hello, created cocoapod with dynamic framework, you could use it.

use_frameworks!
platform :ios, '8.0'

pod 'LzmaSDKObjC', :inhibit_warnings => true

Reply to this email directly or view it on GitHub.

from lzmasdkobjc.

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.