Code Sign Error with Swift Project

I have a .p12 certificate and a provisioning profile installed. When I run a project created in Objective-C, it works fine on my iOS device (version 7.1), but when I run Project created in Swift, it gives me an error with a code sign like:

Failed to encode / Users / sulabh / Library / Developer / Xcode / DerivedData / FacebookTutorial -fcrwkfacnatqsfcowdihbdhybvhz / Build / Products / Debug-iphoneos / FacebookTutorial.app / Frameworks / libswiftCore.dylib: code failed with exit code 1 Command / Applications / Codecode. app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / swift-stdlib-tool failed with exit code 1

I tried reinstalling xcode and removing the certificate from keychain by changing the Build setting. but nothing works for the Swift project. What is the problem and how can I solve it?

+4
source share
6 answers

You need to recreate the provisioning profile in the Apple Developer Center. As far as I know, they add something new to profiles, and this causes a problem.

+8
source

For me, the problem was that I forgot to install my new training profile after downloading it. I just need to click it to open it in Keychain Access, and suddenly the problem was fixed.

+2
source

, . push-, push-. .

, . .

0

, Xcode ( 7.2.x 7.3.x).

0

, , APP.mobileprovision APP_New.mobileprovision - IOS Provisioning

0
source

I restarted Xcode, cleared the build folder and checked the certificates, provisioning profiles. He worked for me.

0
source

All Articles