question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"cannot access UIApplicationDelegate" error when building an iOS-MOE project

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
magicgoosecommented, Oct 29, 2016

Oh yeah, the problem is still there. Nothing changed.

But I can’t reopen, there’s no such button. @Tom-Ski

0reactions
Tom-Skicommented, Oct 28, 2016

Tested against snapshot OK, please reopen if you still have problems with latest snapshot.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found