Ios Build Error After Adding and Removing Admob Plugin



I recently tried to ad Admob to my ionic app. I added it incorrectly the first time using cordova, then I just tried to remove it. I then added it using ionic, still couldn’t get it working, so I removed that as well. Now I can build Android from the command line. I just can’t build ios. I get the following error:

Ld build/emulator/ normal i386

cd "/Users/bparr/Documents/Ionic Workspace/ComicWars/platforms/ios"


export PATH="/Applications/ Tools/android-sdk/platform-tools:/Applications/Dev Tools/android-sdk/tools:/usr/local/mongodb/bin"

/Applications/ -arch i386 -isysroot /Applications/ -L/Users/bparr/Documents/Ionic\ Workspace/ComicWars/platforms/ios/build/emulator -F/Users/bparr/Documents/Ionic\ Workspace/ComicWars/platforms/ios/build/emulator -FComicWars/Plugins/ -filelist /Users/bparr/Documents/Ionic\ Workspace/ComicWars/platforms/ios/build/ -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework AssetsLibrary /Users/bparr/Documents/Ionic\ Workspace/ComicWars/platforms/ios/build/emulator/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -weak_framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/bparr/Documents/Ionic\ Workspace/ComicWars/platforms/ios/build/ -o /Users/bparr/Documents/Ionic\ Workspace/ComicWars/platforms/ios/build/emulator/

ld: warning: directory not found for option '-FComicWars/Plugins/'

Undefined symbols for architecture i386:

"_OBJC_CLASS_$_CDVReachability", referenced from:

  objc-class-ref in CDVConnection.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following build commands failed:

Ld build/emulator/ normal i386

(1 failure)

Error: /Users/bparr/Documents/Ionic Workspace/ComicWars/platforms/ios/cordova/build: Command failed with exit code 65

at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)

at ChildProcess.emit (events.js:98:17)

at maybeClose (child_process.js:756:16)

at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Any and all help greatly appreciated!


Hi there, have you found a fix for this?