質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
C#

C#はマルチパラダイムプログラミング言語の1つで、命令形・宣言型・関数型・ジェネリック型・コンポーネント指向・オブジェクティブ指向のプログラミング開発すべてに対応しています。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

iOS 8

iOS 8(アイ・オーエス8)は、アップル社が2014年9月に発表したオペレーティングシステムです。iPhone 4sより対応しています。デザイン性の変更はなく、アプリや各種機能が強化されています。また、サードパーティ開発者のために、多くのAPIが開放されています。

Q&A

0回答

301閲覧

UnityでiOS端末のファイルSNS共有を行いたい

fujigiwa

総合スコア0

C#

C#はマルチパラダイムプログラミング言語の1つで、命令形・宣言型・関数型・ジェネリック型・コンポーネント指向・オブジェクティブ指向のプログラミング開発すべてに対応しています。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

iOS 8

iOS 8(アイ・オーエス8)は、アップル社が2014年9月に発表したオペレーティングシステムです。iPhone 4sより対応しています。デザイン性の変更はなく、アプリや各種機能が強化されています。また、サードパーティ開発者のために、多くのAPIが開放されています。

0グッド

0クリップ

投稿2023/05/17 05:38

編集2023/05/17 06:27

iPadにて画面スクリーンショットを共有したく、以下のプラグインを導入しております。
// Social Connector v0.5.0
https://github.com/anchan828/social-connector

しかし、なにも動作せず、コンソール上にエラーが表示されるだけです。

流れとして
1.スクリーンショットを作成
2.保存ボタン押下で「SocialConnector」呼び出し
としております。
他にXcode上で「SocialConnector.mm」のComplie Flagsの箇所に「-fno-objc-arc」を記入しております。

コードは

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 ); } }

になります。

出力されたエラーは

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.984824+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:0x28bb55220 H:|-(0)-[_UIActivityContentTitleView:0x145e5ebd0] (active, names: '|':_UINavigationBarContentView:0x110cfa570 )>", "<NSLayoutConstraint:0x28bb54fa0 _UIActivityContentTitleView:0x145e5ebd0.trailing == _UINavigationBarContentView:0x110cfa570.trailing (active)>", "<NSLayoutConstraint:0x28bb54dc0 LPLinkView:0x16351f800.leading == UILayoutGuide:0x2825a5b20'UIViewLayoutMarginsGuide'.leading (active)>", "<NSLayoutConstraint:0x28bb54a00 LPLinkView:0x16351f800.trailing == UILayoutGuide:0x2825a5b20'UIViewLayoutMarginsGuide'.trailing (active)>", "<NSLayoutConstraint:0x28bb56350 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x110cfa570.width == 6 (active)>", "<NSLayoutConstraint:0x28bb54e60 'UIView-leftMargin-guide-constraint' H:|-(29)-[UILayoutGuide:0x2825a5b20'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIActivityContentTitleView:0x145e5ebd0 )>", "<NSLayoutConstraint:0x28bb548c0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x2825a5b20'UIViewLayoutMarginsGuide']-(8)-|(LTR) (active, names: '|':_UIActivityContentTitleView:0x145e5ebd0 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x28bb54a00 LPLinkView:0x16351f800.trailing == UILayoutGuide:0x2825a5b20'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:54.987060+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:0x28bb53020 UILayoutGuide:0x282569ea0'BackButtonGuide(0x110cfa8b0)'.leading == UILayoutGuide:0x28256e140'UINavigationBarItemContentLayoutGuide'.leading (active)>", "<NSLayoutConstraint:0x28bb52cb0 H:[UILayoutGuide:0x282569ea0'BackButtonGuide(0x110cfa8b0)']-(0)-[UILayoutGuide:0x28256bf00'LeadingBarGuide(0x110cfa8b0)'] (active)>", "<NSLayoutConstraint:0x28bb52da0 H:[UILayoutGuide:0x28256bf00'LeadingBarGuide(0x110cfa8b0)']-(0)-[UILayoutGuide:0x28256bc60'TitleViewGuide(0x110cfa8b0)'] (active)>", "<NSLayoutConstraint:0x28bb52440 UILayoutGuide:0x28256bc60'TitleViewGuide(0x110cfa8b0)'.trailing <= UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide'.trailing (active)>", "<NSLayoutConstraint:0x28bb52d00 'UINavItemContentGuide-leading' H:|-(0)-[UILayoutGuide:0x28256e140'UINavigationBarItemContentLayoutGuide'] (active, names: '|':_UINavigationBarContentView:0x110cfa570 )>", "<NSLayoutConstraint:0x28bb56350 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x110cfa570.width == 6 (active)>", "<NSLayoutConstraint:0x28bb525d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x282563100'UIViewLayoutMarginsGuide']-(16)-|(LTR) (active, names: '|':_UINavigationBarContentView:0x110cfa570 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x28bb52cb0 H:[UILayoutGuide:0x282569ea0'BackButtonGuide(0x110cfa8b0)']-(0)-[UILayoutGuide:0x28256bf00'LeadingBarGuide(0x110cfa8b0)'] (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: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>

になります。
ハングしていないことから必要な宣言がされていない、ということはないかと思います。

何かわかりますでしょうか。

環境
Unity 2020.3.1f1
Social Connector v0.5.0

使用端末
iPad(第7世代)
OS16.3

解決について急いでいるため、以下サイトとマルチ投稿をしております。
https://ja.stackoverflow.com/questions/94868
https://qiita.com/fuzigiwa2/questions/c4cf405dcf7035a2a65b

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問