Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add to CocoaPods #22

Open
incanus opened this issue Sep 11, 2012 · 7 comments
Open

add to CocoaPods #22

incanus opened this issue Sep 11, 2012 · 7 comments

Comments

@incanus
Copy link
Contributor

incanus commented Sep 11, 2012

See also #21.

@incanus
Copy link
Contributor Author

incanus commented Jan 3, 2013

Someone added this for us per CocoaPods/Specs@e93400a Need to check on it.

@fabiomassimo
Copy link

It turns out this error for [stream readDataOfLength:info.length]; No visible @interface

@pixelogik
Copy link

@fabiomassimo I have the same issue ( [stream readDataOfLength:info.length]; No visible @interface). Do you know a fix for this? Seems SimpleKML in CocoaPods is not using the right version of Objective-Zip?

@fabiomassimo
Copy link

I've solved by added this snippet of code in ZipReadStream.m:

- (NSData *)readDataOfLength:(NSUInteger)length {
NSMutableData *data = [NSMutableData dataWithLength:length];
int bytes = unzReadCurrentFile(_unzFile, [data mutableBytes], (unsigned)length);
if (bytes < 0) {
    NSString *reason= [NSString stringWithFormat:@"Error in reading '%@' in the zipfile", _fileNameInZip];
    @throw [[[ZipException alloc] initWithError:bytes reason:reason] autorelease];
}

[data setLength:bytes];
return data;
}

And obviously in ZipReadStream.h:

- (NSData *)readDataOfLength:(NSUInteger)length;

@pixelogik
Copy link

Cool, thanks! I just commented the code because I am not using ZIPs after all. But still, good to have this option.

@incanus
Copy link
Contributor Author

incanus commented Jul 3, 2013

I'm not actively maintaining the version in CocoaPods (and I didn't add it). Thanks for looking into this.

@fabiomassimo
Copy link

Another strange behavior in import from cocoa pods.
Every time I trigger a pod install or pod update i have this error:
libxml/tree.h file not found
I've to added manually in Simple KML Header source path this string
$(SDKROOT)/usr/include/libxml2
Anyone have founded a better solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants