Coder Social home page Coder Social logo

Comments (16)

neonichu avatar neonichu commented on June 17, 2024

When you use https://github.com/jverkoey/iOS-Framework, that will work pretty much like "real" frameworks.

cc @alloy

from core.

fabiopelosin avatar fabiopelosin commented on June 17, 2024

Marked as discussion.

from core.

fabiopelosin avatar fabiopelosin commented on June 17, 2024

I'm of the opinion that this is not a decision that CocoaPods should be taking on behalf of the users.

For context @orta's and my #44 (comment) reactions.

badass

from core.

alloy avatar alloy commented on June 17, 2024

As I see it, it’s not a matter of opinion. They are not frameworks and only Xcode.app (the UI) accepts this. If you try to use the framework related options with clang it will laugh at you ;) So, we should disallow them, instead they should use vendored_library.

(At least this used to be the case, it’s worthwhile to verify it’s still the case.)

from core.

alloy avatar alloy commented on June 17, 2024

An alternative is that we handle vendored_frameworks on iOS as vendored_libraries, although this would only permeate the ‘problem’ of people thinking that fake frameworks are ‘just as good’.

from core.

neonichu avatar neonichu commented on June 17, 2024

@alloy Did not know that, I will verify if that is still the case and report back.

If it is, then this should indeed be changed.

from core.

alloy avatar alloy commented on June 17, 2024

@neonichu That would be awesome, thanks. This problem comes up, for instance, with RubyMotion where we use normal clang linker options to build an app. Very frustrating :)

from core.

neonichu avatar neonichu commented on June 17, 2024

@alloy This seems to work fine:

clang -ObjC -arch armv7 -include Test-Prefix.pch -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -framework Foundation -framework UIKit -F. -framework ContentfulDeliveryAPI -o Test XXAppDelegate.o main.o

using https://github.com/contentful/contentful.objc/tree/master/Examples/UFO/Distribution/ContentfulDeliveryAPI.framework

Which was build using the approach linked above. I think this is different from the "fake framework" approach you are talking about.

from core.

alloy avatar alloy commented on June 17, 2024

@neonichu Interesting! I will lookup a specific case with RubyMotion and verify if that’s still the case or not.

from core.

neonichu avatar neonichu commented on June 17, 2024

@alloy You should take a look at https://github.com/jverkoey/iOS-Framework, he is describing different approaches for generating iOS frameworks there.

from core.

neonichu avatar neonichu commented on June 17, 2024

Just for reference, using the framework from https://github.com/CocoaPods/Specs/blob/master/Parse-iOS-SDK/1.2.18/Parse-iOS-SDK.podspec for example will lead to lots of build errors, so I guess depending on the approach one uses to build the framework, the results will differ wildly.

from core.

alloy avatar alloy commented on June 17, 2024

@neonichu I was definitely able to build with the Google Maps SDK, which used to cause problems.

Can you paste the errors you are seeing with Parse? (I know it’s a bit problematic in that it requires the Facebook SDK when you use the -ObjC flag.)

from core.

neonichu avatar neonichu commented on June 17, 2024

@alloy Yeah, that was actually the problem. It builds just fine when the FB SDK is available or when I take out -ObjC.

from core.

fabiopelosin avatar fabiopelosin commented on June 17, 2024

So should we close this issue?

from core.

alloy avatar alloy commented on June 17, 2024

@neonichu Gotcha. Thanks for the feedback!

@irrationalfab Aye, let’s let user keep on making fake frameworks :)

from core.

fabiopelosin avatar fabiopelosin commented on June 17, 2024

lol

from core.

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.