iOS Question XCode 8.1 and Profile and Certificate Problems

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Erel,

I´m update the Xcode to version 8.1 and B4i v3.0.0, but now I have troubles with certificates/provisioning.

Any project in my Xcode with DISTRIBUTION certificates and Profiles works very well, but in B4i I have a new message, look:

A simple project in XCODE: (running with distribution certificate and provisioning profiles)
xcode.png


A simple project in B4i (with the same certificate and provisioning profile)
b4i.png


I tried to recreate from scratch everything, but nothing works.
I delete all provisioning from my mac, delete in apple member center, from B4i and recreate everything.

Can you give me some light?

Thanks

Alberto Iglesias
 

tufanv

Expert
Licensed User
Longtime User
That was happening when you use notifications entitlement , if you dont use notifications just delete it and it will be fixed ( the entitlement in 10th line ) if you have to use notification than try changing to production in line 10 to
B4X:
#Entitlement: <key>aps-environment</key><string>development</string>

if you are using development provision profile.
 
Upvote 0

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
I tried, look the log using the host builder:


B4i version: 3.00
Parsing code. (0.00s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Compiling debugger engine code. (0.75s)
Building Xcode project (0.02s)
Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = PopView
PROVISIONING_PROFILE = 80803ce7-580c-48f2-8049-3fee317b5336

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

Check dependencies
Provisioning profile "ProvDistrGeral" doesn't include any certificate for which the matching private key is installed in the keychain.
Provisioning profile "ProvDistrGeral" doesn't include the aps-environment entitlement.
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)
 
Upvote 0

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Erel,

I do this steps:

Step 1: Delete all certificates, provisioning profiles, keys from my mac
Step 2: Delete all certificates and provisioning profiles from Member Center Portal
Step 3: Create ONLY Distribution Certificate
Step 4: Create a provisioning profile for distribution

I get this files:

* ios_distribution.cer
* ProvDistTudo.mobileprovision
* CertificateSigningRequest.certSigningRequest (change after to CertificateSigningRequest.csr)

Put those files in keys folder (B4i)

And try compile right now with your host (using the ID your send to me)

With Entitlement for production
error1.png


and without:
Error2.png



I don´t know why!! I Recreate everything again from scratch


and the provisioning profile HAVE this distribution certificate, look:

Error3.png


and to prove this I tried in xcode:

error5.png
 
Last edited:
Upvote 0

tufanv

Expert
Licensed User
Longtime User
adhoc provision & distribution certificate will work both for your test purposes on your device ( development ) and when you put on appstore . This way , you will use one combination of certifivcate and provision for both development and production.
 
Upvote 0
Top