Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
This repository was archived by the owner on May 15, 2025. It is now read-only.

add to CocoaPods #22

Open
Open

Description

@incanus

See also #21.

Activity

  1. incanus commented on Jan 3, 2013

    @incanus
    ContributorAuthor

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

  2. fabiomassimo commented on May 14, 2013

    @fabiomassimo

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

  3. pixelogik commented on Jul 3, 2013

    @pixelogik

    @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?

  4. fabiomassimo commented on Jul 3, 2013

    @fabiomassimo

    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;
    
  5. pixelogik commented on Jul 3, 2013

    @pixelogik

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

  6. incanus commented on Jul 3, 2013

    @incanus
    ContributorAuthor

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

  7. fabiomassimo commented on Jul 17, 2013

    @fabiomassimo

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions