teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

5

質疑の追加

2016/10/26 01:57

投稿

yukitoto
yukitoto

スコア53

title CHANGED
File without changes
body CHANGED
@@ -17,8 +17,25 @@
17
17
 
18
18
  ![クラッシュした様子](0f59825e63fdac6029e3a1a052bec8ba.png)
19
19
 
20
- #### 追記
20
+ ### 追記
21
+ #### TakeOneさんからの質問
22
+ sharedApplication().openURL(url!)
23
+ の行だけ削除したらSafariが起動されないだけでクラッシュしなくなるんですか
24
+
25
+ こちらはクラッシュ致しませんでした。
26
+
27
+ > openURLの実行によりアプリはバックグラウンド状態に移行しますから、その際にapplicationWillResignActive()やapplicationDidEnterBackground()が呼ばれます。
28
+ また、戻ってくる際にはapplicationWillEnterForeground()やapplicationDidBecomeActive()が呼ばれます。
29
+ > そのあたりに問題のある処理がないか確認した方がよいと思います。
30
+
31
+ こちらも現在行っていた処理をすべてなくしても同じ現象でした。
32
+ ちなみにapplicationWillEnterForeground()が呼ばれる前にクラッシュしております。
33
+
34
+ > また、[Window]-[Devices]でデハッグ中の端末を選択すると、端末のコンソールメッセージが表示されますから、それを確認すれば、何か見えてなかったものが見えてくるかもしれません。
35
+
36
+ コンソールで確認し、ログを取得出来たので追記させていただきました。
37
+
21
- デバイスログ
38
+ ####デバイスログ
22
39
  ##### Safariへの遷移時
23
40
  ```
24
41
  Sep 4 09:31:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1

4

追記への追記

2016/10/26 01:57

投稿

yukitoto
yukitoto

スコア53

title CHANGED
File without changes
body CHANGED
@@ -40,4 +40,6 @@
40
40
  Sep 4 09:33:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 53689 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
41
41
  Sep 4 09:33:19 SpringBoard[30732]: [MPUSystemMediaControls] Updating supported commands for now playing application.
42
42
  Sep 4 09:33:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
43
- ```
43
+ ```
44
+
45
+ ※時々`CoreAnimation: updates deferred for too long`というメッセージが表示されています。

3

デバイスログの追加

2016/09/04 00:36

投稿

yukitoto
yukitoto

スコア53

title CHANGED
File without changes
body CHANGED
@@ -15,4 +15,29 @@
15
15
 
16
16
  何卒宜しくお願い致します。
17
17
 
18
- ![クラッシュした様子](0f59825e63fdac6029e3a1a052bec8ba.png)
18
+ ![クラッシュした様子](0f59825e63fdac6029e3a1a052bec8ba.png)
19
+
20
+ #### 追記
21
+ デバイスログ
22
+ ##### Safariへの遷移時
23
+ ```
24
+ Sep 4 09:31:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
25
+ Sep 4 09:31:19 --- last message repeated 5 times ---
26
+ Sep 4 09:31:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 17314 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
27
+ Sep 4 09:31:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 53689 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
28
+ Sep 4 09:31:20 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
29
+ Sep 4 09:31:20 --- last message repeated 2 times ---
30
+ Sep 4 09:31:20 SpringBoard[30732]: [MPUSystemMediaControls] Updating supported commands for now playing application.
31
+ Sep 4 09:31:20 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
32
+ ```
33
+
34
+ ##### アプリへ戻ってくる時
35
+ ```
36
+ Sep 4 09:33:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
37
+ Sep 4 09:33:19 syslogd[30718]: ASL Sender Statistics
38
+ Sep 4 09:33:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
39
+ Sep 4 09:33:19 --- last message repeated 3 times ---
40
+ Sep 4 09:33:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 53689 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
41
+ Sep 4 09:33:19 SpringBoard[30732]: [MPUSystemMediaControls] Updating supported commands for now playing application.
42
+ Sep 4 09:33:19 assertiond[30736]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
43
+ ```

2

ミスの修正

2016/09/04 00:35

投稿

yukitoto
yukitoto

スコア53

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- )iOS8・Xcode7.3、swift2という環境でiOSアプリの開発を行っています。
1
+ iOS8・Xcode7.3、swift2という環境でiOSアプリの開発を行っています。
2
2
 
3
3
  現在、あるURLをsafariで起動するという実装を行っており、`UIApplication.sharedApplication().openURL(url!)`を利用することで無事起動することが出来ました。
4
4
  ```swift
@@ -15,4 +15,4 @@
15
15
 
16
16
  何卒宜しくお願い致します。
17
17
 
18
- ![クラッシュした様子](0f59825e63fdac6029e3a1a052bec8ba.png
18
+ ![クラッシュした様子](0f59825e63fdac6029e3a1a052bec8ba.png)

1

クラッシュした様子画像の追加

2016/09/03 22:40

投稿

yukitoto
yukitoto

スコア53

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- iOS8・Xcode7.3、swift2という環境でiOSアプリの開発を行っています。
1
+ )iOS8・Xcode7.3、swift2という環境でiOSアプリの開発を行っています。
2
2
 
3
3
  現在、あるURLをsafariで起動するという実装を行っており、`UIApplication.sharedApplication().openURL(url!)`を利用することで無事起動することが出来ました。
4
4
  ```swift
@@ -13,4 +13,6 @@
13
13
 
14
14
  対処策として、Safariを開いた直後に、ViewControllerを変更する(`self.navigationController?.popViewControllerAnimated(true)`のようなメソッドを呼び出す)とクラッシュは防げます。
15
15
 
16
- 何卒宜しくお願い致します。
16
+ 何卒宜しくお願い致します。
17
+
18
+ ![クラッシュした様子](0f59825e63fdac6029e3a1a052bec8ba.png