Code Monkey home page Code Monkey logo

smartassistant's People

Contributors

martinmitrevski avatar mmitrevs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

smartassistant's Issues

failed to open camera

Hi,

Could you please help me out on this issue? I ran your code but the app failed to open the camera.

environment:
Xcode 12.4 on M1 MacBook Pro
iOS 14.4.1 on iPhone 12 Pro Max

Here is the error displayed in the console:

2021-04-14 21:35:25.645374+0800 SmartAssistant[1617:273948] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x280f1abc0 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x101112460]-(6)-[_UIModernBarButton:0x101110590'Documents'] (active)>",
"<NSLayoutConstraint:0x280f1ac10 'CB_Trailing_Trailing' _UIModernBarButton:0x101110590'Documents'.trailing <= _UIButtonBarButton:0x10110aa60.trailing (active)>",
"<NSLayoutConstraint:0x280f1ba20 'UINav_static_button_horiz_position' _UIModernBarButton:0x101112460.leading == UILayoutGuide:0x281521960'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x280f1ba70 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x10110aa60]-(0)-[UILayoutGuide:0x281521880'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x280f0e3f0 'UINavItemContentGuide-trailing' UILayoutGuide:0x281521880'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x101212bd0.trailing (active)>",
"<NSLayoutConstraint:0x280f60140 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x101212bd0.width == 0 (active)>",
"<NSLayoutConstraint:0x280f141e0 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x281521960'UIViewLayoutMarginsGuide' (active, names: '|':_UINavigationBarContentView:0x101212bd0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x280f1abc0 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x101112460]-(6)-[_UIModernBarButton:0x101110590'Documents'] (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

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.