iOS Question Code Sign error, iphone two apps

Alberto SN

Member
Licensed User
Hi,

I got 2 apps developed for iPhone.

First have no problem with certificate and provisioning file.

But when I try to generate the second file, shows this error:

B4X:
B4i version: 2.50
Parsing code.    (0.05s)
Compiling code.    (0.15s)
Compiling layouts code.    (0.01s)
Building Xcode project    (0.20s)
Sending data to remote compiler.    Error
Out: Build settings from command line:
    ARCHS = armv7 arm64
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/admin/Downloads/macserver/UploadedProjects/<user id>/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain <user id>
    PRODUCT_NAME = Mapsoo
    PROVISIONING_PROFILE = 88ff86cc-6395-4aa4-a958-e6448d45fa17

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

Check dependencies
Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“mapsoo”) were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.4'


Error: ** BUILD FAILED **


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

I follow the next steps for creation files:

1) On the Build Configuration menu, create new configuration for "mapsoo" app (configuration name and package).
2) On Apple developer I create a new iOS Provisioning Profiles (Distribution) called "mapsoo". Download the file and copy this to the file keys directory (c:\documents and setting\b4i\keys). Also I create a new App ID called "mapsoo" on the identifies-> App IDs option.
3) I got the next files in this directory: B4i.keystore, B4i.p12, certSigningRequest.csr, ios_distribution.cer, mapsoo.mobileprovision.
4) Copy all files to mac VM to the keys directory.
5) When I Build Release App, show me the error.

I got a dude, its necesary create a new certificate? I got one for Ios Distribution.

Also I've next lines in my Main module:

B4X:
#If RELEASE
   #CertificateFile: ios_distribution.cer
   #ProvisionFile: mapsoo.mobileprovision
#END IF

Thank you so much
 

Alberto SN

Member
Licensed User
Hi Erel,

I got the next problem:

1) I create a private sign key from the menu tools:

upload_2016-4-12_20-11-34.png


2) The files are found in the b4i\keys directory:

upload_2016-4-12_20-12-45.png

3) On the Apple Developer page, I create certificate :

upload_2016-4-12_20-13-57.png

When I push in "choose file.." button, I select this file:
upload_2016-4-12_20-15-18.png

And page show me this message:
upload_2016-4-12_20-15-50.png


I can't continue.

Any idea?

Thanks Erel.
 
Upvote 0

Alberto SN

Member
Licensed User
Hi Erel,

I'll tried to create a certificate with a new Apple Developer account but its not work. The temporary user not present and I can't create it on option private sign key, same error.
I got an answer: I got a certSigningRequest.csr from other app, with it is possible to use for many apps? or each app needs our certSigningRequest.csr file?

Thank you so much and sorry for the inconvenience
 
Upvote 0

Alberto SN

Member
Licensed User
This certificate is not valid, show same error:

Invalid CSR
Select a valid Certificate Signing Request.

I got a great problem, need to publish my app, my client is very angry :(

Do I have any alternative to publish my app?
 
Upvote 0

Alberto SN

Member
Licensed User
Yes, I created CSR file, but I had to leave the issue for a while, when I returned to take I've seen the error persists when compiling the application. So I've had to rebuild the certificate and I again found the same error.
 
Upvote 0

Alberto SN

Member
Licensed User
Erel, the problem has been resolved, was macserver version. I used 2.3 version and not installed 2.5 version.

Thanks for all and sorry for the inconveniences
 
Upvote 0
Top