iOS Question Release Build Error - Provisioning profile doesn't include signing certificate

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Hi,
I seem to be having problems building a release version of my app.
This has been working fine for some time.

The development version will build ok, but when I try to use the release certificate and mobile provision I get the following error

B4X:
=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies
Provisioning profile "XXXXXXX" doesn't include signing certificate "XXXXXXXXXXX".
Code signing is required for product type 'Application' in SDK 'iOS 10.1'


Error: ** BUILD FAILED **

I have checked and I have only 1 distribution certificate which expires in 2018.
I have tried re-creating the certificate and also the mobile provisioning file with no success.

Anyone have any clues as to how to solve this?

Cheers
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Erel,
Thanks, finally got it working.

I deleted all production certificates and created a new one.

I then then created a new APP ID (wildcard version)

I then created a new Mobile Provision.

Finally, it all compiled ok.

Phew, I had to get a new release out to a client this afternoon, so was getting desperate! :)


Thanks

Andrew
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Hello,
I'm stuck with a similar problem

B4X:
=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies
Provisioning profile "dev201718" doesn't include any certificate for which the matching private key is installed in the keychain.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'


Error: ** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

My certificate was expired i generate a new one, and a new .mobileprovision.
I cannot build the app.
I've tried to delete certificate and recreate but nothing same error.
Anyone can help me?
Thank you
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Yes, i'm using local builder.
I've changed username, but same error

B4X:
=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies
Provisioning profile "dev201718" doesn't include any certificate for which the matching private key is installed in the keychain.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'


Error: ** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

In Keychain Access i see the new element for the new user (iosdev) with private key and certificate

upload_2017-11-10_9-50-46.png


What's wrong?

thank you
Giulio
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Hi,
nothing, created new certificate and new provision, same error
the new provision seems ok
upload_2017-11-13_12-27-9.png


Is it possible to try with hosted builder?
I have a bundle enterprise license, but the Hosted Mac Builder was expired one month ago.
Otherwise how i can renew only Hosted Mac Builder?
Thank you
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Ok thank you,
i've tried with hosted builder, but i have the same error:

B4X:
Sending data to remote compiler.    Error
Error: security: SecKeychainDelete: The specified keychain could not be found.

Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain <user id>
    PRODUCT_NAME = Web-Yacht
    PROVISIONING_PROFILE = 66574017-6c5b-45f1-9967-63307d6528ef

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies
Provisioning profile "devwebyacht" doesn't include any certificate for which the matching private key is installed in the keychain.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'

Error: ** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)

I follow this for creating certificate and provision:
from apple developer site Certificates, Identifiers & Profiles:
- add new ios app development certificate
- generate and upload a csr file
- download certificate
then
- add new ios app development provisioning
- select app id (wildcard, but i've tried also with app specific)
- select certificate (previously created, i have only one)
- select device (i have only one)
- select a name
- download provision file

Is it ok?
thanks for your support
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
You are great!
Solved, now i'm using an old copy of the .csr (not the new one generated few days ago)

Now the build process hangs in a different point, but i think the certificate problem is solved.
New error, related with googlemapsextra:

B4X:
Error: ** BUILD FAILED **

The following build commands failed:
    CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_googlemapsextra.o B4iProject/b4i_googlemapsextra.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

In previous build i had this problem with local mac and i solved using hosted builder.
I already spent time trying to solve googlemaps issue without success, i will renew the hosted builder subscription.

Thank for your support
 
Upvote 0
Top