Perfect Playground 简体中文
This project demonstrates how to integrate a Swift playground into your Perfect projects.
Ensure you have installed and activated the latest Xcode 8.3.
Use commands below in your Mac's terminal to activate playground with Perfect support:
$ git clone https://github.com/PerfectExamples/Perfect-Playground.git
$ cd Perfect-Playground
$ open Perfect.xcworkspace/
Once build the workspace (CTRL-B), then you can open the playground file inside this workspace and see some basic Perfect features, such as JSON and UUID support:
To integrate a playground to your own Perfect Swift project, here is the instruction:
- Use
swift package generate-xcodeproj
to create an Xcode project for your Perfect project. - Create an empty workspace in Xcode and save it into your project folder.
- Add the current Perfect Xcode project to this workspace.
- goto Xcode project build settings and change
import
(SWIFT_INCLUDE_PATH) to${PROJECT_DIR}
with therecursive
option. - Create a new playground in the same project folder.
- Add the playground into the same workspace.
- Build the project then active the PerfectLib framework.
- Have fun!
We are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.
If you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to http://jira.perfect.org:8080/servicedesk/customer/portal/1 and raise it.
A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues
For more information on the Perfect project, please visit perfect.org.