iOS Build Fails Due to Missing .xcframework in Local Flutter Plugin (gt4_flutter_plugin) #3077
Replies: 1 comment
-
Hello @omar-extsy, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
add gt4_flutter_plugin: ^0.1.4 plugin to your flutter project and start a new build through code magic
I am using a local Flutter plugin (gt4_flutter_plugin) located at plugins/gt4_flutter_plugin inside my project.
The GTCaptcha4.xcframework is placed under plugins/gt4_flutter_plugin/ios/Libraries/GTCaptcha4.xcframework.
I have already updated the pubspec.yaml to point to the local plugin.
I also updated the Podfile to include the proper FRAMEWORK_SEARCH_PATHS.
Locally, the build works fine in Xcode after manually linking the framework, but on Codemagic, it still fails.
Question:
How can I ensure that Codemagic includes the GTCaptcha4.xcframework during the build?
Is there a recommended way to copy or embed local .xcframework files before or during the build process in Codemagic?
If required, I am open to using custom build scripts or adjustments to Codemagic YAML or pre-build scripts.
I would appreciate any guidance on how to correctly handle this setup to make the iOS build pass on Codemagic.
Expected results
.
Actual results
it starts to throw an error
Error (Xcode): There is no XCFramework found at '//.pub-cache/git/gt4_flutter_plugin-/ios/Libraries/GTCaptcha4.xcframework'.
Build id (optional)
680f5288ce8648ea40d6e15d
Beta Was this translation helpful? Give feedback.
All reactions