New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting an iOS plugin with debug configuration causes symbol not found compile error #91583
Comments
Same issue. Official ios Plugins was tested with Godot v4.2.2.stable.official, and asset store ones (share plugin) System: The build failed while building archive in Godot. In Xcode, failed during build (when 'Export Project only' is Enabled from Godot export settings).
This is while building on Godot. But Xcode gave extra details:
|
@TheOathMan I think the share plugin has an other issue. According to the error message it seems like that the static library for SharePlugin.release.a is missing. Since I am currently focusing on the iOS plugin build process, I may be able to help resolving the issue here. |
The issue you have and the issue I have are exactly the same but the error messages isn't clear. Right now, I was able to solve your issues by declaring these macros right before I include object.h:
Which will exclude deprecated and include debug declarations. That will solve
|
@TheOathMan Thanks for clarification! This actually led me to the solution. ;) I simply needed to add the variable GCC_PREPROCESSOR_DEFINITIONS="DEBUG_ENABLED=1" in the xcodebuild commands for the debug builds. So my xcodebuild for debug framework looks like this now: xcodebuild clean archive \
-project "${xcodeproj_dir}" \
-scheme "${plugin_name}" \
-archivePath "${out_lib_dir}/ios_debug.xcarchive" \
-sdk iphoneos \
SKIP_INSTALL=NO \
GCC_PREPROCESSOR_DEFINITIONS="DEBUG_ENABLED=1" Thanks again and hope this helps to resovle your issue. |
Tested versions
v4.2.1.stable.official [b09f793]
System information
Godot v4.2.1.stable - macOS 14.4.0 - Vulkan (Mobile) - integrated Apple M2 - Apple M2 (8 Threads)
Issue description
I'm creating an iOS plugin for Godot based on the project godot-ios-inapp-review-plugin as template. I managed to build the plugin successfully using the 'release' configuration. But unfortunately i am not able to compile the resulting xcode project when exporting with 'debug' configuration. i receive following error:
I tried to resolve the issue but i am a little lost. Has anyone a hint for me?
Steps to reproduce
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: