Performance app built into Swift

I tried to create a sample code in Swift provided by Apple

Performance app built into Swift

But when I started it, it gives this error:

"The 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 this?

+4
source share
4 answers

The actual reason is that xcode cannot encode the character:

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 the project → General, you will see a warning:

" , , Xcode , .

" ", , .

+10

, , . , , .

+2

volatilevar, , , - Yosemite. . Provisioning , , !

  • Yosemite fresh, , Xcode, , Yosemite.
  • , "" " " .

- , . .

0

My solution was to set both “Code Signatures” and “Profiling” to “Automatic” in “My Project” → “Target My Project” → “Build Settings” → “Code Signature Identification” and “Submission Profile”

0
source

Source: https://habr.com/ru/post/1543807/


All Articles