iOS Question My second App

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Hi,
I'm writing my second App and i need to create a new Certificate file and a new Provision file.
I read the tutorial "Managing multiple certificates / provision files" and I understood I can use the same keys Folder of first app.
I understood I can use the same B4i.keystore, B4i.p12 and certSigningRequest.csr in the same keys folder of first app.
Now i need to create only Certificate and provision file.
Then I must specify for each App (also for the first):
#CertificateFile: ios_*.cer
#ProvisionFile: *.mobileprovision
on #Region Project Attributes.

It is correct?
Tks
Marco
 

sorex

Expert
Licensed User
Longtime User
if I recall right you have 2 options.

a wild card based one (com.marco.*) or an app based one (com.marco.app2).

they end up in the same folder but with different filenames.

you can force them in your code with conditions like shown below

B4X:
#If DEBUG
   #CertificateFile: ios_development.cer
   #ProvisionFile: Development.mobileprovision
#END IF

#If RELEASE
    #CertificateFile: ios_distribution.cer
    #ProvisionFile: commarcoapp2.mobileprovision
#END IF
 
Upvote 0

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Then in the first app I put:
B4X:
#If DEBUG
   #CertificateFile: ios_development.cer
   #ProvisionFile: App1.mobileprovision
#END IF

#If RELEASE
    #CertificateFile: ios_distribution.cer
    #ProvisionFile: marcoapp1.mobileprovision
#END IF

and in the second app I put:
B4X:
#If DEBUG
   #CertificateFile: ios_development.cer
   #ProvisionFile: App2.mobileprovision
#END IF

#If RELEASE
    #CertificateFile: ios_distribution.cer
    #ProvisionFile: marcoapp2.mobileprovision
#END IF

The certificate is the same for both apps (only 1 for Debug and only 1 for release)
The provision file is different per App and per debug/release (4 different provision for 2 apps)
Correct?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
like I wrote earlier you can use a different per app or a general wildcard one.

seperating it might be wise when starting to use some of Apple's extra features (push messages or so)
 
Upvote 0
Top