From c57e73e4eeadf3c68bb19d569987dac06657129e Mon Sep 17 00:00:00 2001 From: oligami-0424 Date: Mon, 18 Dec 2023 17:33:56 +0900 Subject: [PATCH] patch --- build.rs | 4 ++-- rust/macos/objc/nick_name.rs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index dab648f..b131810 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,5 @@ fn main() { - #[cfg(any(target_os = "ios"))] + #[cfg(target_os = "ios")] { // println!("cargo:rustc-link-lib=framework=Foundation"); @@ -10,7 +10,7 @@ fn main() { // println!("cargo:rustc-link-lib=framework=Security"); } - #[cfg(any(target_os = "macos"))] + #[cfg(target_os = "macos")] { println!("cargo:rustc-link-lib=framework=Foundation"); diff --git a/rust/macos/objc/nick_name.rs b/rust/macos/objc/nick_name.rs index ebfe5af..5b5c4cb 100644 --- a/rust/macos/objc/nick_name.rs +++ b/rust/macos/objc/nick_name.rs @@ -27,6 +27,9 @@ impl NickName { // Create an instance of the UIDevice class let superclass = class!(NSApplication); + // デバッグ用にsuperclassの情報を出力 + println!("superclass: {:?}", superclass); + msg_send![class!(NSApplication), sharedApplication] })))) }