Skip to content

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

Merged
jaymesC merged 4 commits into
mainfrom
fix/unity-ios-framework-search-path
Jun 30, 2026
Merged

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

Conversation

@jaymesC

@jaymesC jaymesC commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

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 4 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>
@jaymesC jaymesC merged commit 6c902dc into main Jun 30, 2026
19 checks passed
jaymesC added a commit that referenced this pull request Jul 2, 2026
fix(unity/ios): resolve UnityFramework module for hosted (pub.dev) installs
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