iOS Question How to manage 2 provision files in the same key directory?

voxel

Member
Licensed User
Hello,
I want to put my app on the app store (I'm a beginner, it's the first time) with the use of a specific provision file "LYZO.mobileprovision"
I put this file in the key directory (in addition to the provision for development "provision.mobileprovision").
I added this code:

#If RELEASE
#ProvisionFile: LYZO.mobileprovision
#END IF

If I build in RELEASE, it works.
But I have this error if I build in DEBUG

"Preparing the project for the Error generator
Multiple mobile provision files found. You should either rename one to default.mobileprovision
or explicitly set the file with #CertificateFile or #ProvisionFile."

How to manage 2 provision files in the same key directory?

Thanks for your help
 

Alex_197

Well-Known Member
Licensed User
Longtime User
B4X:
#If RELEASE
    #ProvisionFile: EVVReleaseOrg.mobileprovision
#Else
    #ProvisionFile: EVVProfile.mobileprovision
#End If
 
Upvote 1

Alex_197

Well-Known Member
Licensed User
Longtime User
Hello,
I want to put my app on the app store (I'm a beginner, it's the first time) with the use of a specific provision file "LYZO.mobileprovision"
I put this file in the key directory (in addition to the provision for development "provision.mobileprovision").
I added this code:

#If RELEASE
#ProvisionFile: LYZO.mobileprovision
#END IF

If I build in RELEASE, it works.
But I have this error if I build in DEBUG

"Preparing the project for the Error generator
Multiple mobile provision files found. You should either rename one to default.mobileprovision
or explicitly set the file with #CertificateFile or #ProvisionFile."

How to manage 2 provision files in the same key directory?

Thanks for your help
Read this

Managing multiple certificates / provision files​

Publishing your app to the App Store​


 
Upvote 1

voxel

Member
Licensed User
Hello, I have implemented this code. It works.
#If RELEASE
#ProvisionFile: LYZO.mobileprovision
#Else
#ProvisionFile: provision.mobileprovision
#End if

But if I want to have a Release version directly on the iphone, is there a way? Or do I have to redo the configuration each time?
Thank you
 
Upvote 0

voxel

Member
Licensed User
Goto tools -> Build server -> Build release App
But if i put this code

#If RELEASE
#ProvisionFile: LYZO.mobileprovision
#Else
#ProvisionFile: provision.mobileprovision
#End if

It's a build for app store and not for directly on this iphone (for test)
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Comment all those out and use only this

B4X:
'Use this for Debugging and installing to run on your phone'
#ProvisionFile: provision.mobileprovision    'Comment it out when you want to build for store

'use this for Release to playstore
'#ProvisionFile: LYZO.mobileprovision    'uncomment and build for store
 
Upvote 0
Top