Comments (16)
When you use https://github.com/jverkoey/iOS-Framework, that will work pretty much like "real" frameworks.
cc @alloy
from core.
Marked as discussion.
from core.
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.
from core.
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.
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.
@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.
@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.
@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
Which was build using the approach linked above. I think this is different from the "fake framework" approach you are talking about.
from core.
@neonichu Interesting! I will lookup a specific case with RubyMotion and verify if that’s still the case or not.
from core.
@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.
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.
@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.
@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.
So should we close this issue?
from core.
@neonichu Gotcha. Thanks for the feedback!
@irrationalfab Aye, let’s let user keep on making fake frameworks :)
from core.
lol
from core.
Related Issues (20)
- warning: URI.escape is obsolete HOT 7
- unable to use plugin slather inside Cocoapods HOT 1
- [Discussion] Improve checksum for git branch based spec HOT 1
- Spelling mistake: perfomed HOT 2
- CDNSource: delete a podspec if corruption is detected HOT 2
- pod spec lint warns about 'readme' and 'changelog' attributes HOT 1
- Are you using a global gitignore to ignore the vendor directory? HOT 1
- CDN_source does not handle http302 response codes
- Please I need clear explanation on how can I change my cocoapods of version 1.9.3 to 1.10.1 version. I have researched online and done update, uninstall and reinstall, yet it didn't work. HOT 2
- Latest version 1.10.1 has CVE-2020-8165 alert HOT 1
- can it support the version 6.0 for activesupport ? HOT 1
- pod install - error message "Couldn't determine repo name for URL ..." on private repo via SSH HOT 10
- Error with pod install: userinfo not supported. [RFC3986] HOT 9
- if this is a bug or Comment error in the class Pod::Podfile::TargetDefinition HOT 3
- [Discussion] Is it possible to remove "PODFILE CHECKSUM" from the lock files? HOT 4
- [Bug] Dependencies of Target B Linking to Target A in a Two Target Project HOT 1
- Documentation Typo: "will be ran" -> "will be run"
- Specification module name HOT 1
- Missing spec repos on Podfile.lock HOT 2
- Version Comparison Issue with Mixed Numeric and String Prerelease Segments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.