iOS Question Installing B4i-Bridge - ERROR

Aldo's

Active Member
Licensed User
Hi,
I try to follow Erel's tutorial at this address: https://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/
1) I generate the server like this:
1.png

2) I do the compilation configuration like this:
2.png

3) I try to make the Private Sign Key this way
3.png

but I get this error:
4.png

4) when I try to compile I get this error:
5.png

Can you find a more specific tutorial in your opinion?
Can anyone give me a hand?
Thank you
 

Aldo's

Active Member
Licensed User
B4I Bridge installed, but when I try to debug a program with B4I Bridge connected I get this error:

B4i Versione: 8.51
Analisi del Codice. (0.58s)
Building folders structure. (0.26s)
Esecuzione azione personalizzata. (0.41s)
Compilazione del codice. (1.29s)
Compilazione del codice di layouts (0.03s)
Compilazione del codice debugger. (0.32s)
Compilazione Progetto Xcode. (0.43s)
Preparazione del progetto per la sua costruzione. (0.70s)
Dimensioni del progetto: 0.58 MB
Invio dati a compilatore remoto. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=apMusica CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: Aldo Panizzi (9XJK4N94AA)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=b00442e2-6d8b-46b5-8f62-0fe06983f3cc -arch arm64

User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone Distribution: Aldo Panizzi (9XJK4N94AA)
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = apMusica
PROVISIONING_PROFILE = b00442e2-6d8b-46b5-8f62-0fe06983f3cc

note: Using codesigning identity override: iPhone Distribution: Aldo Panizzi (9XJK4N94AA)
ComputeTargetDependencyGraph
warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
note: Target dependency graph (1 target)
Target 'B4iProject' in project 'B4iProject' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription
Build description signature: c65b11d1f35abcbcc68e258191004a81
Build description path: /Users/administrator/Documents/UploadedProjects/<user id>/build/XCBuildData/c65b11d1f35abcbcc68e258191004a81.xcbuilddata

/Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj: error: Missing private key for signing certificate. Failed to locate the private key matching certificate "iPhone Distribution: Aldo Panizzi (9XJK4N94AA)" in the keychain. To sign with this signing certificate, install its private key in your keychain. If you don't have the private key, select a different signing certificate for CODE_SIGN_IDENTITY in the build settings editor. (in target 'B4iProject' from project 'B4iProject')

Error: ** BUILD FAILED **
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4I Bridge installed
Good.

You later did something wrong with the keys. If you can install B4i-Bridge then you should be able to install other apps as well.
Based on the error message, the private key doesn't match the certificate.

Don't create multiple CSRs. You should have a single certificate with multiple provision profiles.
 
Upvote 0

Aldo's

Active Member
Licensed User
How do I make a private key that matches the certificate?
With a new app, what certificates, identifiers and provisionals should I create?
Is this the problem I'm finding?
 
Upvote 0

Aldo's

Active Member
Licensed User
Don't create multiple CSRs. You should have a single certificate with multiple provision profiles.
For the next apps I can copy the files:
B4i.keystore
B4i.p12
certSigningRequest.csr
ios_distribution.cer

And create:
file.mobileprovision
?

The file:
file.mobileprovision
or rather the identifiers is explicit or wildcard better?
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
For the next apps I can copy the files:
No. Don't do it. Don't copy any file.

Use a single folder for all projects and only create new provision profiles.

 
Upvote 0
Top