iOS Question Error compiling Bridge App

Emme Developer

Well-Known Member
Licensed User
Longtime User
Hi, i've this error when i try to compile the Bridge App. This happens only with Bridge, i'm able to compile app in Relase mode and in Debug mode

B4X:
B4i version: 4.01
Parsing code.    (0.03s)
Compiling code.    (0.12s)
Building designer app.    (0.01s)
Building Xcode project    (0.03s)
Sending data to remote compiler.    Error
Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/marcomolica/Desktop/mac/UploadedProjects/<user id>/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain <user id>
    PRODUCT_NAME = B4i-Bridge
    PROVISIONING_PROFILE = ce41ad75-a483-41c4-b836-3f11ae237a20

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

Check dependencies
Provisioning profile "Bridge" doesn't include signing certificate "iPhone Distribution: Marco Molica (8289J4U558)".
Code signing is required for product type 'Application' in SDK 'iOS 10.3'


Error: ** BUILD FAILED **


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

Strange think is that i don't understand why it tell me "doesn't include signing certificate "iPhone Distribution". It must contains Iphone developer, not iphone distribution, as provision file is for developing
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
Don't use a special provision profile for the bridge. It is not needed.

It is best to use a production - ad hoc certificate during development.
Hi @Erel, thanks for the answer.

Which certificate and provisiong file need i to use?
If i use Ad hoc certificate, with special provision profile then i got same error.
if i use Ad hoc certificate, with special provision profile for distribution then i got "Store provision profile can only be used in Release compilation."
If i use Ad hoc certificate, with a non special provision profile (development) then i got "Provisioning profile "Digitarch_dev" has app ID "ed.digitarch.com", which does not match the bundle ID "ed.digitarch.com.bridge"."
If i use Developer certificate, with special provision profile then i got error in the first post.
If i use Developer certificate, with a developer provision profile then i got already "Provisioning profile "Digitarch_dev" has app ID "ed.digitarch.com", which does not match the bundle ID "ed.digitarch.com.bridge".

Can you advice me how to create a right certificate and provision profile to build b4i bridge? I followed your tutorial, and i built succcessfully b4a bridge, this is the first time i got these errors

Also i don't understand how to create developer provision file using ad hoc certificate, it automatically select developer certificate
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Create a Production - App Store and Ad Hoc certificate.
Create an App ID with its id set to *
Create an Ad Hoc provision profile.

Use this certificate and provision profile in all your apps, and when you create B4i-Bridge. Switch to a specific app id when you develop an app that requires an explicit id (push notifications or IAP).
 
Upvote 0

Emme Developer

Well-Known Member
Licensed User
Longtime User
Create a Production - App Store and Ad Hoc certificate.
Create an App ID with its id set to *
Create an Ad Hoc provision profile.

Use this certificate and provision profile in all your apps, and when you create B4i-Bridge. Switch to a specific app id when you develop an app that requires an explicit id (push notifications or IAP).
Thanks, i create an Ad Hoc provision profile and it now works. So during development i will use Ad hoc profile, and when i need to publish an app i will use distribution profile
 
Upvote 0
Top