Code Monkey home page Code Monkey logo

Comments (7)

1024jp avatar 1024jp commented on May 24, 2024

I personally don't have any experience making such frameworks on Xcode.
However, as long as I read the page in stack overflow, I suppose you need to create your umbrella file manually.
An umbrella file should be just a normal header file in which all public import, include etc, are written.

from gzipswift.

jamesweb1 avatar jamesweb1 commented on May 24, 2024

But what is umbrella file? Where should I find it in Xcode? I only know how to add "objective-c bridging header" in build setting. I have read this article in Apple developer website: https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html
However I only get the concept in "Importing Code from Within the Same App Target". The second part "Importing Code from Within the Same Framework Target" makes me confused. It said "In your umbrella header file, import every..." But apple didn't tell me where it is? where I should set this? If someone knows, please give me some hint, thanks.

from gzipswift.

1024jp avatar 1024jp commented on May 24, 2024

As I mentioned, an umbrella file is just a normal header file. Just add a normal objective-C header file to your project.

Actually, this issue tracker is not for all Xcode or programming issues but just for the NSData+GZIP library. You'd better to ask it somewhere more suitable. Or to google words like "umbrella file", Xcode, framework etc.

from gzipswift.

jamesweb1 avatar jamesweb1 commented on May 24, 2024

Even if include #include <zlib.h> in umbrella header still cannot work in framework. Because framework cannot include non-modular header, Xcode will show this message. I have a similar question here:CocoaPods/CocoaPods#3666

from gzipswift.

stephenyao avatar stephenyao commented on May 24, 2024

Also having this issue, have you found a resolution?

from gzipswift.

1024jp avatar 1024jp commented on May 24, 2024

I'm not sure if this helps, but this is how I use this extension in my framework:
screen shot 2016-05-31 at 19 40 34

The other things are the same.
Link binary with libz.tbd and set Swift compiler import path correctly.

from gzipswift.

1024jp avatar 1024jp commented on May 24, 2024

Now you can try swift3 branch that supports framework.

from gzipswift.

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.