I develop an ios app in xcode, I want to run this app in swift playground. so i want to convert my .xcodeproj project in .playground format. so any solution?
Asked
Active
Viewed 2,871 times
1 Answers
1
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 Workspace
Save the Workspace file in the same directory as the.xcodeproj
fileCreate a new
.playground
file underSource
Go to
File > New > Target
. Next go toiOS > Framework & Library > Cocoa Touch Framework
Add any files that you want to access from the
.playground
to 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
.playground
file
That's All :)

Rvv
- 201
- 2
- 8