title: Detect if Airplane mode is ON or OFF in iOS
body: <p>I am trying to detect the airplane mode using private framework - "AppSupport framework". I have changed the content of RadiosPreferences.h file in it. New content is </p>
  
  <pre><code>@protocol RadiosPreferencesDelegate
  -(void)airplaneModeChanged;
  @end
  
  @interface RadiosPreferences : NSObject
  {
      struct __SCPreferences *_prefs;
      int _applySkipCount;
      id &lt;RadiosPreferencesDelegate&gt; _delegate;
      BOOL _isCachedAirplaneModeValid;
      BOOL _cachedAirplaneMode;
      BOOL notifyForExternalChangeOnly;
  }
  
  - (id)init;
  - (void)dealloc;
  @property(nonatomic) BOOL airplaneMode;
  - (void)refresh;
  - (void)initializeSCPrefs:(id)arg1;
  - (void)notifyTarget:(unsigned int)arg1;
  - (void)synchronize;
  - (void *)getValueForKey:(id)arg1;
  - (void)setValue:(void *)arg1 forKey:(id)arg2;
  @property(nonatomic) BOOL notifyForExternalChangeOnly; // @synthesize notifyForExternalChangeOnly;
  @property(nonatomic) id &lt;RadiosPreferencesDelegate&gt; delegate; // @synthesize delegate=_delegate;
  
  @end
  </code></pre>
  
  <p>I followed below link for this. </p>
  
  <p><a href="https://stackoverflow.com/questions/8264053/detect-if-iphone-is-in-airplane-mode">Detect if iPhone is in Airplane mode?</a></p>
  
  <p>Once done, it gives me this error</p>
  
  <pre><code>ld: framework not found AppSupport
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>I have tried all the solutions. But nothing works for me. Any help appreciated.</p>