Wish Additional compiler options

D

Deleted member 103

Guest
Hi Erel,

if it does not take a lot of effort, then these compiler options would be very helpful.
So far I always have to uncomment the #CertificateFile, depending on the compiling option.
With these 2 new compilation options, the work would be much easier.

1. Release-Private = App will be installed on your own device
2. Release-Store = IPA-File is created and downloaded.

I hope I have described understandable.

B4i-Optionen.jpg
 

Star-Dust

Expert
Licensed User
Longtime User
What @Filippo intended, I suppose, is that sometimes it is compiled in Release but with the developer certificate and not distribution, for private use.
Other times it is necessary to create a Release with distribution certificate, to publish on the Store.

To do this, the lines are commented to load the developer certificate both for debug and for Release.
I deconment the lines to compile and distribute in the Store.

Is there a different way to do it?
 
D

Deleted member 103

Guest
1. In almost all cases it is a mistake to use a development certificate.
In which cases is it used?

You will then need to change the selected build configuration.
In my case I have a Lite and Pro version, so should the configuring look like this?

B4X:
#CertificateFile: ios_distribution.cer

#if DEBUG OR Relaese-Lite OR Relaese-Pro
   #ProvisionFile: developer.mobileprovision
#End If

#if STORE-Lite OR STORE-Pro
   #ProvisionFile: store.mobileprovision
#End If
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
In which cases is it used?
There are a few services that will not work with an ad-hoc provision profile + distribution certificate. GameCenter for example: https://www.b4x.com/android/forum/threads/gamecenter.85766/#content

In my case I have a Lite and Pro version, so should the configuring look like this?
Looks good, though you can simplify it a bit. Add a STORE symbol to both store configurations:
B4X:
#if STORE AND Release
   #ProvisionFile: store.mobileprovision
#else
#ProvisionFile: developer.mobileprovision
#End If
 
D

Deleted member 103

Guest
There are a few services that will not work with an ad-hoc provision profile + distribution certificate. GameCenter for example: https://www.b4x.com/android/forum/threads/gamecenter.85766/#content


Looks good, though you can simplify it a bit. Add a STORE symbol to both store configurations:
B4X:
#if STORE AND Release
   #ProvisionFile: store.mobileprovision
#else
#ProvisionFile: developer.mobileprovision
#End If
Thank you Erel, I wish you a nice day. :)
 
D

Deleted member 103

Guest
Hi,
I have to ask again, because I still do not understand it.
How or what do I have to set so that I compile a Relaese-version for my device and a Relaese-version for the Apple Store?

B4X:
    #If DEBUG
        #CertificateFile: ios_development.cer
        #ProvisionFile: developer.mobileprovision
    #End If   
    
    #If RELEASE
       #CertificateFile: ios_distribution.cer
       #ProvisionFile: store.mobileprovision
    #END IF

upload_2019-11-2_12-56-9.png
 
D

Deleted member 103

Guest
Alright Erel, I think I understood now.
In this way, everything now works as it should. :)

upload_2019-11-3_11-20-22.png
 
Top