Skip to content
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

Godot 4.1.1 can't export build ios / xcode project - a) [Export Icons]: Invalid icon (icons/iphone_120x120); B) undefined symbols; Linker command failed with exit code 1 - Apple Silicon #82551

Closed
LeandroHPerez opened this issue Sep 29, 2023 · 3 comments
Labels

Comments

@LeandroHPerez
Copy link

LeandroHPerez commented Sep 29, 2023

Godot version

v4.1.1.stable.official [bd6af8e] - (without .net) - MacOs version

System information

Macbook Apple M2 Pro - MacOs Sonoma 14.0

Issue description

Tried to export two diference projects for iOS results in "strange errors" (i tried anothers projects too).
Bug one:
* Project export for platform: ios iOS - & Failed.
•[Export Icons]: Invalid icon (icons/iphone_120x120)

Bug two:
a) Undefined symbols:
b) Linker command failed with exit code 1 (use -v to see invocation)

Steps to reproduce

Environment:
Macbook Pro M2 Pro
Xcode Version 15.0 (15A240d)
Godot 4.1.1 regular (without .net)

1- Open any minimal Godot 4.1.1 project
2- In Godot: Project > Export > Choose "iOS" updated template/preset
3- Type an valid "app store team id", i've used this method to get my free key -> Session Get the team ID in link: https://medium.com/@phillipdev/exporting-to-ios-using-godot-4-1-for-free-ed99b8f594b7

4- type bundle identifier
5- type an Export path

image

6- Now, click in "Export project" > "Save", for me is the first bug found:

Bug one:
* Project export for platform: ios iOS - & Failed.
•[Export Icons]: Invalid icon (icons/iphone_120x120)

image

7- Now, choose an image for every field of icons, because what warning will be ocour for every field....
Do like this:
image

8 - Now, finally, click in "Export project" > "Save"
image

9- Open exported project in Xcode: open file my_file_name.xcodeproj

10- In Xcode try build and see errors like this.

Bug two:
a) Undefined symbols:
b) Linker command failed with exit code 1 (use -v to see invocation)

image

Attached:
Zipped Godot Project
Two image files, each one with 1024x1024 size with extensions: .png and .jpg. I tried use this images in bug step 7.

Minimal reproduction project

Tappy Plane v6.zip

@bruvzg
Copy link
Member

bruvzg commented Sep 29, 2023

Duplicate of #82454

Xcode Version 15.0 (15A240d)

Xcode 15 dropped iOS 11 support and have introduced a new linker which is having issues with some of Godot parts. You can use Xcode 14 or build a custom export template with #82458 changes applied, see https://docs.godotengine.org/en/latest/contributing/development/compiling/compiling_for_ios.html

@LeandroHPerez
Copy link
Author

LeandroHPerez commented Sep 29, 2023

Thanks for fast reply, like an ninja @bruvzg bruvzg
Will this problem be fixed in the next version of Godot?
For me and certainly most peoples this is a big fix that helps a lot.

@akien-mga
Copy link
Member

Duplicate of #82454.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants