13
12

More than 5 years have passed since last update.

[Xcode] 環境変数を設定して、iOS10のおせっかいなログを撃退

Posted at

今日の収穫。

iOS 10 からだと思うのですが、コンソールに無駄に(失礼)システムから出力されるので、デバックの為に出力していた print の結果がみずらいと思っていましたが、検索中にこんな情報に遭遇。コンソールに静けさが訪れ快適になったものの、問題のある警告に単に目をつぶってしまう可能性もあるので注意する必要がありそうです。

Xcode のメニューから Product > Scheme > Edit Scheme ... とたどり
Run > Arguments > Environment とさらにたどれば、環境変数を設定できます。ツールバーからでもたどる事ができます。

Screen Shot 2016-11-08 at 14.05.09.png

設定する環境変数は以下のとおりです。

Screen Shot 2016-11-08 at 14.05.36.png

Environment Variables

Name Value
OS_ACTIVITY_MODE disable

情報元

iOS 10: “[App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction”
http://stackoverflow.com/questions/38458170/ios-10-app-if-were-in-the-real-pre-commit-handler-we-cant-actually-add-any

環境に関する情報

Xcode Version 8.1 (8B62)
Apple Swift version 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1)

13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12