Post not yet marked as solved
Post marked as unsolved with 0 replies, 569 views
We have introduced the following plug-ins to share screen screenshots on the iPad.
// Social Connector v0.5.0
https://github.com/anchan828/social-connector
But nothing works, just an error is displayed on the console.
as a flow
Create screenshot
Call "SocialConnector" by pressing the save button
We are.
In addition, "-fno-objc-arc" is entered in the Complie Flags section of "SocialConnector.mm" on Xcode.
the code is
using UnityEngine;
using System.IO;
using System.Collections;
public class FwShareController : MonoBehaviour
{
public void share( string a_path )
{
SocialConnector.SocialConnector.Share( "photography", "http://www.hoge.co.jp/", a_path );
}
}
will be
The output error is
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.
2023-05-16 21:58:54.990213+0900 HogeHoge[49283:7605584] [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:0x28bb52440 UILayoutGuide:0x28256bc60'TitleViewGuide(0x110cfa8b0)'.trailing <= UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide'.trailing (active)>",
"<NSLayoutConstraint:0x28bb52490 UILayoutGuide:0x28256bc60'TitleViewGuide(0x110cfa8b0)'.leading >= UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x28bb56350 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x110cfa570.width == 6 (active)>",
"<NSLayoutConstraint:0x28bb52580 'UIView-leftMargin-guide-constraint' H:|-(16)-[UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x110cfa570 )>",
"<NSLayoutConstraint:0x28bb525d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide']-(16)-|(LTR) (active, names: '|':_UINavigationBarContentView:0x110cfa570 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x28bb52440 UILayoutGuide:0x28256bc60'TitleViewGuide(0x110cfa8b0)'.trailing <= UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide'.trailing (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.
2023-05-16 21:58:55.036905+0900 HogeHoge[49283:7605584] [UICollectionLayout] <_UIActivityCollectionViewCompositionalLayout 0x110cf56b0> ran into an error when computing the layout for section at index 0 in container <_UICollectionLayoutContainer: 0x28c453780 contentSize={-7, 0}; contentInsets={0, 0, 0, 0}}>. UICollectionView behavior with this layout is undefined. Break on UICollectionViewCompositionalLayoutAlertForInvalidLayout to catch this in the debugger.
Error: NSCollectionLayoutItem created with invalid combination of spacing and size specified. This group cannot fit even a single item. Inspect the spacing and size of the items in this group and ensure that they fit into the group when its effective size is {42.666666666666657, 128}.
Group: <NSCollectionLayoutGroup size={.absolute(42.6667), .estimated(128)};
edgeSpacing=<leading=.fixed(0); top=.fixed(0); trailing=.fixed(0); bottom=.fixed(0)>;
contentInsets={0, 0, 0, 0}>
group: subitems=
<NSCollectionLayoutItem size={.absolute(78), .estimated(128)};
edgeSpacing=<leading=.fixed(0); top=.fixed(0); trailing=.fixed(0); bottom=.fixed(0)>;
contentInsets={0, 0, 0, 0}>
interItemSpacing=.fixed(-95.66666666666667);
layoutDirection=.horizontal>
2023-05-16 21:58:55.037265+0900 HogeHoge[49283:7605584] [UICollectionLayout] <_UIActivityCollectionViewCompositionalLayout 0x110cf56b0> ran into an error when computing the layout for section at index 1 in container <_UICollectionLayoutContainer: 0x28c453900 contentSize={-7, 0}; contentInsets={0, 0, 0, 0}}>. UICollectionView behavior with this layout is undefined. Break on UICollectionViewCompositionalLayoutAlertForInvalidLayout to catch this in the debugger.
Error: NSCollectionLayoutItem created with invalid combination of spacing and size specified. This group cannot fit even a single item. Inspect the spacing and size of the items in this group and ensure that they fit into the group when its effective size is {43.333333333333343, 128}.
Group: <NSCollectionLayoutGroup size={.absolute(43.3333), .estimated(128)};
edgeSpacing=<leading=.fixed(0); top=.fixed(0); trailing=.fixed(0); bottom=.fixed(0)>;
contentInsets={0, 0, 0, 0}>
group: subitems=
<NSCollectionLayoutItem size={.absolute(78), .estimated(128)};
edgeSpacing=<leading=.fixed(0); top=.fixed(0); trailing=.fixed(0); bottom=.fixed(0)>;
contentInsets={0, 0, 0, 0}>
interItemSpacing=.fixed(-95.33333333333333);
layoutDirection=.horizontal>
will be
Since it's not hanging, I think it's possible that the necessary declarations aren't being made.
Do you know anything?
environment
Unity 2020.3.1f1
Social Connector v0.5.0
Device used
iPad (7th generation)
OS16.3