Skip to content
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

Fix static Swift XCFramework import paths #11093

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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