使用Parse框架的Xcode 6 Playground?

时间:2023-01-23 18:02:16

I would like to use Parse SDK/Framework my playground file but I get an error if I import it. I can import the iOS frameworks like UIKit

我想使用Parse SDK / Framework我的操场文件但是如果我导入它会出错。我可以导入像UIKit这样的iOS框架

I know there are similar posts to this (How to I import 3rd party frameworks into Xcode Playground?) but i could not make it work for my project.

我知道有类似的帖子(如何将第三方框架导入Xcode Playground?)但我无法使其适用于我的项目。

Any help here is very very much appreciated... I am not a complete newbie but am not an expert So as many details (almost for dummies ;-)) as you can please...Many thanks.

这里的任何帮助都非常感谢...我不是一个完整的新手,但我不是专家因为许多细节(几乎为假人;-)),你可以取悦...非常感谢。

1 个解决方案

#1


1  

To get Parse working in playground you will need to create an Xcode project and include the Parse framework. Then within that project you can add a playground and import frameworks and code written in that project. Hope this helps.

要让Parse在游乐场中工作,您需要创建一个Xcode项目并包含Parse框架。然后在该项目中,您可以添加一个游乐场并导入该项目中编写的框架和代码。希望这可以帮助。

If you are curious I did it for a framework I created and created a Playground inside the projects workspace. In that I import Dollar which is a custom framework but I guess you could import Parse and it should work https://github.com/ankurp/Dollar.swift

如果你很好奇我为我创建的框架做了它,并在项目工作区内创建了一个Playground。在那里我导入美元这是一个自定义框架,但我想你可以导入Parse,它应该工作https://github.com/ankurp/Dollar.swift

#1


1  

To get Parse working in playground you will need to create an Xcode project and include the Parse framework. Then within that project you can add a playground and import frameworks and code written in that project. Hope this helps.

要让Parse在游乐场中工作,您需要创建一个Xcode项目并包含Parse框架。然后在该项目中,您可以添加一个游乐场并导入该项目中编写的框架和代码。希望这可以帮助。

If you are curious I did it for a framework I created and created a Playground inside the projects workspace. In that I import Dollar which is a custom framework but I guess you could import Parse and it should work https://github.com/ankurp/Dollar.swift

如果你很好奇我为我创建的框架做了它,并在项目工作区内创建了一个Playground。在那里我导入美元这是一个自定义框架,但我想你可以导入Parse,它应该工作https://github.com/ankurp/Dollar.swift