You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ios): ability to link local spm packages (facebook#54405)
Summary:
While working on local project in monorepo, I found that `spm_dependency` utility available in CocoaPods does not support local SPM packages, assuming they always come from remote.
This change extends it so that `url` can also be a local path:
```ruby
spm_dependency(s,
url: File.join(__dir__, 'shared'),
requirement: {},
products: ['FooModule']
)
```
In the above example, `shared` folder contains a SPM project.
I don't have opinions on the API design here, I am also happy to create `spm_local_dependency` utility in order to clean up the API design.
## Changelog:
[iOS] - Allow linking local SPM packages in CocoaPods
Test Plan: Add local Swift Package to your CocoaPods podspec, then run `pod install`. You should see the project in your Xcode.
Reviewed By: cipolleschi
Differential Revision: D86208056
Pulled By: sbuggay
0 commit comments