Wednesday, June 20, 2018

ios - Can we convert xcode project (xcodeproj) to swift playground (.playground) format?

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.




  1. Go to File > Save as Workspace Save the Workspace file in the same directory as the .xcodeproj file



  2. Create a new .playground file under Source


  3. Go to File > New > Target. Next go to iOS > Framework & Library > Cocoa Touch Framework


  4. Add any files that you want to access from the .playground to the target membership of the Framework we created earlier.


  5. Select your framework and iOS device from the build sources and Build the project


  6. Import your framework to the .playground file




That's All :)

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...