-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linter] Disallow the use of the vendored_frameworks for iOS specs #91
Comments
When you use https://github.com/jverkoey/iOS-Framework, that will work pretty much like "real" frameworks. cc @alloy |
Marked as discussion. |
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. |
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 (At least this used to be the case, it’s worthwhile to verify it’s still the case.) |
An alternative is that we handle |
@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. |
@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 :) |
@alloy This seems to work fine:
Which was build using the approach linked above. I think this is different from the "fake framework" approach you are talking about. |
@neonichu Interesting! I will lookup a specific case with RubyMotion and verify if that’s still the case or not. |
@alloy You should take a look at https://github.com/jverkoey/iOS-Framework, he is describing different approaches for generating iOS frameworks there. |
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. |
@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.) |
@alloy Yeah, that was actually the problem. It builds just fine when the FB SDK is available or when I take out -ObjC. |
So should we close this issue? |
@neonichu Gotcha. Thanks for the feedback! @irrationalfab Aye, let’s let user keep on making fake frameworks :) |
lol |
originally reported by @alloy in #44
The text was updated successfully, but these errors were encountered: