【问题标题】:Cocoapods: Create a lib with contain Core Data. but don't get the Core Data entityCocoapods:创建一个包含核心数据的库。但没有得到核心数据实体
【发布时间】:2018-09-26 07:48:09
【问题描述】:

我正在尝试使用 cocoapods 创建一个库。但我有一个问题。
我暂时没有威望。如果你想帮助我,你可以打开下一张图片。 A cocoapods lib of local

当我尝试使用 coredata 时,重新安装了 cocoapods。该项目没有 coredata.xcdatamodeld 文件。
我发现这个解决函数,但不解决这个问题。 This Error with use of undeclared type 它在我构建项目时传递了 coredata_bundle-target。 我希望有人可以帮助我。非常感谢你。 This bundle build result

【问题讨论】:

  • 感谢您的帮助,我正在努力成为更好的自己。再次感谢你! translate from **https://translate.google.com**哈哈

标签: ios xcode cocoapods lib


【解决方案1】:

我找到了解决这个问题的方法。

s.source_files = 'MCLogin/Classes/**/*.{h,m,swift}'

s.resources = 'MCLogin/Classes/**/*.{xcdatamodeld}'

这个 .xcdatamodeld 文件应该放在'resources'文件中

英文不好,希望你不要笑我!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多