Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-pnpm-podfile-realpath.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@voltra/expo-plugin': patch
---

Fix `pod install` failing with "multiple dependencies with different sources for VoltraWidget" when using pnpm or bun (symlinked node_modules). The plugin now resolves the VoltraWidget path to its real path so CocoaPods sees a single source.
2 changes: 1 addition & 1 deletion packages/expo-plugin/src/ios-widget/podfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target '${targetName}' do
library_name = 'voltra'
voltra_module = JSON.parse(\`npx expo-modules-autolinking search -p apple --json --project-root #{project_root}\`)
podspec_dir_path = File.join(voltra_module[library_name]['path'], 'ios')

podspec_dir_path = File.realpath(podspec_dir_path) if File.exist?(podspec_dir_path)
podspec_dir_path = Pathname.new(podspec_dir_path).relative_path_from(Pathname.new(__dir__)).to_path

pod 'VoltraWidget', :path => podspec_dir_path
Expand Down
Loading