Adding smart BASIC to Xcode Tutorial

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding smart BASIC to Xcode Tutorial

Post by Mr. Kibernetik »

Elliot wrote:I am not sure what you mean. I would be using the iOS Simulator. Does that mean I should change the name of libSB-sim.a to libSB.a? (Overwriting or deleting the current libSB.a file)?
Exactly

Elliot
Posts: 37
Joined: Thu Jun 23, 2016 10:58 am
My devices: iphone
ipad
PC
Flag: United States of America

Re: Adding smart BASIC to Xcode Tutorial

Post by Elliot »

My iphone app works perfectly! Last question--is there any way I can change the input default to numeric keypad?

Thanks for all your help!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding smart BASIC to Xcode Tutorial

Post by Mr. Kibernetik »

Elliot wrote:My iphone app works perfectly! Last question--is there any way I can change the input default to numeric keypad?
No, currently in smart BASIC there is no specific keyboard selection.
I will mark it as a feature request.

Elliot
Posts: 37
Joined: Thu Jun 23, 2016 10:58 am
My devices: iphone
ipad
PC
Flag: United States of America

Re: Adding smart BASIC to Xcode Tutorial

Post by Elliot »

App works perfectly in iPhone simulator, but can't get it working on my actual iPhone. I renamed the libSB-dev.a to libSB.a first. It installs with an icon. Your smartBasic splash screen shows briefly, then the error message:

Nothing to execute
OK

Touching the icon yields a black screen.

What am I doing wrong?
Thanks.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding smart BASIC to Xcode Tutorial

Post by Mr. Kibernetik »

Elliot wrote:App works perfectly in iPhone simulator, but can't get it working on my actual iPhone. I renamed the libSB-dev.a to libSB.a first. It installs with an icon. Your smartBasic splash screen shows briefly, then the error message:

Nothing to execute
OK

Touching the icon yields a black screen.

What am I doing wrong?
Thanks.
Nothing to execute means there is no code to run. Empty program file or no file.

Elliot
Posts: 37
Joined: Thu Jun 23, 2016 10:58 am
My devices: iphone
ipad
PC
Flag: United States of America

Re: Adding smart BASIC to Xcode Tutorial

Post by Elliot »

I know that. It is exactly the same project that worked on the simulator. The only thing I changed was renaming libSB-dev.a to libSB.a....
I can see that the project contains the appropriate BASIC textfile in SAMPLES folder, and that filename is listed in the #define SB_FILE@..


Any thoughts?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding smart BASIC to Xcode Tutorial

Post by Mr. Kibernetik »

Elliot wrote:I know that. It is exactly the same project that worked on the simulator. The only thing I changed was renaming libSB-dev.a to libSB.a....
I can see that the project contains the appropriate BASIC textfile in SAMPLES folder, and that filename is listed in the #define SB_FILE@..


Any thoughts?
Then you need to delete old version of your app on your device.

Elliot
Posts: 37
Joined: Thu Jun 23, 2016 10:58 am
My devices: iphone
ipad
PC
Flag: United States of America

Re: Adding smart BASIC to Xcode Tutorial

Post by Elliot »

I found the problem: one of the letters in the file name was lower case instead of upper!

But--> I more glitch: the app runs but does not re-set each time. What is the code to make it re-initialize?

Thanks!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding smart BASIC to Xcode Tutorial

Post by Mr. Kibernetik »

Elliot wrote:I found the problem: one of the letters in the file name was lower case instead of upper!

But--> I more glitch: the app runs but does not re-set each time. What is the code to make it re-initialize?

Thanks!
What means re-set or re-initialize?

Elliot
Posts: 37
Joined: Thu Jun 23, 2016 10:58 am
My devices: iphone
ipad
PC
Flag: United States of America

Re: Adding smart BASIC to Xcode Tutorial

Post by Elliot »

I think it will just require a Reset button in the BASIC code. Shouldn't be a problem! Thanks for all your help!

Post Reply