GithubHelp home page GithubHelp logo

Comments (12)

kastiglione avatar kastiglione commented on April 18, 2024

Thanks for the report. Can you run the below command from your app's lldb console and let me know what the output is?

script print lldb.debugger.GetSelectedTarget().GetTriple()

from chisel.

pvinis avatar pvinis commented on April 18, 2024

this.
x86_64h-apple-macosx

from chisel.

pvinis avatar pvinis commented on April 18, 2024

i actually changed the border function to use NSColor instead of UIColor and its ok now, but i thought it should choose by itself. maybe i have to change everything UI* to NS*?

from chisel.

kastiglione avatar kastiglione commented on April 18, 2024

When did you install or last updated Chisel? We should support this arch as of January 5th, see #69.

from chisel.

kastiglione avatar kastiglione commented on April 18, 2024

Here's the code that chooses whether to use UIColor or NSColor:

def run(self, args, options):
colorClassName = 'UIColor'
isMac = runtimeHelpers.isMacintoshArch()
if isMac:
colorClassName = 'NSColor'
layer = viewHelpers.convertToLayer(args[0])
lldb.debugger.HandleCommand('expr (void)[%s setBorderWidth:(CGFloat)%s]' % (layer, options.width))
lldb.debugger.HandleCommand('expr (void)[%s setBorderColor:(CGColorRef)[(id)[%s %sColor] CGColor]]' % (layer, colorClassName, options.color))
lldb.debugger.HandleCommand('caflush')

from chisel.

pvinis avatar pvinis commented on April 18, 2024

i installed it with brew.
% brew info chisel
chisel: stable 1.1.0
https://github.com/facebook/chisel
/usr/local/Cellar/chisel/1.1.0 (18 files, 112K) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/chisel.rb
==> Caveats
Add the following line to ~/.lldbinit to load chisel when Xcode launches:
command script import /usr/local/opt/chisel/libexec/fblldb.py

from chisel.

pvinis avatar pvinis commented on April 18, 2024

oh.. i dont have that code.. mine was [UIColor ....
is the version in brew that old?

from chisel.

kastiglione avatar kastiglione commented on April 18, 2024

Oh! We need to submit an update to homebrew. In the meantime, you might want to try installing from git, which should be pretty straightforward.

from chisel.

pvinis avatar pvinis commented on April 18, 2024

yep. i will do that. thanks. will it also work for UIWindow stuff etc?

from chisel.

kastiglione avatar kastiglione commented on April 18, 2024

It should, but I'm not entirely sure. The Mac support was provided by @kolinkrewinkel in #45. Please do file any issues you run into and we can look at fixes.

from chisel.

pvinis avatar pvinis commented on April 18, 2024

thanks again.

from chisel.

kastiglione avatar kastiglione commented on April 18, 2024

You're welcome! Thanks for reporting.

from chisel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.