我正在关注这个example关于 Swift + SignalR。这是所有安装步骤:
我使用了另一个教程来帮助我生成这个 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.
我仍然转到 Xcode 项目,将其部署目标设置为 9.0 并尝试构建,这就是我得到的错误
我已经尝试过清理并重新启动并删除 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/