iOS Question Provisioning file selection

davemorris

Active Member
Licensed User
Longtime User
Hi, Guys

Provisioning files: In the Project Attributes I use the following code to select either the Store or non-store provisioning profiles for release mode.

Select Provisioning file for release mode:
    #If RELEASE
           #CertificateFile: ios_distribution.cer
      
       ' Below is store provision profile (use for release to Apple)
          '#ProvisionFile: SuperOrder.mobileprovision
        
        ' Below is a non-store provision profile (use if you want a locally built release version).
        #ProvisionFile: SuperOrderAdhoc.mobileprovision
    #END IF

As you see, I have to edit lines #5 and #8 to switch between store and non-store provision files.

Question: Can this be done with a compiler switch?

Kind regards
Dave
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
#CertificateFile: ios_distribution.cer
Mistake: always use a distribution certificate. Even in debug mode.

Question: Can this be done with a compiler switch?
Yes. Add a "store" build configuration with a build symbol named STORE:
B4X:
#if STORE
 #ProvisionFile: SuperOrderAdhoc.mobileprovision
#End If
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…