How to fix code signing error in Xcode 11? - ios

I keep getting this error. I tried everything.
Code Signing Warning: "OSCSender - App" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.2'
Code signing is required for product type 'Application' in SDK 'iOS 10.0' - StickerPackExtension requires a development team error
An empty identity is not valid when signing a binary for the product type 'Application' in xcode version 10.2
I also tried to switch from the new build system to legacy. I have turned on/off automatic signing.
I deleted all provisioning profiles, certificates and my account from Xcode. still the same problem!
I tried to turn off code signing from the .plist but it doesn't let me, even when I run as admin.
Catalina 10.15.2
Xcode Version 11.3

It happens when Xcode doesn't recognize your certificate.
It's just a pain in the ass to solve it, there are a lot of possibilities to help you.
But the first thing you should try is removing in the "Window" tab => Organizer, the provisioning that is in your device. Then re-add them (download them again on the apple website). And try to compile again.
By the way, did you check in the Project Info Window the "code signing identity"?

Related

Conflict archiving my Cordova App on iOS

When I try to make an archive for iOS using xCode for my Cordova App, I have 2 errors message :
TheApp has conflicting provisioning settings. TheApp is automatically signed, but code signing identity iPhone Developer: mail#mail.com (NUMBER) has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
I don't understand what I have to do...
In the "build settings" , try to find Code signing section, in this you have some parts as code signing identity
In the part for developer set this to iPhone Developer , not the one your name mentioned in .
As you are using Cordova CLI you should do the signing with the CLI too.
But if you want to use Xcode, you have to open the build-release.xcconfig file located at Resources/config and remove the two lines with iPhone Distribution value

Code signing error in Xcode 8

I want to run my app on my device instead of on the simulator, but every time I try to run it, I get a code signing error:
'AppName' requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
I added a provisioning profile to the build settings under 'Code signing' but I still keep getting this error. Is there something wrong with my provisioning profile or am I looking in the wrong place? By the way, I used this provisioning profile on the previous version of Xcode and never ran into any problems.
To fix it, I set > TARGETS > General tab > Signing > Automatically manage signing = CHECK MARK
I had a similar problem and it was because my iPhone Developer certificate had expired. You can check this with the Keychain Access app in Utilities.

Code Signing Apple Watch

I wrote an apple watch app for my iOS app. Watch, Watch Extension and iOS app have different bundleID. I wanted to send my app to testers via fabric however I could not archive my app because of code signing issues. I could not solve the problem.
***Watch has conflicting provisioning settings. ***Watch is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'WatchKit App' in SDK 'watchOS 3.0'
Are there any documents that clearly explains how the code signing works? How should I solve signing problem?
To fix this I went into each of the failing targets and selected the 'General' tab, then untick and reticked 'Automatically manage signing'.
I then reselected the correct Team and everything worked. Hope this helps someone else.

A Productivity App Built in Swift

I tried to build the sample code in Swift provided by Apple
A Productivity App Built in Swift
But when I ran it, it pop up an error like this:
"Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1"
Does anyone know how to fix it?
The actual cause is because xcode cannot code sign:
iPhone Developer: no identity found
**error: Couldn't codesign /Users/zhaoj5/Library/Developer/Xcode/DerivedData/Lister-hehrkmcyuflnfucnsqcofjotmglo/Build/Products/Debug-iphonesimulator/com.example.apple-samplecode.Lister.ListerToday.appex/Frameworks/libswift_stdlib_core.dylib: codesign failed with exit code 1**
Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1
This is because you are not a registered Apple Developer. If you go to project -> General, you will see there is a warning:
"This product type must be built using a provisioning profile, however, no signing identity or provisioning profile was specified, Xcode can resolve this issue by downloading a new provisioning profile from the member center."
There is a button "Fix Issue", you can enter your account information once you become a registered developer.
As the flip side to not being set up with a developer profile, I ran into this problem as a result of having duplicate certificates set up. Once I deleted all but one, Lister finally compiled.
As volatilevar mentioned, it's a problem with the project settings, though I assume you are a registered developer with access to the sample code and Yosemite beta. I had the same issue. The Provisioning Profile isn't selected because you downloaded the code and the previously selected profile doesn't exist!
If you installed Yosemite fresh, make sure you export your profile from Xcode where you were using it before and import it again in Yosemite.
Check that your profile and identity are correctly selected under General and Build Settings for the target.
If you need some guidance on moving your profile see exporting and importing.
My solution was to set both Code Signing and Provisioning Profiles to "Automatic" under My Project -> Target My Project ->Build Settings -> Code Signing Identity and Provisioning Profile

Is code signing not handled in Xcode 5? "code signing is required for product type 'Application' in SDK 'iOS 7.1'"

How do I deal with this error? I recently switched a new laptop and I'm having trouble submitting my app to the App Store.
It's complaining about my code signing identity, how do I go about fixing this? I thought Xcode 5 handled a bunch of these profiles and provisioning automatically now?

Resources