I'm getting the library not found for -lGoogleToolboxForMac while running the xcodebuild command from commandline.
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.
I tried this suggestion command line option but no luck. How do I include lGoogleToolboxForMac part of the build command?
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)
My code pipeline includes the below steps:
- Install Apple Certificate
- Install Mobile Provision file
- Install Node JS
- Install Ionic
- Install Cordova
- Install NPM
- Install Pod
- Ionic Cordova Platform Add ios
- Ionic Cordova Build ios
What I'm missing here?