Skip to content

Commit

Permalink
Merge pull request #11093 from igor-makarov/fix-swift-static-xcframework
Browse files Browse the repository at this point in the history
Fix static Swift XCFramework import paths
  • Loading branch information
igor-makarov committed Feb 25, 2022
2 parents b6ef783 + 273ac32 commit 36753b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Kanstantsin Shautsou](https://github.com/KostyaSha)
[#11010](https://github.com/CocoaPods/CocoaPods/issues/11010)

* Fix static Swift XCFramework import paths.
[Igor Makarov](https://github.com/igor-makarov)
[#11058](https://github.com/CocoaPods/CocoaPods/issues/10058)
[#11093](https://github.com/CocoaPods/CocoaPods/pull/11093)

## 1.11.2 (2021-09-13)

##### Enhancements
Expand Down
2 changes: 2 additions & 0 deletions lib/cocoapods/target/build_settings.rb
Expand Up @@ -938,6 +938,8 @@ def other_swift_flags_without_swift?
define_build_settings_method :swift_include_paths, :build_setting => true, :memoized => true, :sorted => true, :uniqued => true do
paths = dependent_targets.flat_map { |pt| pt.build_settings[@configuration].swift_include_paths_to_import }
paths.concat swift_include_paths_to_import if non_library_xcconfig?
vendored_static_library_search_paths = dependent_targets.flat_map { |pt| pt.build_settings[@configuration].vendored_static_library_search_paths }
paths.concat vendored_static_library_search_paths
paths.concat ['$(PLATFORM_DIR)/Developer/usr/lib'] if should_apply_xctunwrap_fix?
paths
end
Expand Down
Expand Up @@ -211,7 +211,7 @@ class BuildSettings
hash = generator.generate.to_hash
hash['SYSTEM_FRAMEWORK_SEARCH_PATHS'].should.be.nil
hash['LIBRARY_SEARCH_PATHS'].should.not.include '"$(PLATFORM_DIR)/Developer/usr/lib"'
hash['SWIFT_INCLUDE_PATHS'].should.be.nil
hash['SWIFT_INCLUDE_PATHS'].should.not.include '"$(PLATFORM_DIR)/Developer/usr/lib"'
end

it 'saves the xcconfig' do
Expand Down

0 comments on commit 36753b1

Please sign in to comment.