title: Cordova Network Plugin does not build on iOS
body: <p>Having installed the <code>cordova-network-plugin</code> like so:</p>
  
  <pre><code>cordova plugin add cordova-network-plugin
  </code></pre>
  
  <p>to a working Cordova project (<strong>build was successful on iOS previously</strong>), the project inexplicably failed to build for iOS (<code>cordova build ios</code>). </p>
  
  <p>It builds fine for Android, but produces the following error message for iOS:</p>
  
  <pre><code>Undefined symbols for architecture i386:
  "_SCNetworkReachabilityCreateWithAddress", referenced from:
    +[CDVReachability reachabilityWithAddress:] in CDVReachability.o
  "_SCNetworkReachabilityCreateWithName", referenced from:
    +[CDVReachability reachabilityWithHostName:] in CDVReachability.o
  "_SCNetworkReachabilityGetFlags", referenced from:
    -[CDVReachability connectionRequired] in CDVReachability.o
    -[CDVReachability currentReachabilityStatus] in CDVReachability.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
    -[CDVReachability startNotifier] in CDVReachability.o
  "_SCNetworkReachabilitySetCallback", referenced from:
    -[CDVReachability startNotifier] in CDVReachability.o
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
    -[CDVReachability stopNotifier] in CDVReachability.o
  ld: symbol(s) not found for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  
  ** BUILD FAILED **
  
  The following build commands failed:
  Ld build/emulator/WowSuchApp.app/WowSuchApp normal i386
  (1 failure)
  Error code 65 for command: xcodebuild with args: -xcconfig,/Users/Doge/Desktop/WowSuchApp/cordova/platforms/ios/cordova/build-debug.xcconfig,-project,WowSuchApp.xcodeproj,ARCHS=i386,-target,WowSuchApp,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/Doge/Desktop/WowSuchApp/cordova/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/Doge/Desktop/WowSuchApp/cordova/platforms/ios/build/sharedpch
  ERROR building one of the platforms: Error: /Users/Doge/Desktop/WowSuchApp/cordova/platforms/ios/cordova/build: Command failed with exit code 2
  You may not have the required environment or OS to build this project
  Error: /Users/Doge/Desktop/WowSuchApp/cordova/platforms/ios/cordova/build: Command failed with exit code 2
  at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
  at ChildProcess.emit (events.js:110:17)
  at maybeClose (child_process.js:1015:16)
  at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
  </code></pre>
  
  <p>To me, it seems the plugin is simply not compatible with <code>i386</code>, though I find this hard to believe. I therefore tried to compile it for <code>armv7</code>, using</p>
  
  <pre><code>cordova build ios --device
  </code></pre>
  
  <p>The error message is similar to that above, except alluding to <code>armv7</code> instead of <code>i386</code>.</p>