Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An empty identity is not valid when signing a binary for the product type 'Application' in xcode version 10.2

Tags:

ios

webrtc

I have compile webrtc ios source code ,then I used the command:

gn gen out/ios --args='target_os="ios" target_cpu="arm64"' --ide=xcode

then I open the workspace with Xcode.

but when I compile the code, Xcode gives me this error below.

An empty identity is not valid when signing a binary for the product type 'Application'. (in target 'AppRTCMobile')

my Xcode version is 10.2, the latest version.

I really don't know how did this happen,can anyone can help me?

my code sign setting is:

everything looks ok.

like image 270
zark Avatar asked Apr 03 '19 07:04

zark


3 Answers

I added CODE_SIGNING_ALLOWED=NO as an additional parameter and that fixed this issue for me.

  • enter image description here
like image 115
Keenen Avatar answered Nov 15 '22 19:11

Keenen


I needed to to turn OFF Automatic manage signing and turn it ON afterwards. It seems like Xcode did fix some inconsistency by that action.

like image 39
vedrano Avatar answered Nov 15 '22 19:11

vedrano


I saw this error in Xcode 12.2b when building to run on a device, but I had not set signing to Automatic, or selected profiles, etc.

Basically I was running and testing on the simulator, then plugged in a device for testing and forgot to change any signing settings.

Perhaps this error is new to Xcode 12.x for that scenario.

like image 38
ODB Avatar answered Nov 15 '22 18:11

ODB