You can't really convert your .xcodeproj file to a .playground file but you can add a .playground file to your .xcodeproj file and use it from there
Open up your .xcodeproj file and follow the steps below to add a .playground file to your project.
Go to
File > Save as WorkspaceSave the Workspace file in the same directory as the.xcodeprojfileCreate a new
.playgroundfile underSourceGo to
File > New > Target. Next go toiOS > Framework & Library > Cocoa Touch FrameworkAdd any files that you want to access from the
.playgroundto the target membership of the Framework we created earlier.Select your framework and iOS device from the build sources and Build the project
Import your framework to the
.playgroundfile
That's All :)
No comments:
Post a Comment