Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Error while creating ipk in Xcode — Gideros Forum

Error while creating ipk in Xcode

Sush19Sush19 Member
edited August 2013 in General questions
Hello guys,

I'm trying to create ipk of my game to test in my device.
I've created the Certificates and Provisioning Profile as well

But after including these certificates to Key chain and in Xcode, when i Build the project in Xcode I'm getting following errors and Warnings:

Errors 2:
error: request for member 'showsCompletionBanner' in 'achievement', which is of non-class type 'GKAchievement*'

Warnings 6:
warning: 'g_temp' defined but not used
warning: no previous prototype for function 'luaopen_lsqlite3' [-Wmissing-prototypes]
warning: unused variable 'op' [-Wunused-variable]
warning: 'g_temp' defined but not used
warning: no previous prototype for function 'luaopen_lsqlite3' [-Wmissing-prototypes]
warning: unused variable 'op' [-Wunused-variable]

Can anyone help me out for the same

Thank you...















Likes: Vramin

+1 -1 (+1 / -0 )Share on Facebook

Comments

  • ar2rsawseenar2rsawseen Maintainer
    edited August 2013
    do you use gamekit plugin in Gideros?
    You can ignore the warnings, but the error is exactly what causes the problem, I just have no idea, why others don't get it, if there is really a problem in the plugin.

    If you are not using gamekit, you can simply remove gamekit.mm from your project ;)
  • Both in the apple docs and plugin everything seems to be right, but from the error statement, if you click on the error, it should take you to the line in code which caused the error. What is on that line?

    If it is something like:
    achievement.showsCompletionBanner = showsCompletionBanner;
    then from the error, you can try changing it to
    achievement->showsCompletionBanner = showsCompletionBanner;
    Still would like to know what is on that line, that causes an error :)
  • It is
     
    I changed to
    <pre lang='lua'
    achievement->showsCompletionBanner = showsCompletionBanner;
    Then I got following error:
    error: 'struct GKAchievement' has no member named 'showsCompletionBanner'

    I'm not using gamekit in my project, so I deleted gameKit.mm from the plugin folder
    after that I'm getting error in second line:

    Undefined symbols for architecture armv6:
    "___divmodsi4", referenced from:
    _gray_render_line in libgideros.a(smooth.o)
    _gray_render_scanline in libgideros.a(smooth.o)
    ld: symbol(s) not found for architecture armv6
    collect2: ld returned 1 exit status
  • Just checking, but you removed gamekit plugin from xcode project and not simply from finder folder, right?
  • ya I tried both ways... Once I deleted only reference from the project by right clicking on the gamekit.mm file in Xcode
    Right Click ----> Delete ----> Delete Reference

    and once I deleted from the finder as well but I'm getting same error when I build for Device, When I build for Simulator mode then build succeeded
  • After Build succeeded in the Simulator, I got the my game icon on the simulator but when I click it to open, only black screen appears for few seconds after that it is redirected back to the home....
    No idea what's going wrong..

    I want to build in both Simulator and on Device...
  • It sounds like either something is missing or, the deployment target incorrect, or some script is not inside compiled resources or thousand of other reasons why xcode project does not build :)

    sorry with my limited ios knowledge I can't help you further, will either need to wait on @atilim or maybe someone other knows what could be the problem.

    But in most cases it all should have worked out of the box, just export from Gideros import into xCode and launch.

    So you can try again, make sure you have latest Gideros version, export your project.
    Then make sure you have latest xcode version and import/open a project there
    and without changing anything try to build it on atleast simulator.
  • I didn't do any changes...

    I've deleted the exported project from the Gideros.

    Again I went to Gideros Studio and Exported the project for iOS
    It creates one folder and one Xcode project file..
    I double clicked on the Xcodeproject file to open it in Xcode

    After that inside Target info under properties I changed the Identifier to my bundle which i created
    eg: com.xyz.abc

    In Project info,
    under Configurations I created Distribution
    under Build I added my provisioning profile which I created.
    code signing identity and in Any iOS I added the certificate

    After that I build it for Simulator itself with active Configurations as Debug, but I got the gamekit error which i mentioned you at the starting of this discussion...

    then just I Right Clicked on the gamekit.mm file --> Delete --> Delete References

    Now the build is success without errors...

    I got my game icon on the simulator but it does not open, it just shows the black screen for few seconds and does nothing...

    Is the problem with my app or some other problem...?
  • And when I'm trying to build it for Device I'm getting
    2 errors:

    Undefined symbols for architecture armv6:
    "___divmodsi4", referenced from:
    _gray_render_line in libgideros.a(smooth.o)
    _gray_render_scanline in libgideros.a(smooth.o)
    ld: symbol(s) not found for architecture armv6
    collect2: ld returned 1 exit status

    It shows error on the second line of the code...
Sign In or Register to comment.