Open staatzstreich opened 2 years ago
Does your project include GameController.framework in the dependency list?
Hi,
i had GameController.framework already included... and I can build the project. After reading your answer I also include what you suggest... Have no luck with "running" the app ... it build, start simulator but after a few seconds it stops with a "Thread 1: EXC_BAD_ACCESS (code=1, address=0x48)" at "UIApplicationMain" in "main.m"... same as with only GameController.framework included...
Hmm, I couldn't reproduce your issue unfortunately. I think the error says the linker misses GameController.framework.
As I said... I could build the project without any error, but running the app with the simulator ended with => "Thread 1: EXC_BAD_ACCESS (code=1, address=0x48)" at "UIApplicationMain" in "main.m"...
That is out of my experience.... I think i will learn more game programming with Mac and WebAssembly first .... thanks for helping out :)
OK so now the building succeeds and you see EXC_BAD_ACCESS. However, I couldn't reproduce this either.
What about actual devices instead of an emulator? And, can I see the error message's detail more?
Started a fresh project, included all Frameworks that you mentioned, including mine. Added an iPad as device (now I have an free developer account :) ) building succeeds and then there is the same error but this time it is better to see what happens in the debugger:
Here is the func:
where "emptyPile" is global:
var emptyPile *ebitenImage
With Webassembly this works fine on my iPad... you can try at => https://staatzstreich.de/patience2
i will investigate that....
I have created a new project based on the runner example and with deeper investigation of the go-inovation example and at the end I have a project that run with simulator and my own device.
I will take this as a starting point for further coding.
Ticket can be closed. Thanks for pointing in the right direction.
I had this exact same issue. Could not get it to work with a fresh xcode project, but worked fine by adapting the go-innovation repo.
I included all the frameworks, but hit the same cryptic error as above in the simulator.
Webasm worked fine for me as well.
I'll try a fresh project.
I created an empty Xcode project and succeeded to run with the go-inovation xcframework.
Also I simplified the instruction for iOS: https://ebitengine.org/en/documents/mobile.html#iOS
@briansunter Do you have more information about your issue? Stacktrace for example.
Using Mac Monterey 12.4 and Xcode Version 13.4.1 (13F100):
1.) started a new Project => iOS => App => Storyboard + Objective-C 2.) Added the "your game.xcframework" with drag and drop to the project (Check "Copy items if needed" at the dialog box that appear) 3.) Modified the ViewController.h to:
4.) and the ViewController.m is unedited:
At Storyboard the ViewController has "Is Initial View Controller" checked at the Attributes Inspector, as the documentation say's.
Building the project for the Simulator resulted in following error messages:
best, Michael