Comments (5)
- Check file path exists.
- 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.
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.
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.
Next step - make this automatically.
from lzmasdkobjc.
Hello, created cocoapod with dynamic framework, you could use it.
use_frameworks!
platform :ios, '8.0'
pod 'LzmaSDKObjC', :inhibit_warnings => true
from lzmasdkobjc.
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)
- Being unable to install in a objc project, no swift inside. HOT 2
- Feature request: function to uncompress only one file HOT 2
- No compressed file size metadata available?
- Encounter error SZ_ERROR_INPUT_EOF
- Extraction of one item in continuous archive leads to extraction of all items HOT 5
- Extracting item from archive to NSData object (without saving it to disk) HOT 1
- LZMA SDK has new version 18.05
- Not 2.0.19 in cocoapods HOT 1
- Extract zip data from nsdata HOT 6
- Swift compiler warnings (Xcode 10.1, Swift 4.2) HOT 1
- Unarchive .7z file works randomly - LZMA DEBUG 72: ERROR: code = 1, HOT 2
- check .7z is encrypted HOT 3
- How to add files to an already existed .7z file?
- use_frameworks! HOT 1
- How to interrupt the compression process? HOT 2
- 。。。 HOT 1
- Can the file size be over 4g?
- About 7z-MultiVolume
- How to know a 7z file is password protected HOT 1
- Hello, how do I use the sdk to do split volume compression HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lzmasdkobjc.