Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Extracting iOS Framework within Zip file via editor script

Discussion in 'Scripting' started by adam-goodchild-omobile, Feb 1, 2019.

  1. adam-goodchild-omobile

    adam-goodchild-omobile

    Joined:
    Jan 12, 2017
    Posts:
    13
    I am having an issue trying to extract an iOS framework within a zip file via an editor script. I can extract the zip file no problem and it generates the contents, however when it tries to extract the iOS framework it has an issue trying to extract a Headers folder, which is actually an Alias (on Macs). Instead it thinks the Headers folder is a file, and just creates a file instead.

    The zip file is here:
    https://github.com/Estimote/iOS-SDK/archive/4.26.3.zip
    And you can find the framework within the EstimoteSDK folder.

    I am using this library to perform the extraction from the zip:
    https://github.com/r2d2rigo/dotnetzip-for-unity

    Any help would be appreciated.
     
  2. psydent

    psydent

    Joined:
    Feb 11, 2013
    Posts:
    12
    It's an iOS framework, why would you want to extract it? Just use it as a plugin.