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...
Comments
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
If it is something like:
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
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
No idea what's going wrong..
I want to build in both Simulator and on Device...
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'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...?
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...