Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A Productivity App Built in Swift

Tags:

ios

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?

like image 287
user3336295 Avatar asked Dec 14 '22 22:12

user3336295


1 Answers

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.

like image 97
volatilevar Avatar answered Jan 04 '23 09:01

volatilevar