开发者

How to add Core Data to Static Framework for iOS?

开发者 https://www.devze.com 2023-01-28 20:15 出处:网络
I develop Static Library 开发者_如何学Cin XCode. I want to use Core Data by using Core Data model (file with extension .xcdatamodeld).

I develop Static Library 开发者_如何学Cin XCode. I want to use Core Data by using Core Data model (file with extension .xcdatamodeld).

When I want to add it to project, it's impossible to check in "Get info" field, so it'll be used in this framework.

How should I add such data, so framework will be able to use it.

Thanks and take care plp :)


You add Core Data as a Framework to get access to its headers, like you would with any other (application) project. Your users will then also need to add it as a Framework when they build their apps.

You can't and shouldn't add Core Data statically, if you're thinking of it.

0

精彩评论

暂无评论...
验证码 换一张
取 消