Skip to content

fix(unity/ios): resolve UnityFramework module for hosted (pub.dev) installs#3

Open
jaymesC wants to merge 2 commits into
mainfrom
fix/unity-ios-framework-search-path
Open

fix(unity/ios): resolve UnityFramework module for hosted (pub.dev) installs#3
jaymesC wants to merge 2 commits into
mainfrom
fix/unity-ios-framework-search-path

Conversation

@jaymesC

@jaymesC jaymesC commented Jun 26, 2026

Copy link
Copy Markdown

Description

gameframework_unity's podspec set FRAMEWORK_SEARCH_PATHS to
"${PODS_ROOT}/../.symlinks/plugins/*/ios", but Xcode does not expand a
single * glob in search paths. So the Swift compiler couldn't find the
UnityFramework module vendored by the consumer plugin, and any project
depending on the published package failed to build for iOS:

Swift Compiler Error: Unable to resolve module dependency: 'UnityFramework' import UnityFramework ​

It only worked locally because game sync plants a symlink inside this pod's
own dir (PODS_TARGET_SRCROOT) — which never happens for hosted (pub.dev)
installs.

Fix

Use Xcode's recursive ** syntax, which resolves to the consumer plugin's
ios/ dir regardless of plugin name — no game sync symlink, no Podfile hack:

​```diff

  • "${PODS_ROOT}/../.symlinks/plugins/*/ios"
  • "${PODS_ROOT}/../.symlinks/plugins/**"
    ​```

Verification

Built the gameframework-unity-demo example for an iOS device against the
hosted-style dependency with a stock Podfile and no symlink
✓ Built Runner.app, with UnityFramework embedded and linked.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature
  • 💥 Breaking change

jaymesC and others added 2 commits June 26, 2026 13:47
Bump version and add CHANGELOG entry for the iOS FRAMEWORK_SEARCH_PATHS
fix so the corrected podspec can be published to pub.dev (0.0.3 cannot be
re-published).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant