Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 03 14:15
    StefanOltmann opened #562
  • Feb 28 19:48
    yajirobe69 commented #561
  • Feb 28 19:48
    yajirobe69 commented #561
  • Feb 27 19:33
    yajirobe69 commented #561
  • Feb 27 19:33
    yajirobe69 commented #561
  • Feb 27 19:33
    yajirobe69 commented #561
  • Feb 27 19:32
    yajirobe69 commented #561
  • Feb 26 22:03
    yajirobe69 commented #561
  • Feb 26 22:02
    yajirobe69 commented #561
  • Feb 25 17:28
    yajirobe69 edited #561
  • Feb 24 22:21
    yajirobe69 edited #561
  • Feb 24 22:20
    yajirobe69 opened #561
  • Feb 16 21:37
    dkimitsa commented #560
  • Feb 16 14:10
    timmolter opened #560
  • Feb 16 09:54
    timmolter commented #555
  • Feb 16 09:54
    timmolter closed #555
  • Feb 16 09:54
    timmolter commented #555
  • Feb 15 13:00
    davidgiga1993 commented #555
  • Feb 13 11:25
    dkimitsa commented #555
  • Feb 13 11:19
    obigu commented #555
Wheeler Games
@wheelergames_gitlab
I'm also not seeing any crash logs in xCode
fdspbsteam
@fdspbsteam

folks, maybe you have a better approach to do that (to publish to IPA to TF)
I don't wish to add in this script username and password, maybe I can add something like this @keychain user @keychain password:

xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"

Wheeler Games
@wheelergames_gitlab
I just use the transporter app
it's a manual step and not able to run in CI if that's what you're using
fdspbsteam
@fdspbsteam
folks, when I run the ios configuration on simulator I catch up this error:
[ERROR] 21:06:00.718 Undefined symbols for architecture x86_64
Kees van Dieren
@keesvandieren
@fdspbsteam I use Fastlane deliver to upload ipa
hoangtunho2611
@hoangtunho2611

hi, please help me to call method "loadRequest" in Java code:
public native void loadRequest(GADRequest request, @Block VoidBlock1<GADRequestError> completionHandler);

rewardedAd = new GADRewardedAd("adUnitID")
rewardedAd.loadRequest(new GADRequest(), ???);

Thanks!

Berobasket
@Berobasket

@hoangtunho2611 I do it this way (tested):

private GADRewardBasedVideoAd _rewardVideoAd;
_rewardVideoAd = GADRewardBasedVideoAd.sharedInstance();
_rewardVideoAd.loadRequest( new GADRequest(), REWARDED_VIDEO_AD_UNIT_ID );

It shows that GADRewardBasedVideoAd is deprecated so I think you should do it this way (not tested):

private GADRewardedAd _rewardVideoAd;
_rewardVideoAd = new GADRewardedAd( REWARDED_VIDEO_AD_UNIT_ID );
        _rewardVideoAd.loadRequest( createGADRequest(), new VoidBlock1<GADRequestError>()
        {
            @Override
            public void invoke( GADRequestError gadRequestError )
            {

            }
        } );
hoangtunho2611
@hoangtunho2611
@Berobasket, thanks so much, I will try with your solution.
David
@davidgiga1993
What's the recommended way to display another view controller when using libgdx/robovm?
I'm trying to show the CABTMIDICentralViewController controller (https://developer.apple.com/documentation/coreaudiokit/cabtmidicentralviewcontroller)
gamethapcam
@gamethapcam
hello everyboy.. do you have a simple test for"https://github.com/dkimitsa/robovm-robopods/tree/alt/facebook/ios-login" ???
Demyan Kimitsa
@dkimitsa
@gamethapcam following official guide should work. Just follow objc code. https://developers.facebook.com/docs/facebook-login/ios/
LordTylus
@LordTylus
Hello there, I have a short question. We followed gradles recommendations and switched from the deprecated "compile" for project dependencies to "api" as it is supposed to be the equivalent to compile (just without the deprecation). However we noticed when executing createIPA via gradle that dependant modules are not built and the produced app crashes imediately. With compile it works fine. Is that intended behavior, a bug, or are we missing something?
When creating the ipa using api we just get warnings "Classpath Entry **.jar does not exist". We are now trying to run build first and then createIPA. I assumed createIPA always also did a built automatically.
Just running via RoboVM IDEA Plugin executes it correctly and builds all the dependencies correctly.
21 replies
yajirobe69
@yajirobe69
excuse the general question, but regarding this new privacy stuff with Admob/IOS - what needs to be done by us RoboVM users? Anything? Or is it, handled automatically? Some kind of prompt on first ad display "do you opt in?" etc? Can't quite find simple documentation on it...especially since we're not using native xcode/swift etc
jkazma-logisk
@jkazma-logisk
@yajirobe69 You need to prompt the user if they wanna allow tracking.
1 reply
I think if you don't do anything all your ads will default to non-personalized ads
check this link too
Wheeler Games
@wheelergames_gitlab
this was my thinking too. so if I do nothing, ads will still be visible but they won't be targeted?
I think I only make pennies per month on my ads either way so not worth putting in all the work for the targeted ones
jkazma-logisk
@jkazma-logisk
I've never tried but I think so. You can test it out.
kloylar
@kloylar

Can someone help me with this, in the RoboVM console this error appears randomly, I suppose it is from some ads network task running in the background
I have found that the error in XCode can be avoided using "signal (SIGPIPE, SIG_IGN)" inside the didFinishLaunching function
but I don't know how to do it from roboVM, in the roboVM file init.c I’ve found the function ignoreSignal(SIGPIPE), but I can’t find a java class that implements that method

[ERROR] 12:07:32.561 AppLauncher failed with an exception:
[ERROR] 12:07:32.561 java.io.IOException: Broken pipe
[ERROR] 12:07:32.561 at java.io.FileOutputStream.writeBytes(Native Method)
[ERROR] 12:07:32.561 at java.io.FileOutputStream.write(FileOutputStream.java:313)
[ERROR] 12:07:32.561 at org.robovm.compiler.util.io.OpenOnWriteFileOutputStream.write(OpenOnWriteFileOutputStream.java:59)
[ERROR] 12:07:32.561 at org.robovm.libimobiledevice.util.AppLauncher.pipeStdOut(AppLauncher.java:805)
[ERROR] 12:07:32.561 at org.robovm.libimobiledevice.util.AppLauncher.launchInternal(AppLauncher.java:742)
[ERROR] 12:07:32.561 at org.robovm.libimobiledevice.util.AppLauncher.launch(AppLauncher.java:1057)
[ERROR] 12:07:32.561 at org.robovm.compiler.target.ios.AppLauncherProcess$1.run(AppLauncherProcess.java:67)

Demyan Kimitsa
@dkimitsa
@kloylar this log shows that connection with device was broken and robovm code was not able to read from it. you should check device/xcode logs for reason of crash/rtermination
kloylar
@kloylar
There is no xcode report in "view device logs", I am also using firebase Crashlytics and there is no report neither
Dũng Trần
@dunno7
Is there any way to add webview for iOS platform in Libgdx?
yajirobe69
@yajirobe69

I have made (properly i believe?) a simple Swift Static Library via Xcode and have the .a file, I put it in /ios/libs/ and have made a Java class to tap into it:

@NativeClass
public class NativeLibraryTest extends NSObject {
static {
    ObjCRuntime.bind(NativeLibraryTest.class);
}

private static final Selector helloWorld = Selector.register("helloWorld");

@Bridge
private native static void objc_helloWorld(NativeLibraryTest __self__, Selector __cmd__);

public void helloWorld() {
    objc_helloWorld(this, helloWorld);
}
}

It just crashes on startup (startup is when I create the above class instance)
What do

yajirobe69
@yajirobe69
i feel like its not being told where to look for this helloWorld function... (how do it know to look in somerandom.a file?)
Demyan Kimitsa
@dkimitsa
@yajirobe69 probably your code should look as bellow:
@NativeClass
public class NativeLibraryTest extends NSObject {
  static {
      ObjCRuntime.bind(NativeLibraryTest.class);
  }
  @Method
  public native void helloWorld();
30 replies
Federico Jordán
@fedejordan
Hi, I'm doing the initial setup for AS 4.1.2 on an Apple M1 computer and getting the following error when installing RoboVM plugin 2.3.12
4 replies
Kees van Dieren
@keesvandieren

Hello, I'm trying to upgrade Gradle to 6.8.1, Libgdx to 1.9.14 and Robovm to 2.3.12, also updated altpods to 1.14.0-SNAPSHOT

Xcode version is 12.4.

I get this error when running createIPA Gradle task:

duplicate symbol '_Java_com_badlogic_gdx_graphics_g2d_Gdx2DPixmap_clear' in:
    /Users/myusername/.robovm/cache/ios/thumbv7/release/Users/myusername/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.14/c7d0536467112c5313c7da6d34a2c1229192623f/gdx-platform-1.9.14-natives-ios.jar.extracted/META-INF/robovm/ios/libs/libgdx.a(com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.o)
    /Users/myusername/.robovm/cache/ios/thumbv7/release/Users/myusername/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.14/c7d0536467112c5313c7da6d34a2c1229192623f/gdx-platform-1.9.14-natives-ios.jar.extracted/META-INF/robovm/ios/libs/libgdx.a(com_badlogic_gdx_graphics_g2d_Gdx2DPixmap.o)

This one, and some more. Complete list in https://pastebin.com/HAuVXzq0

Any idea what to do, or further suggested steps to debug the issue? It worked for older libgdx version and Robovm version.

1 reply
Dũng Trần
@dunno7
Hello, I met this error when try to enable javascript for webview:
WebViewController.java:42: error: cannot find symbol
        wkPreferences.setJavaEnabled(true);
                     ^
  symbol:   method setJavaEnabled(boolean)
  location: variable wkPreferences of type WKPreferences
Demyan Kimitsa
@dkimitsa
@dunno7 javaEnabled is MacOSX only (and deprecated)
Dũng Trần
@dunno7
I see. Thanks @dkimitsa !
Dũng Trần
@dunno7
@dkimitsa : Do we have any plan for update this robopod: https://github.com/MobiVM/robovm-robopods/tree/master/google-mobile-ads/ios. Thanks you!
Demyan Kimitsa
@dkimitsa
@dunno7 I’ve update GAD in alt-pods to 8.1.0 but not pushed yet (other pods are in progress). But in this version there is a bunch of dramatic changes
will publish tonight firebase. complete update till end of week
Dũng Trần
@dunno7
Okie, that’s great!
Wheeler Games
@wheelergames_gitlab
dramatic changes!!?? that doesn't sound good :)
yajirobe69
@yajirobe69

anyone get a static library generated via Xcode with SWIFT working with RoboVM? I can use Obj-C, have Xcode produce my .a file, include it, and it works

but when I do the exact same process with a Swift static library, I get yelled at during compilation by RoboVM over "undefined symbols for architecture arm64" even tho, again, im doing the same build process as I did with the Obj-C static library...?

is there some setting in Xcode I should look at?

Demyan Kimitsa
@dkimitsa
@yajirobe69 you probably missing @objc attribute
check swift-objective-c-interoperability at medium, case 3
yajirobe69
@yajirobe69
@dkimitsa that's funny i was just on that article, doing the same thing tho, same result, it just doesn't want to work with Swift. Do you know of any other possible gotchas? I can confirm if I tell RoboVM to compile for thumbv7 it does compile
//
//  AudioBackend.swift
//  SwiftRoboVMStaticLib
//

import Foundation

@objc open class AudioBackend : NSObject {

    @objc public func helloWorld() {
        print("hello tho")
    }

}
Adi
@Adi33435490_twitter
hello, anyone know the best way to check internet connection on libGDX iOS project?
4 replies
kloylar
@kloylar
Hello, My Libgdx game ends randomly on iOS (physical phone) without any error message, no message in the run tab of android studio, not in "view device Logs" in XCode and not in Firebase Crashlytics
How can I get an error message to know what is happening?
On android and desktop it works without problems
Wheeler Games
@wheelergames_gitlab
mine does that too, sometimes
if you ever find out, let me know!
yajirobe69
@yajirobe69
@kloylar i've found that happens randomly, idk the cause, sometimes running it via adhoc will generate the log in xcode "view device logs", then use the dsym to symbolize it