ios - 在 Xcode 项目中,我收到此链接器命令错误,退出代码为 1

标签 ios xcode swift cocoapods

我正在关注这个example关于 Swift + SignalR。这是所有安装步骤: enter image description here

我使用了另一个教程来帮助我生成这个 pod 文件:

\# Uncomment this line to define a global platform for your project platform :ios, '9.0'

target 'SwiftR iOS' do   # Comment this line if you're not using Swift and don't want to use dynamic frameworks   use_frameworks!

  # Pods for SwiftR iOS

  target 'SwiftR iOSTests' do
    inherit! :search_paths
    # Pods for testing   end

end

target 'SwiftR iOS Demo' do   # Comment this line if you're not using Swift and don't want to use dynamic frameworks   # use_frameworks!

  # Pods for SwiftR iOS Demo

end

target 'SwiftR Mac' do   # Comment this line if you're not using Swift and don't want to use dynamic frameworks   use_frameworks!

  # Pods for SwiftR Mac

  target 'SwiftR MacTests' do
    inherit! :search_paths
    # Pods for testing   end

end

target 'SwiftR Mac Demo' do   # Comment this line if you're not using Swift and don't want to use dynamic frameworks   use_frameworks!

  # Pods for SwiftR Mac Demo

end

我的 Xcode 项目已关闭,我尝试在终端中安装它: pods 安装

它运行并显示:

Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.

我可以验证所有框架均未安装: enter image description here

我仍然转到 Xcode 项目,将其部署目标设置为 9.0 并尝试构建,这就是我得到的错误 enter image description here

我已经尝试过清理并重新启动并删除 Xcode 派生数据

最佳答案

该教程的所有者回答了我的问题: 如果您将此示例用于任何用途,我希望您了解最新的 .NET Core、DNX/DNU、donet cli 等。如果您不知道最近的 .NET 更改,请注意意识到 .NET Core 堆栈如今变化非常快,尚未达到 1.0 版本。 SignalRDemo 存储库是更熟悉的 ASP.NET 4.5 堆栈的更好起点。

但是,您的描述听起来像是您正在尝试使用 SwiftR。在这种情况下,只需克隆 SwiftR 存储库,打开 SwiftR.xcodeproj,将目标更改为 iOS 演示应用程序,该项目将在 Xcode 7 中构建/运行。

关于ios - 在 Xcode 项目中,我收到此链接器命令错误,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37308604/

相关文章:

android - 在 Objective C、.net 和 Android 中生成相同的加密字符串 AES/CBC/PKCS7Padding

ios - 如何验证自定义 Eureka 行中的文本字段等对象?

objective-c - 为什么我使用 MapViewController 将无法识别的选择器发送到实例异常? (iOS)

ios - xcode更新从不同分支构建的PCH文件后出现问题

iOS - 创建启用授权的 "white label"iOS 应用涉及什么?

ios - 从应用程序中的任何位置移动到 Root View

ios - 如何在方案中将相对路径(相对于主包)传递给 iOS 应用程序作为 "argument passed on launch"?

swift - UICollectionViewCell 中的元素未突出显示/选择

ios - 在自定义单元格中实现倒计时器

ios - 仅邮件和消息的自定义 UIBarButtonItem 色调颜色错误