-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Prevent embedding static frameworks #490
Prevent embedding static frameworks #490
Conversation
Resolves tuist#454 - All `FrameworkNodes` (i.e. prebuilt frameworks) were being embedded regardless of their linkage - This check was redundant as there was a more general check for `PrecompiledNode` which happens to be the super class of `FrameworkNode` which took into account the framework linkage - To resolve this issue it was suffice to remove the redundant check Test Plan: - Generate `fixtures/ios_app_with_static_frameworks` via running `tuist generate` - Verify the generated project doesn't embed `PrebuiltStaticFramework` - Verify the generated project builds successfully
@@ -309,15 +309,6 @@ class Graph: Graphing { | |||
|
|||
references.append(contentsOf: otherTargetFrameworks) | |||
|
|||
/// Pre-built frameworks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 299 takes care of embedding pre-compiled nodes (which include FrameworkNode
) while checking their linkage (dynamic vs static)
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #490 +/- ##
=========================================
- Coverage 92.6% 92.6% -0.01%
=========================================
Files 347 347
Lines 17799 17815 +16
=========================================
+ Hits 16483 16497 +14
- Misses 1316 1318 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch & fix @kwridan
Thanks a lot! |
Resolves #454
Short description 📝
Precompiled static frameworks were being embedded when generating projects.
Solution 📦
Notes 📝:
FrameworkNodes
(i.e. prebuilt frameworks) were being embedded regardless of their linkagePrecompiledNode
which happens to be the super class ofFrameworkNode
which took into account the framework linkageImplementation 👩💻👨💻
Test Plan 🛠:
fixtures/ios_app_with_static_frameworks
via runningtuist generate
PrebuiltStaticFramework