Wish run release with debug certificates

sorex

Expert
Licensed User
Longtime User
Erel,

It would be nice if we had an option to run our app as release version but with debug certificate/prov. profile.

Now we need to manually change the certificate & provisioning profile for the #if release just to be able to run our app at real speed.

so next to #if debug, #if release something like #if releasetest or testrelease would be ideal.
 

sorex

Expert
Licensed User
Longtime User
cool, I was not aware of that.

what I don't get is how the compiler knows which release style he has to pick.

I only see Build Server > Build release app
 

sorex

Expert
Licensed User
Longtime User
ok, I get it.

I need to add a custom build and use that reference.

I thought the mentioned StoreBuild was a build-in option like debug & release.

So do I just need to put the new build config right under the normal release one?

like...

B4X:
#If DEBUG
   #CertificateFile: ios_development.cer
   #ProvisionFile: game_dev.mobileprovision
#END IF
#If RELEASE
  #CertificateFile: ios_distribution.cer
   #ProvisionFile: game.mobileprovision    
#END IF
#If RELEASETEST
   #CertificateFile: ios_development.cer
   #ProvisionFile: Development.mobileprovision
#END IF
 
Last edited:
D

Deleted member 103

Guest
Note that you can also use #Else If
B4X:
#If DEBUG
   #CertificateFile: ios_development.cer
   #ProvisionFile: game_dev.mobileprovision
#Else If RELEASETEST
   #CertificateFile: ios_development.cer
   #ProvisionFile: Development.mobileprovision
#Else
  #CertificateFile: ios_distribution.cer
   #ProvisionFile: game.mobileprovision  
#End If
This is good if the app has only one version, but if the app has multiple versions?
B4X:
    #If Lite
        #ApplicationLabel: B4-Lite
    #End If

    #If Pro
        #ApplicationLabel: B4-Pro
    #End If

    #If DEBUG
        #CertificateFile: ios_development.cer
        #ProvisionFile: developer.mobileprovision
    #End If   
   
    #If RELEASE
       #CertificateFile: ios_distribution.cer
       #ProvisionFile: store.mobileprovision
    #END IF
It would be better this solution:
b4i.png
 
Top