GoogleToolboxForMac issue compilation IOS

Hello community,

I can’t generate my IPA file in ionicframework pro and in console I get the following error :

:warning: ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/xxxxxxx-ffjfmwdbcobogrgfjaarpuutzuro/Build/Intermediates.noindex/ArchiveIntermediates/xxxxx/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac’
:warning: ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/xxxx-ffjfmwdbcobogrgfjaarpuutzuro/Build/Intermediates.noindex/ArchiveIntermediates/xxxxx/BuildProductsPath/Release-iphoneos/Protobuf’
:warning: ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/xxxxx-ffjfmwdbcobogrgfjaarpuutzuro/Build/Intermediates.noindex/ArchiveIntermediates/xxx/BuildProductsPath/Release-iphoneos/nanopb’

:x: ld: library not found for -lGoogleToolboxForMac

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

[13:02:56]: Exit status: 65

Your export_method in gym is defined as development
[13:02:56]: which might cause problems when signing your application
[13:02:56]: Are you sure want to build and export for development?
[13:02:56]: Please make sure to define the correct export methods when calling
[13:02:56]: gym in your Fastfile or from the command line

Any Help Appreciated ?

Ionic Appflow
You may need to install cocoapods as part of your build process

gem install cocoapods
pod setup
cd platforms/ios && pod install

If using Appflow your going to have to use a cordova hook
Essentially it will run this script after ios platform has been added
config.xml

<platform name="ios">
        <hook src="scripts/ios-after-platform-add.sh" type="after_platform_add" />
...

create a folder called scripts, add file called ios-after-platform-add.sh

#!/bin/sh
gem install cocoapods
pod setup
cd platforms/ios && pod install