iOS Question Error: ** BUILD FAILED ** Now it is done, it goes

RauchG

Active Member
Licensed User
Longtime User
Hello everyone,

I know this problem has been discussed here many times. I still can't get any further.

I bought a new license for the hosted Mac builder today. I entered a new user ID and was happy that I can compile again.

Unfortunately it doesn't work.

Can someone please help me.

Regards
RauchG
 
Solution
Everything is working now and I can conclude that this error: "security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)" is related to using Java 8 and not the wrong type of certificate.

And after downloading OpenJDK 14 make sure to configure the IDE to use it under Tools - Configure Paths.

RauchG

Active Member
Licensed User
Longtime User
After I changed the "C:\Program Files\Java\jdk-1.8\bin\javac.exe" and recreated the private sign key several times, I now get the following error message.

B4X:
id>/build/XCBuildData/b472bd081f059a8701889ee3728b77e7.xcbuilddata
/Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'B4iProject' from project 'B4iProject')
/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: Guenter Rauch (X3F4883TZP)" 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

RauchG

Active Member
Licensed User
Longtime User
After setting "#MinVersion" to 12, a new error message appears
B4X:
XcodeDefault.xctoolchain/usr/bin/ld -version_details

Build description signature: 81f8c212314995b50b6b652996b65dd7
Build description path: /Users/administrator/Documents/UploadedProjects/<user id>/build/XCBuildData/81f8c212314995b50b6b652996b65dd7.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: Guenter Rauch (X3F4883TZP)" 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

RauchG

Active Member
Licensed User
Longtime User
I did everything in the Apple developer account a long time ago.

The only new thing was the Hosted Builder, with a new user ID
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
New error message
B4X:
B4i Version: 8.51
Parsing code.    (0.24s)
Building folders structure.    (0.11s)
Running custom action.    (0.07s)
Compiling code.    (0.69s)
Compiling layouts code.    (0.02s)
Compiling debugger engine code.    (0.06s)
Building Xcode project.    (0.13s)
Preparing project for builder.    (0.59s)
    Project size: 1.29 MB
Sending data to remote compiler.    Error
Error: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
New error message
B4X:
B4i Version: 8.51
Parsing code.    (0.24s)
Building folders structure.    (0.11s)
Running custom action.    (0.07s)
Compiling code.    (0.69s)
Compiling layouts code.    (0.02s)
Compiling debugger engine code.    (0.06s)
Building Xcode project.    (0.13s)
Preparing project for builder.    (0.59s)
    Project size: 1.29 MB
Sending data to remote compiler.    Error
Error: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
That's really nice of you. But I've already read your latest post three times. And the links too.

I just can't get any further.
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
I've already read half of these links. They're not helping me.

I think only Erel can help here...hopefully he'll read the posts soon.

I have to stop now, I've been messing around with this for 5 hours now.

I can only see circles in front of my eyes.

Thank you very much for your help anyway.
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
When I search, I always come across a post from Erel:

Choose Tools - Sign Key. Set the password and click on the Set Password button.

I've done this about 100 times now. Without success.
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
After a break, I started again, exactly according to Erel's instructions.

I purchased a new hosted Mac builder service today.

by Erel
1. Tools - Path Configuration
2. Go to the key folder and make sure it is empty.
3. Extract the attached zip file in that folder.
4. Tools - Private Sign Key - Set Password: 123456

I solve such cases as follows:
1. Start with a new key folder.
2. Revoke all certificates.
3. Create a new certificate + provisioning profile based on the screenshots in the tutorial.

I downloaded the video tutorial from Erel and recreated everything step by step on the Apple Developer site.

The result of two hours of work is again the same error message (see attachment)

Now I can only hope that one of the experts here in the forum can help me.

greeting
RauchG
 

Attachments

  • B4i_Error.png
    B4i_Error.png
    39.9 KB · Views: 27
  • Hosted Mac Builde.png
    Hosted Mac Builde.png
    32 KB · Views: 28
  • Folder-Keys.png
    Folder-Keys.png
    23.9 KB · Views: 35
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
Hello Erel,
thanks for getting in touch. But that's exactly what I did last night. I'm sure I activated exactly that.

But you probably know better. I'll do it again.

Regards
RauchG
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Everything is working now and I can conclude that this error: "security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)" is related to using Java 8 and not the wrong type of certificate.

And after downloading OpenJDK 14 make sure to configure the IDE to use it under Tools - Configure Paths.
 
Last edited:
Upvote 1
Solution

RauchG

Active Member
Licensed User
Longtime User
Hello everyone,

It never ends! Yesterday I caught a nasty virus and had to reinstall my notebook.

After installing B4i I got the same error message as a few days ago.

"OpenJDK 14 with B4i" is installed and selected in the paths.

What could be wrong now?

RegardsRauchG
 

Attachments

  • Error.png
    Error.png
    44.5 KB · Views: 26
  • Error2.png
    Error2.png
    51.6 KB · Views: 28
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
Because I'm apparently too stupid to set up the iPhone, I'm going to take a break for now.

Maybe there's a developer for "dummies" somewhere. Once I've studied it, I might come back.

Your annoyed
RauchG
 
Upvote 0
Top