"cannot access UIApplicationDelegate" error when building an iOS-MOE project
See original GitHub issueI’m trying to run ios-moe:moeLaunch
task, btw it worked with some previous snapshot builds of libgdx 1.9.5.
$ ./gradlew ios-moe:moeLaunch
Configuration on demand is an incubating feature.
:ios-moe:copyNatives
:core:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:core:compileRetrolambdaMain UP-TO-DATE
:core:processResources UP-TO-DATE
:core:classes
:core:jar UP-TO-DATE
:ios-moe:compileJava
…/ios-moe/src/…/IOSMoeLauncher.java:10: error: cannot access UIApplicationDelegate
public class IOSMoeLauncher extends IOSApplication.Delegate {
^
class file for apple.uikit.protocol.UIApplicationDelegate not found
…/ios-moe/src/…/IOSMoeLauncher.java:16: error: method does not override or implement a method from a supertype
@Override
^
2 errors
Relevant code (IOSMoeLauncher.java):
package …;
import com.badlogic.gdx.backends.iosmoe.IOSApplication;
import com.badlogic.gdx.backends.iosmoe.IOSApplicationConfiguration;
import org.moe.natj.general.Pointer;
import ios.foundation.NSAutoreleasePool;
import ios.uikit.c.UIKit;
public class IOSMoeLauncher extends IOSApplication.Delegate {
protected IOSMoeLauncher(Pointer peer) {
super(peer);
}
@Override
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
config.useAccelerometer = false;
return new IOSApplication(new Ios…Game(), config);
}
public static void main(String[] argv) {
NSAutoreleasePool pool = NSAutoreleasePool.alloc();
UIKit.UIApplicationMain(0, null, null, IOSMoeLauncher.class.getName());
pool.dealloc();
}
}
(irrelevant parts replaced by …)
Version of LibGDX and/or relevant dependencies
1.9.5-SNAPSHOT, more precisely:
gdx-backend-moe-1.9.5-20161009.153444-11.jar
gdx-1.9.5-20161009.153345-11.jar
affected platforms
- Android
- iOS (robovm)
- iOS (MOE)
- HTML/GWT
- Windows
- Linux
- MacOS
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
When building my existing project … | Apple Developer Forums
When building my existing project after opening, I get error in AppDelegate.swift ... UIApplicationDelegate { <"Thread 1: signal SIGABRT">.
Read more >LibGDX Application does not start - Support - Multi-OS Engine
Thanks to this tutorial, my project was successfully build as MOE project and iOS simulator showed up. Configuration on demand is an incubating ......
Read more >[Solved]-Indoor positioning on iOS with Core Location - not accurate?
But ios LocationService will not use that iBeacons. So either use iBeacons or forget your project. There is no well working solution for...
Read more >Can't find AppDelegate.m in xcode - Stack Overflow
I search on google too but as I really don't understand anything to Xcode (except from building my Unity Project), I don't understand...
Read more >LABCESEX1 | PDF | Shader | Ios - Scribd
fix(missing diamond op): causes a gradle compile error since the project utilizes ... Let's see if we can get Travis to build our...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yeah, the problem is still there. Nothing changed.
But I can’t reopen, there’s no such button. @Tom-Ski
Tested against snapshot OK, please reopen if you still have problems with latest snapshot.