Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use sharedDarwinSource for iOS/macOS podspec resolution#26

Merged
sjoenk merged 2 commits intomainfrom
bugfix/25-ios-build-fails-with-module-audio_decoder-not-found-when-used-as-pub-dependency
Feb 15, 2026
Merged

Use sharedDarwinSource for iOS/macOS podspec resolution#26
sjoenk merged 2 commits intomainfrom
bugfix/25-ios-build-fails-with-module-audio_decoder-not-found-when-used-as-pub-dependency

Conversation

@sjoenk
Copy link
Owner

@sjoenk sjoenk commented Feb 15, 2026

Summary

  • Replace platform-specific podspecs in ios/ and macos/ with a single shared podspec in darwin/
  • Add sharedDarwinSource: true to both iOS and macOS plugin config in pubspec.yaml
  • The ../darwin/Classes/**/* source_files path in the old podspecs failed to resolve through CocoaPods' symlink chain when consumed as a pub dependency, causing Module 'audio_decoder' not found

Fixes #25

Test plan

  • Unit tests pass (54/54)
  • Integration tests pass on iOS simulator (23/23)
  • flutter build ios --simulator succeeds
  • pod install resolves to darwin/ path

Replace platform-specific podspecs in ios/ and macos/ with a single
shared podspec in darwin/. The relative `../darwin/Classes/**/*` path
in the old podspecs failed to resolve through CocoaPods' symlink chain
when consumed as a pub dependency.

Fixes #25
Remove leftover ios/ and macos/ directories (Assets, Resources,
PrivacyInfo.xcprivacy) that are no longer referenced after the
podspec consolidation to darwin/. Update podspec version from
0.0.1 to 0.7.0 to match pubspec.yaml.
@sjoenk sjoenk merged commit 5ef113a into main Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS build fails with 'Module audio_decoder not found' when used as pub dependency

1 participant