B4i (iOS) - Updates thread

joseluis

Active Member
Licensed User
Longtime User
This sounds like it's gonna be a nightmare really fun to make it work in linux
 

Osi

Member
Licensed User
Longtime User
Yep. The newest XCode is out (XCode 6), there's some beta updates out, but I wouldn't bother with those until they are marked Final. But yes. You need a mac to compile for distribution.

Now ... there are ways (I have read), where you can run OSX in a virtual box to compile and distribute to the app store (and apple is non the wiser), but .... in countries with backwater laws (ex: US and UK), it would be illegal. In countries with modern laws (read, 80% of the world), it's just fine. You just got to take all the precautionary steps ...

Anyhow, I'm in Alaska, unfortunately, so that route isn't an option for me ..... but I do have a macbook......
 

RauchG

Active Member
Licensed User
Longtime User

IanMc

Well-Known Member
Licensed User
Longtime User

Well there will be a marketing advantage, the mobile and java development IDE all-in-one for $250 per year.

Though if you get too rich you'll buy your own island Erel-isle and stop development and we can't have that!
 

migrec

Member
Licensed User
Longtime User
So I just boot Windows when using B4A and OS X when using B4i? is there an OSX requirement? mine is quite old..
 

LWGShane

Well-Known Member
Licensed User
Longtime User
@Beja

You don't need to "install" Objective-C onto the Mac. Objective-C is just a language. Cocoa is the framework that uses both obj-c and swift.

Cocoa is basically a "runtime" like Java and .NET. Though Cocoa comes pre-installed on Macs.


So I just boot Windows when using B4A and OS X when using B4i? is there an OSX requirement? mine is quite old..

OS X is required for the first version to compile apps.
 

Beja

Expert
Licensed User
Longtime User
@BlackholeSoft
You don't need to "install" Objective-C onto the Mac. Objective-C is just a language

Thanks but I thought b4i is first translated to Objective-C then the OC source code is compiled into iOS op-code.. just like b4a when it is first translated to java and compiled the generated java code.. does cocoa recognizes b4i source code?
 

joseluis

Active Member
Licensed User
Longtime User
@Beja

The only thing that would make sense is that B4I itself is the one that converts the B4I code to Objective-C, and then sends that to the Mac for the final compilation.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The only thing that would make sense is that B4I itself is the one that converts the B4I code to Objective-C, and then sends that to the Mac for the final compilation.
This is more or less correct. During development (debug mode) you will be able to "compile" your app and run it without a local or more compilation. At least not every time. It is a similar solution to B4A rapid debugger.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Fast debug mode and code swapping features are now working...

There will be two debug modes:
- Shell
- Fast debug

In Shell mode you build and deploy the "shell" app once and then you can modify your code or even run other programs using this shell app (you do need to rebuild the shell app if you change the referenced libraries).
This mode is quite convenient as it saves the build and deploy step. However it is slower and in many cases it is too slow.

Fast debug is similar to the debugger in B4A v3.5+. In this mode you need to build and deploy from time to time however the performance is much better.

The build and deploy step is not too annoying once you configure everything correctly.
 

Beja

Expert
Licensed User
Longtime User
@joseluis
The only thing that would make sense is that B4I itself is the one that converts the B4I code to Objective-C, and then sends that to the Mac for the final compilation.

This is what I am saying.. the Mac iOS is not a compiler.. it just executes instructions if it received them in compiled binary form.. it is the compiler that compiles high level language into binary so the OS can understand it.
In this case, either B4i compiler translates your project directly into Mac's binary instructions or pass it to a OC compiler.
 

joseluis

Active Member
Licensed User
Longtime User
@Beja

The OC compiler runs in the Mac, and B4I will send the code to the OC compiler in the Mac. Technically it will be more complicated but that's basically it.
 

Beja

Expert
Licensed User
Longtime User
Jose,
ok, now we are in business.. now I understand (correct me) that Objective C compiler runs in Macs as a process or service
and the OSx comes like this (with the compiler pre-installed or even built into the operating system)
 

Beja

Expert
Licensed User
Longtime User
(Isn't it how any computer works?)

No Jose,
In Windows you need to install C compiler, it doesn't come with OS.. now for B4A we need to install Java compiler to compile the B4A-generated Java code. But in the case of B4i we don't need to install OC compiler, and I understand what you said that Mac OS, unlike Windows, comes with OC compiler pre-installed.
 

joseluis

Active Member
Licensed User
Longtime User
No, I didn't say that, and it really doesn't matter if the compiler comes preinstalled or not. That is completely irrelevant. You'll be able to install it if you don't have it already. I don't understand where is the confusion, but anyway, we're derrailing the thread so I'll leave it there. The instructions will be clear when Erel finishes it.
 

MaFu

Well-Known Member
Licensed User
Longtime User
On the Mac you must install Xcode.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…