Back in August 2011 DaCarSoft did a wrapper to call iOS native keyboard in this post http://www.glbasic.com/forum/index.php?topic=6706.0 (http://www.glbasic.com/forum/index.php?topic=6706.0)
I am learning Xcode for iOS so be patient with me.
I am trying to compile and run his code on my iPhone, here are the steps I did:
- I created a GLBasic project called MSG and copied the GLBasic code from DaCar example.
- created a file called msg.mm and copied the .mm file.
- In GLBasic I compiled for the iPhone and copyed the msg.mm file under the XCode folder generated by the GLBasic.
- I opened the iPhone.xcodeproj in XCode but I can't see the msg.mm.
If I try to compile in XCode I get the following errors:
Undefined symbols for architecture armv7:
"_iOSMessageBox", referenced from:
__ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
"_GetiOSMessageBoxValues", referenced from:
__ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Help Please!!!
you have to add the .mm file manually to the project copied from your pc everytime you update the .xcodeproj folder
How do you mean by adding the .mm manually because I can get this to work now, unlike before.
BUMP. Anyone compiled any xcode for GLB lately as I haven't since xcode 3.
The issue is quite urgent. :'( :'( :'(
Yes. You must drag/drop the .mm files into the xcode project's "source" files.
As I was able to get a sample going initially I decided to start from scratch and I was able to get it going. :good: I suppose importing, copying and pasting that was giving me some issues. :-[