Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
48b82de6
Commit
48b82de6
authored
Jul 30, 2017
by
Danielle Tomlinson
Committed by
Samuel Giddins
Feb 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetValidator] Allow Swift Static Libraries
parent
8307a689
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
target_validator.rb
lib/cocoapods/installer/xcode/target_validator.rb
+1
-20
No files found.
lib/cocoapods/installer/xcode/target_validator.rb
View file @
48b82de6
...
...
@@ -35,7 +35,6 @@ module Pod
verify_no_duplicate_framework_and_library_names
verify_no_static_framework_transitive_dependencies
verify_no_pods_used_with_multiple_swift_versions
verify_framework_usage
end
private
...
...
@@ -106,25 +105,7 @@ module Pod
unless
error_messages
.
empty?
raise
Informative
,
'The following pods are integrated into targets '
\
"that do not have the same Swift version:
\n\n
#{
error_messages
.
join
(
"
\n
"
)
}
"
end
end
def
verify_framework_usage
aggregate_targets
.
each
do
|
aggregate_target
|
next
if
aggregate_target
.
requires_frameworks?
aggregate_target
.
user_build_configurations
.
keys
.
each
do
|
config
|
pod_targets
=
aggregate_target
.
pod_targets_for_build_configuration
(
config
)
swift_pods
=
pod_targets
.
select
(
&
:uses_swift?
)
unless
swift_pods
.
empty?
raise
Informative
,
'Pods written in Swift can only be integrated as frameworks; '
\
'add `use_frameworks!` to your Podfile or target to opt into using it. '
\
"The Swift
#{
swift_pods
.
size
==
1
?
'Pod being used is'
:
'Pods being used are'
}
: "
+
swift_pods
.
map
(
&
:name
).
to_sentence
end
end
"that do not have the same Swift version:
\n\n
#{
error_messages
.
join
(
"
\n
"
)
}
"
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment