godot_ios_plugin icon indicating copy to clipboard operation
godot_ios_plugin copied to clipboard

issue building on xcode 14

Open yan88a opened this issue 3 years ago • 9 comments

Hi! trying to build a plugin will generate a bunch of errors - "could not build module 'Darwin'" / "could not build module 'coreFoundation'"

anyone can help with that?

yan88a avatar Nov 17 '22 14:11 yan88a

Hi @yan88a , have u fixed the problem? can you share the solution ?

JadeGeek avatar Jan 05 '23 03:01 JadeGeek

@JadeGeek, unfortunately no.. couldnt get the plugin template to work no matter what i tried... wrote editor extensions (custom build templates) instead... (which is by no means not a good solution... )

yan88a avatar Jan 05 '23 09:01 yan88a

@JadeGeek @yan88a We are facing similar problem right now as well. Any update about this will be helpful and appreciated. We are using XCode 14 and trying to build plugin for godot 4.0.

saletrak avatar Jan 06 '23 14:01 saletrak

Same problem here

WoodShack avatar Jun 09 '23 14:06 WoodShack

Yes, same stuff. 3.6.beta2.

ksvslk avatar Jun 17 '23 21:06 ksvslk

@ksvslk I did get a GDnative iOS project compiling.

https://github.com/WoodShack/godot-local-notification

At the bottom of the readme it their are instructions on how to compile the iOS portion.

You should be able to change the iOS portion to do what you need.

WoodShack avatar Jun 17 '23 21:06 WoodShack

@ksvslk I did get a GDnative iOS project compiling.

https://github.com/WoodShack/godot-local-notification

At the bottom of the readme it their are instructions on how to compile the iOS portion.

You should be able to change the iOS portion to do what you need.

I'm not sure I understand correctly this. I should make a GDNative module instead of iOS plugin? What are the differences here? Is it more work?

ksvslk avatar Jun 18 '23 08:06 ksvslk

The problem was that the header search paths included some paths that are conflicting with godot files or something :) It was fixed: https://github.com/godotengine/godot-ios-plugins/pull/35/commits/dea1966f9ca8831968704d04f482e969ed00c9ff

Current example still has some paths in headers search that are in conflict. So remove those in your Xcode project. The final Header Search Paths should look like this:

$(SRCROOT)/godot
$(SRCROOT)/godot/platform/iPhone
$(SRCROOT)/

Do this and hopefully print out "1" with the plugin!

ksvslk avatar Jun 18 '23 18:06 ksvslk

@ksvslk Thank you for your suggestion. After removing the conflicting paths and update the header, I was able to build the template.

HieuTNg avatar Oct 07 '24 17:10 HieuTNg