如何使用可可豆荚的故事板参考?

时间:2017-04-30 23:10:38

标签: ios swift cocoapods

我想使用可可豆荚创建一个使用故事板的私人豆荚。我所做的是创建一个简单的pods,它只有一个Test.storyboard(其中有一个空的vc场景,其故事板id是SecondVC)和一个名为SecondVC的ViewController。在pod的例子中使用storyboard引用来显示第二个VC,但是有一个错误说:没有提供足够的参数;要操作的输入文档在哪里?我通过谷歌搜索解决方案,但没有用。有人可以帮忙吗?这是详细信息:

The project detail screenshot

The error screenshot

在像这样的podspec中:

  s.ios.deployment_target = '9.0'

  s.source_files = 'SecondModule/Classes/**/*'

  s.resource_bundles = {
    'SecondModule' => ['SecondModule/Classes/*.storyboard']
  }

1 个答案:

答案 0 :(得分:0)

是因为文件名是SecondViewController,但引用的ID是SecondVC吗?

enter image description here

这是占位符文本的样子。它要求最初的VC。你能把它设置为SecondViewController吗?