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

cmd/ebitenmobile: compile error for iOS #3092

Closed
1 of 11 tasks
hajimehoshi opened this issue Sep 11, 2024 · 1 comment
Closed
1 of 11 tasks

cmd/ebitenmobile: compile error for iOS #3092

hajimehoshi opened this issue Sep 11, 2024 · 1 comment

Comments

@hajimehoshi
Copy link
Owner

Ebitengine Version

df33bc3

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

go version go1.22.6 darwin/arm64

What steps will reproduce the problem?

Install ebitenmobile

go install ./cmd/ebitenmobile

and in go-inovation, run

ebitenmobile bind -target ios -o ./mobile/ios/Mobile.xcframework ./mobile

What is the expected result?

The compilation succeeds

What happens instead?

The compilation fails

gomobile: ios/arm64: go build -buildmode=c-archive -o /var/folders/cj/73zbb35j0qx5t4b6rnqq0__h0000gn/T/gomobile-work-1418555273/Mobile-ios-arm64.a ./gobind failed: exit status 1
# gobind/gobind
mobileebitenviewcontroller_ios.m:23:58: error: no type or protocol named 'EbitenmobileviewRenderer'
mobileebitenviewcontroller_ios.m:44:40: error: passing 'MobileEbitenViewController *__strong' to parameter of incompatible type 'id<EbitenmobileviewSetGameNotifier> _Nullable' [-Werror]
gobind/Ebitenmobileview.objc.h:41:105: note: passing argument to parameter 'setGameNotifier' here
mobileebitenviewcontroller_ios.m:54:40: error: passing 'MobileEbitenViewController *__strong' to parameter of incompatible type 'id<EbitenmobileviewSetGameNotifier> _Nullable' [-Werror]
gobind/Ebitenmobileview.objc.h:41:105: note: passing argument to parameter 'setGameNotifier' here
mobileebitenviewcontroller_ios.m:152:3: error: call to undeclared function 'EbitenmobileviewSetRenderer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

Anything else you feel useful to add?

The compilation succeeds with Ebitengine 2.7.

@hajimehoshi hajimehoshi added this to the v2.8.0 milestone Sep 11, 2024
@hajimehoshi hajimehoshi removed this from the v2.8.0 milestone Sep 11, 2024
@hajimehoshi
Copy link
Owner Author

NVM, this happens when go-inovation's Ebitengine version and ebitenmobile's Ebitengine version don't match.

@hajimehoshi hajimehoshi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant