2022.01.20 2022.06.09 未分類のっくん Swiftで実機かシュミレータ判定をする方法 ツイート シェア はてブ 送る Pocket #if targetEnvironment(simulator) // your simulator code #else // your real device code #endif