I have .p12 certificate installed and a provisioning profile. When i Run the Project Created in Objective -C , it runs perfectly fine in my iOS Device(ver 7.1) but when I run Project created in Swift it throws me an Code sign error as:
Couldn't codesign /Users/sulabh/Library/Developer/Xcode/DerivedData/FacebookTutorial-fcrwkfacnatqsfcowdihbdhybvhz/Build/Products/Debug-iphoneos/FacebookTutorial.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1
I have tried reinstalling xcode, and removing certificate from keychain, changing Build setting. but nothing works for Swift project. What is the issue and how could I resolve it?
You need to re-generate your provisioning profile from Apple Developer Center. As far as I know they add something new to profiles and that causes the problem.