krzysztofzablocki / playgrounds Goto Github PK
View Code? Open in Web Editor NEWBetter playgrounds that work both for Objective-C and Swift
Home Page: http://twitter.com/merowing_
License: Other
Better playgrounds that work both for Objective-C and Swift
Home Page: http://twitter.com/merowing_
License: Other
Upon trying to integrate the playgrounds into our app to play with it, I realized that the app loaded right into the "Main" storyboard of KZPlayground, instead of the one the app itself uses, which incidentally goes by the same name "Main".
Looking at the code, KZPlayground is supposed to be loading the storyboard from the [NSBundle bundleForClass:self]
, but somehow it doesn't seem to be in another bundle, since the wrong storyboard is used to initialize the app.
I have no clue about NSBundle and especially not in combination with CocoaPods, but a quick solution would be to avoid the "Main" name for KZPlayground's storyboard ๐
As a German, the name of this project sends chills up my spine: https://en.wikipedia.org/wiki/Nazi_concentration_camps
I really like the idea behind this project, would you consider renaming it?
Hi, KZPlayground looks so awesome, thank you for it!
I'm running KZPlaygroundExample in Xcode 6.3 but when I comment/uncomment some of the code in samplePlayground
and save, the iOS Simulator doesn't seem to be refreshing itself as in your demo video. Maybe it's something with my environment, for example I saw this message in the debugger:
DYCI directory path is : /Users/myusername/.dyci
but that directory didn't exist, so I created it, but it didn't seem to make a difference. Any ideas on why it wouldn't be dynamically refreshing?
Thanks again!
Hi Krzysztof,
I came across your library, and it seems great, but i am having some trouble making it work.
I get the following error from kicker
Couldn't load index file '/Users/Lena/.dyci/index/a3786fe6a1527268bf426a811b5b0718' ("/Users/Lena/Dev/TestProjects/iOS/testxibstoryboard/testxibstoryboard/Playground.m"). Use default compilation instead
Failed (1)
KZPlayground: Recompiled Playground.m
Do you know why it doesnt compile and how to fix it?
Hi,
I have removed the KZPlayground from the project but it still shows "Injection attempting connection to: 127.0.0.1:31442" in console ,How do i remove this log too ?
Thanks,
Ian
Am I missing something or am I currently on my own and would have to implement macOS support myself?
I had issue with kicker failing on directory that contains space character in its name.
execute("/usr/bin/python #{File.expand_path("~/.dyci/scripts/dyci-recompile.py")} #{"\"%s\"" % File.expand_path(file)}")
Replacing execute command in .kick file with the one above should fix it. The only difference is that I added quotation marks surrouding the file path using string format operator.
My playgrounds now support Swift code, to use that you should use injectionforxcode instead of Dyci, make sure to grab 0.4 Release for some simpler API.
Cocoapods doesn't have 0.4 pushed. Is the package supposed to be installing injection like the 0.3 version? Or is that meant to be a manual extra feature?
Hi I'm trying this out, running the example folder. Hitting control x in xcode produces the following error however
Failed to inject code
Couldn't load index file '/Users/mtozer/.dyci/index/70b499f71e53e5ffce02104efdbdc3f4' (/Users/mtozer/code/fbobjc/VendorLib/KZPlayground/Example/KZPlayground/KZPlaygroundExample.m). Use default compilation instead
Have you seen this before?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.