LoginSignup
21
21

More than 5 years have passed since last update.

64bitで起動しているかを調査する

Last updated at Posted at 2014-10-28

64bitで起動しているかを調査する

起動時、コンパイル時での方法があります。
AppDelegateなどに記載すればよいかと。

Objective-C
    // 32bit or 64bit
    if (sizeof(void*) == 4) {
        NSLog(@"You're running in 32 bit");
    } else if (sizeof(void*) == 8) {
        NSLog(@"You're running in 64 bit");
    }
Objective-C
#if __LP64__
    NSLog(@"You're running in 64 bit");
#else
    NSLog(@"You're running in 32 bit");
#endif

参考URL

How to check if your app is running in 64bit | iOS Dev Diary
http://pinkstone.co.uk/how-to-check-if-your-app-is-running-in-64bit/

21
21
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
21
21