iOS Question cannot compile after update to ios 10

web-yacht

Member
Licensed User
Longtime User
Hi,
few months ago we develop and succesfully deploy our first app.
Now some days ago we upgrade our mac (used for build server) to ios 10 with xcode 8
and we want to update our app but we cannot biuld from b4i ide.
As we start with "Compile & Run" the compiling dialog pop up and stop with error at step: "Sending data to remote compiler" with this error:

Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/filippogazzero/Desktop/macserver_25/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = WebYacht-Tracker
PROVISIONING_PROFILE = b71c863c-980a-444e-b37a-3c4fbe60f550

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

Check dependencies
B4iProject requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
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)

We've already tried to recreate a new provisioning file and we obtain the same error.
Any suggestions?

Thank you
 

web-yacht

Member
Licensed User
Longtime User
Hi Erel,
yes i'm using B4i version 2.80
and yes i've recreated new certificate and provisioning files

we dont have an hosted builder account
how we can obtain one?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I've sent you a temporary id. It will expire after a few days. If you like you can purchase an account. It costs $26 per year (the link is in the FAQ section: www.b4x.com/store.html).

I'm sure that you will also be able to use the local mac. It seems to me that you are still running an old version of the mac builder.
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
You are right, i'm using mac builder 2.51.
So is this version not compatible with ios 10?
Where i can find the new version for b4i 2.80?

Thank you very much for your support
Giulio
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
I found and start macbuilder 2.8 on my mac
but still i cannot compile i get error:

Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/filippogazzero/Downloads/macserver28/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = WebYacht-Tracker
PROVISIONING_PROFILE = b71c863c-980a-444e-b37a-3c4fbe60f550

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

Check dependencies
B4iProject requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
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)

so we think we will buy a hosted builder account for one year but we would like also to fix with our mac.
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Build server version: 2.8

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2016-10-05 15:40:11.159:INFO::main: Logging initialized @212ms

Loading default configuration file.

AppPath=/Users/filippogazzero/Downloads/macserver28

2016-10-05 15:40:11.302:INFOejs.Server:main: jetty-9.3.z-SNAPSHOT

2016-10-05 15:40:11.354:INFOejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@6a5fc7f7{/,file:///Users/filippogazzero/Downloads/macserver28/www,AVAILABLE}

2016-10-05 15:40:11.356:INFOejs.AbstractNCSARequestLog:main: Opened /Users/filippogazzero/Downloads/macserver28/logs/b4j-2016_10_05.request.log

2016-10-05 15:40:11.378:INFOejs.ServerConnector:main: Started ServerConnector@60f82f98{HTTP/1.1,[http/1.1]}{0.0.0.0:51041}

2016-10-05 15:40:11.407:INFOejus.SslContextFactory:main: x509=X509@1554909b(rootca,h=[],w=[]) for SslContextFactory@6bf256fa(file:///Users/filippogazzero/Downloads/macserver28/key/key.jks,null)

2016-10-05 15:40:11.408:INFOejus.SslContextFactory:main: x509=X509@6cd8737(jetty,h=[192.168.55.122],w=[]) for SslContextFactory@6bf256fa(file:///Users/filippogazzero/Downloads/macserver28/key/key.jks,null)

2016-10-05 15:40:11.884:INFOejs.ServerConnector:main: Started ServerConnector@10a035a0{SSL,[ssl, http/1.1]}{0.0.0.0:51042}

2016-10-05 15:40:11.884:INFOejs.Server:main: Started @940ms

Build server is ready

https://192.168.55.122:51042

http://192.168.55.122:51041

Build server version: 2.8

Adding user to keychain: b4i_default

success: true, 65

15:40:59| Compilation time: 2861, b4i_default, queue: 0, success: false
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
How can i change build server user name?
You mean user logged? I have only one user (administrator) on my mac
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Solved
i copy the macserver28 directory containing B4iBuildServer.jar to another location (from download to desktop) and works?!?!?!

Thank you for your support again, you give me hint when you said change user...
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Nooooooo!
I have a different problem now, i cannot start b4i-bridge.
I already tryed to unistall the b4i-bridge but now i cannot install it on my dev iphone
when i go to macip:51041 and tap on "Install app" i receive a message:
"Unable to Download App - B4i-Bridge could not be installed at this time"

Aaargh what is happening?
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
Great, yes i have this:
B4X:
#If RELEASE
    #CertificateFile: ios_distribution.cer
    #ProvisionFile: DistributionSDK10.mobileprovision
#Else
    #CertificateFile: ios_development.cer
    #ProvisionFile: SviluppoSDK10.mobileprovision
#End If

Now i've remove the #If RELEASE and works, b4i-bridge and app.
But since yesterday works with this code, is it correct? or i need to change
every time i compile for deploy?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You don't need to recreate B4i-Bridge. You can keep the same one for many months.

I assume that DistributionSDK10 is a store provision profile so it can only be used for builds that are uploaded to the app store. Note that it is important to test your app in release mode as well. Just comment these lines until you are ready to upload the app.
 
Upvote 0

web-yacht

Member
Licensed User
Longtime User
OK perfect.
Yes i installed B4i-Bridge only once and used for month during developing, until today.
Now i know what to do in case of this behaviour.
Everything solved today.

Thank you for your support again
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…