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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With