iOS Question Error building B4i-Bridge

Luiz Fernando Orlandini

Active Member
Licensed User
Hi All.

I've followed all the steps from tutorial, but I getting this error below:

I'm using a Local Builder in my Mac, with Xcode 6.

B4X:
Building designer app.                  0.08
Building Xcode project                  0.05
Sending data to remote compiler.        Error
Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/danielnascimento/Documents/YM/SC/APP/b4i/macserver-aa/UploadedProjects/xxx/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain default_b4i
    PRODUCT_NAME = B4i-Bridge
    PROVISIONING_PROFILE = a3677386-c709-454f-b02f-de0e9b3450e4

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

Check dependencies
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “a3677386-c709-454f-b02f-de0e9b3450e4”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'


Error: ** BUILD FAILED **
Tks for any help
 
Last edited by a moderator:

Luiz Fernando Orlandini

Active Member
Licensed User
Do you have a hosted Mac user id? Does it work with the hosted builder?
Yes Erel, it works fine. In my iPhone I could install, but in my iPad mini, that page was loaded, but when click to install, I received a message unable to connect in the IP returned from build result.
 

Luiz Fernando Orlandini

Active Member
Licensed User
This error means that the mobile provision file and the certificate do not match. The solution is to delete all files in the Keys folder and create new certificate + provision file.
I understand that Erel, but sounds strange the fact of compile and build the APP, when use hosted MAC Builder. If my certificate and provision profile was wrong, I won't be able to use even in hosted builder. Am I right?
 

Luiz Fernando Orlandini

Active Member
Licensed User
You are correct. I didn't understand that it worked with the hosted builder and only failed with the local Mac. Are you using a real Mac?
Yes Erel. I'm using a real MAC, with a WIN7 executing in a VM by Virtual Box. Network access is enabled between MAC and VM

Maybe the answer could be related on where the files (keys) must be disponibilized in mac file system.

I have the following struccture

../b4i/

In these directory I have all my keys, and also the additional folder macserver-aa.
 

Luiz Fernando Orlandini

Active Member
Licensed User
Can you post the server terminal output when you try to compile?

It might be a permission problem.
Hi Erel.

See...

My terminal result...

B4X:
Daniels-MacBook-Pro:b4i danielnascimento$ ls -lt
total 32
drwxr-xr-x  10 danielnascimento  staff   340 Feb  1 23:24 macserver-aa
-rw-r--r--@  1 danielnascimento  staff  7589 Jan 31 22:53 ScholasticApp_DEV_PROV_PROFILE.mobileprovision
-rw-r--r--@  1 danielnascimento  staff  1463 Jan 31 22:50 ios_development-2.cer
-rw-r--r--   1 danielnascimento  staff  2534 Jan 31 22:43 B4i.p12
Daniels-MacBook-Pro:b4i danielnascimento$ cd macserver-aa/
Daniels-MacBook-Pro:macserver-aa danielnascimento$ sudo java -jar B4iBuildServer.jar
Password:
Build server version: 1.5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-02-03 10:46:15.170:INFO::main: Logging initialized @132ms
Loading default configuration file.
AppPath=/Users/danielnascimento/Documents/YouMobi/Scholastic/APP/b4i/macserver-aa
Creating key for: 192.168.0.184
2015-02-03 10:46:17.359:INFO:oejs.Server:main: jetty-9.1.z-SNAPSHOT
2015-02-03 10:46:17.386:WARN:oejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale en_US
2015-02-03 10:46:17.403:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@3889c1ee{/,file:/Users/danielnascimento/Documents/YouMobi/Scholastic/APP/b4i/macserver-aa/www,AVAILABLE}
2015-02-03 10:46:17.405:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/danielnascimento/Documents/YouMobi/Scholastic/APP/b4i/macserver-aa/logs/b4j-2015_02_03.request.log
2015-02-03 10:46:17.429:INFO:oejs.ServerConnector:main: Started ServerConnector@62db5e9c{HTTP/1.1}{0.0.0.0:51041}
2015-02-03 10:46:17.747:INFO:oejs.ServerConnector:main: Started ServerConnector@1b01bcee{SSL-http/1.1}{0.0.0.0:51042}
2015-02-03 10:46:17.748:INFO:oejs.Server:main: Started @2717ms
Build server is ready
https://192.168.0.184:51042
http://192.168.0.184:51041
Adding user to keychain: XXXXX
success: true, 65
10:48:32| Compilation time: 2427, aj2wae6, queue: 0, success: false
Adding user to keychain: default_b4i
success: true, 65
10:49:20| Compilation time: 1451, default_b4i, queue: 0, success: false

The result in B4i

B4X:
Parsing code.                           0.00
Compiling code.                         0.33
Compiling layouts code.                 0.06
Compiling debugger engine code.         1.91
Building Xcode project                  0.06
Sending data to remote compiler.        Error
Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/danielnascimento/Documents/YouMobi/Scholastic/APP/b4i/macserver-aa/UploadedProjects/default_b4i/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain default_b4i
    PRODUCT_NAME = Scholastic App
    PROVISIONING_PROFILE = a3677386-c709-454f-b02f-de0e9b3450e4

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

Check dependencies
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “a3677386-c709-454f-b02f-de0e9b3450e4”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'


Error: ** BUILD FAILED **


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

Luiz Fernando Orlandini

Active Member
Licensed User
I agree. Please use the hosted builder for now. It might be a permission problem that prevents the provision profile to be installed correctly. Though there isn't any error in the logs.
Erel, the problem persists. Can I do something to solve it? I'm really having troubles to debug my APP since the connection to the hosted mac builder is to slow.
 

Luiz Fernando Orlandini

Active Member
Licensed User
See some informations, that maybe can help

B4X:
Parsing code.                           0.09
Compiling code.                         1.19
Compiling layouts code.                 0.19
Compiling debugger engine code.         6.31
Building Xcode project                  0.75
Sending data to remote compiler.        Error
Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/danielnascimento/Documents/YouMobi/Scholastic/APP/b4i/macserver-aa/UploadedProjects/aj2wae6/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain aj2wae6
    PRODUCT_NAME = Scholastic App
    PROVISIONING_PROFILE = 9dc17112-fff4-4a87-aba9-49018b44f6f7

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

Check dependencies
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “9dc17112-fff4-4a87-aba9-49018b44f6f7”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'


Error: ** BUILD FAILED **


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

Attachments

Luiz Fernando Orlandini

Active Member
Licensed User
Finally I solved my Issue.

First of all, I added my server to my developer team but I had the same error as before.

Then I copied my key from user keychain to system keychain but it was still not enough.

And finally, I copied the provisioning profiles from ~/Library/MobileDevice/Provisioning\ Profiles/ to /Library/MobileDevice/Provisioning\ Profiles/ (in fact I copied all the MobileDevice directory because it didn't exist).

After that, I could compile my projects. Now I'm downloading the GMaps toolkit.
 

Luiz Fernando Orlandini

Active Member
Licensed User
Just one more information...

~/Library/MobileDevice/Provisioning\ Profiles/ to /Library/MobileDevice/Provisioning\ Profiles/
To /Library/MobileDevice/Provisioning Profiles
 
Top