ios - 用 Swift 构建的生产力应用程序

标签 ios swift

我尝试在 Apple 提供的 Swift 中构建示例代码

A Productivity App Built in Swift

但是当我运行它时,它会弹出这样的错误:

"Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1"

有人知道怎么解决吗?

最佳答案

实际原因是因为xcode不能代码签名:

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

这是因为您不是注册的 Apple Developer。如果你去项目 ->一般,你会看到有一个警告:

“此产品类型必须使用配置文件构建,但是,未指定签名身份或配置文件,Xcode 可以通过从成员(member)中心下载新的配置文件来解决此问题。”

有一个“修复问题”按钮,您可以在成为注册开发者后输入您的帐户信息。

关于ios - 用 Swift 构建的生产力应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24112954/

相关文章:

ios - react native : How to debug release build?

ios - 自动检测一天中的时间

swift - 快速简单的应用程序总是在模拟器上崩溃

ios - iOS 中的构建对象文件扩展名是什么?

swift - 在 Xcode 8.3 中使用 loadDataFromURL 时出现 swift 错误

ios - DiffableDataSource - 没有动画,但在删除操作期间闪烁

ios - 在 UITableViewCell 中进入编辑模式时隐藏 UITableViewCells(类似于联系人应用程序)

ios - WatchConnectivity 如何在多个 WKInterfaceController 之间共享 session ?

ios - addArrangedSubview 是重叠 View

iphone - 如何获取正在运行的进程的 mach-o uuid?