Error: - Failed encoding Frameworks / libswiftCore.dylib: codes

I am new to ios and cannot recognize the solution for the error shown below

Error Unable to encode framework Framework / libswiftCore.dylib: codesign

Error appearing is shown in image below

What should I do to solve this error?

+8
ios swift
source share
4 answers

I had the same problem when I tried to create an application using the developer profile. Even after setting the correct code signing identifier and preparation profile, the same error appeared. Then I found that libswiftcore.dylib for the test target was not code signed. Therefore, I had to set the correct preparation profile and code signature identification for my test purpose.

+8
source share

Short answer:

Open Settings (Cmd + ,) -> Accounts and add your developer profile to it (I mean your login and password)

Long answer

As soon as I ran into this problem. I decided this: after I installed Xcode on my new Mac, created a new developer certificate on developer.apple.com, created a development profile for my application, and this error appears. It turned out that I forgot to put the developer account on the Settings -> Accounts tab.

0
source share

I set the same provisioning profile for the goal, and then start working.

0
source share

What worked for me: updating Xcode to the latest version (from 7.2.x to 7.3.x). ^^ ;;

0
source share

All Articles