title: Code pipeline library not found for -lGoogleToolboxForMac
body: <p>I'm getting the library not found for -lGoogleToolboxForMac while running the xcodebuild command from commandline. </p>
  
  <p>Most of the suggestions for this issue is resolving using xcode project. The pipeline calls the Cloud based MacOS agent and doesn't have any physical access to Mac system. </p>
  
  <p>I tried this suggestion <a href="https://stackoverflow.com/questions/20947969/set-other-ldflags-through-command-line-with-xcodebuild/47181980">command line option</a> but no luck. How do I include lGoogleToolboxForMac part of the build command? </p>
  
  <pre><code>2018-12-10T01:51:35.9852980Z 
  2018-12-10T01:51:35.9853530Z ▸ Compiling main.m
  2018-12-10T01:51:35.9854040Z ▸ Compiling UniversalAnalyticsPlugin.m
  2018-12-10T01:51:35.9854790Z ▸ Compiling TouchID.m
  2018-12-10T01:51:35.9855390Z ▸ Compiling TextResponseSerializer.m
  2018-12-10T01:51:35.9856130Z ▸ Compiling TextRequestSerializer.m
  2018-12-10T01:51:35.9856920Z ▸ Linking MyApp
  2018-12-10T01:51:35.9857780Z ⚠️  ld: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-hjgdkeujtihqvvhkvkijivuagzlb/Build/Products/Release-iphoneos/GoogleToolboxForMac'
  2018-12-10T01:51:35.9858710Z ⚠️  ld: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-hjgdkeujtihqvvhkvkijivuagzlb/Build/Products/Release-iphoneos/Protobuf'
  2018-12-10T01:51:35.9859570Z ⚠️  ld: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-hjgdkeujtihqvvhkvkijivuagzlb/Build/Products/Release-iphoneos/nanopb'
  2018-12-10T01:51:35.9860760Z ⚠️  ld: directory not found for option '-Liphoneos'
  2018-12-10T01:51:35.9861030Z 
  2018-12-10T01:51:35.9861860Z ❌  ld: library not found for -lGoogleToolboxForMac
  2018-12-10T01:51:35.9861920Z 
  2018-12-10T01:51:35.9862190Z 
  2018-12-10T01:51:35.9862290Z 
  2018-12-10T01:51:35.9862870Z ❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>My code pipeline includes the below steps:</p>
  
  <ol>
  <li>Install Apple Certificate </li>
  <li>Install Mobile Provision file</li>
  <li>Install Node JS</li>
  <li>Install Ionic</li>
  <li>Install Cordova</li>
  <li>Install NPM </li>
  <li>Install Pod</li>
  <li>Ionic Cordova Platform Add ios</li>
  <li>Ionic Cordova Build ios</li>
  </ol>
  
  <p>What I'm missing here?</p>