iOS Question Install to my real iOS device - not debug version

affable

Member
Licensed User
Longtime User
When I try to install a release App on my real device (which I have done successfully previously) I get the "Installing..." progress Pie and it gets part way through eg 60% then restarts, over and over.

Turns out it was due to Distribution instead of Development Certificates. Using #Release is no use as they are both release version, is there another way to automatically switch?
 
Last edited:

affable

Member
Licensed User
Longtime User
B4X:
#If STORE AND RELEASE
#CertificateFile: distribution.cer
#End If
#If RELEASE and NOT STORE  ?????
#CertificateFile: development.cer
#End If

Excellent. However what conditional symbol can be used at the same time, for non-store (local device) release?
 
Upvote 0

affable

Member
Licensed User
Longtime User
Use the STORE build when you want to publish the app to the app store. In all other cases use the debug certificate.

Ah, sorry I assumed STORE was predefined in B4i like RELEASE. I already have 6 build configurations with 100's of #if , so to duplicate each build configuration and change all the #if is not practical.
Could you use the "compilation mode" combo box (like it is in B4a), as in B4i it is always locked on "debug". If you have 3 options - Debug, Local device and Store, which set predefined conditional compilation tags so they don't interfere with user created ones?
 
Last edited:
Upvote 0

affable

Member
Licensed User
Longtime User
Also, to share code modules between b4i and b4a, how can the "DesignText" cater for both, I can't get conditional compilation tags to work in this hidden section? -

Type=StaticCode
Version=2.51
ModulesStructureVersion=1
B4i=true
@EndOfDesignText@
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Also, to share code modules between b4i and b4a, how can the "DesignText" cater for both, I can't get conditional compilation tags to work in this hidden section? -
Please start a new thread for a new question.

Could you use the "compilation mode" combo box (like it is in B4a), as in B4i it is always locked on "debug"
B4A release option is identical to Tools - Build Server - Build release app. It doesn't matter whether it is selected in the combo box or the menu option.

I already have 6 build configurations with 100's of #if , so to duplicate each build configuration and change all the #if is not practical.
You don't need to change any code. Just create another one with the symbols relevant for store submission and also add the STORE symbol.
 
Upvote 0
Top