Ionic Pro IOS build package fails due to phonegap-plugin-push

Hi,

I am having problem packaging my IOS build on Ionic Pro.
However, the build succeeds when I downgrade phonegap-plugin-push plugin from 2.1.2 to 1.4.5.
Please guide.

Below is the log of my build:

[07:46:33]: ▸ Discovered plugin “cordova-plugin-ionic-webview” in config.xml. Adding it to the project
[07:46:33]: ▸ Fetching plugin “cordova-plugin-ionic-webview@^1.1.16” via npm
[07:46:33]: ▸ Installing “cordova-plugin-ionic-webview” for ios
[07:46:34]: ▸ Adding cordova-plugin-ionic-webview to package.json
[07:46:34]: ▸ Saved plugin info for “cordova-plugin-ionic-webview” to config.xml
[07:46:34]: ▸ Discovered plugin “phonegap-plugin-push” in config.xml. Adding it to the project
[07:46:34]: ▸ Fetching plugin “phonegap-plugin-push@^2.1.2” via npm
[07:46:35]: ▸ Installing “phonegap-plugin-push” for ios
[07:46:41]: ▸ % Total % Received % Xferd Average Speed Time Time Time Current
[07:46:41]: ▸ Dload Upload Total Spent Left Speed
[07:46:42]: ▸ 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
[07:46:42]: ▸ 100 7705k 100 7705k 0 0 5169k 0 0:00:01 0:00:01 --:–:-- 5171k
[07:46:43]: ▸ % Total % Received % Xferd Average Speed Time Time Time Current
[07:46:43]: ▸ Dload Upload Total Spent Left Speed
[07:46:43]: ▸ 100 1089k 100 1089k 0 0 1309k 0 --:–:-- --:–:-- --:–:-- 1311k
[07:46:43]: ▸ % Total % Received % Xferd Average Speed Time Time Time Current
[07:46:43]: ▸ Dload Upload Total Spent Left Speed
[07:46:44]: ▸ 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
[07:46:44]: ▸ 100 2045k 100 2045k 0 0 2105k 0 --:–:-- --:–:-- --:–:-- 2104k
[07:46:45]: ▸ % Total % Received % Xferd Average Speed Time Time Time Current
[07:46:45]: ▸ Dload Upload Total Spent Left Speed
[07:46:46]: ▸ 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
[07:46:46]: ▸ 52 2943k 52 1551k 0 0 1693k 0 0:00:01 --:–:-- 0:00:01 1692k
[07:46:46]: ▸ 100 2943k 100 2943k 0 0 2805k 0 0:00:01 0:00:01 --:–:-- 2806k
[07:46:46]: ▸ Cloning into ‘/var/folders/9c/qg1skf6x65jdn7_5fqls39pr0000gn/T/d20180125-532-1ga5yw0’…
[07:46:47]: ▸ Note: checking out ‘df33f8d296e61d99902570e1941ef1ef3fba0e9c’.
[07:46:47]: ▸ You are in ‘detached HEAD’ state. You can look around, make experimental
[07:46:47]: ▸ changes and commit them, and you can discard any commits you make in this
[07:46:47]: ▸ state without impacting any branches by performing another checkout.
[07:46:47]: ▸ If you want to create a new branch to retain commits you create, you may
[07:46:47]: ▸ do so (now or later) by using -b with the checkout command again. Example:
[07:46:47]: ▸ git checkout -b
[07:46:47]: ▸ Cloning into ‘/var/folders/9c/qg1skf6x65jdn7_5fqls39pr0000gn/T/d20180125-532-ovxoq8’…
[07:46:49]: ▸ Note: checking out ‘2761122b810fe8861004ae785cc3ab39f384d342’.
[07:46:49]: ▸ You are in ‘detached HEAD’ state. You can look around, make experimental
[07:46:49]: ▸ changes and commit them, and you can discard any commits you make in this
[07:46:49]: ▸ state without impacting any branches by performing another checkout.
[07:46:49]: ▸ If you want to create a new branch to retain commits you create, you may
[07:46:49]: ▸ do so (now or later) by using -b with the checkout command again. Example:
[07:46:49]: ▸ git checkout -b
[07:46:52]: ▸ % Total % Received % Xferd Average Speed Time Time Time Current
[07:46:52]: ▸ Dload Upload Total Spent Left Speed
[07:46:52]: ▸ 100 120 0 120 0 0 373 0 --:–:-- --:–:-- --:–:-- 375
[07:46:53]: ▸ 100 241k 100 241k 0 0 337k 0 --:–:-- --:–:-- --:–:-- 900k
[07:47:02]: ▸ Adding phonegap-plugin-push to package.json
[07:47:02]: ▸ Saved plugin info for “phonegap-plugin-push” to config.xml
[07:47:02]: ▸ Discovered plugin “cordova-plugin-device” in config.xml. Adding it to the project
[07:47:02]: ▸ Fetching plugin “cordova-plugin-device@^1.1.7” via npm
[07:47:02]: ▸ Installing “cordova-plugin-device” for ios
[07:47:02]: ▸ Adding cordova-plugin-device to package.json
[07:47:02]: ▸ Saved plugin info for “cordova-plugin-device” to config.xml
[07:47:02]: ▸ --save flag or autosave detected
[07:47:02]: ▸ Saving ios@~4.5.4 into config.xml file …
[07:47:02]: ----------------------------------------
[07:47:02]: — Step: update_project_codesigning —
[07:47:02]: ----------------------------------------

This action (update_project_codesigning) is deprecated
This plugin is deprecated in favor of core action shipped with fastlane, parameters are exactly the same, new action name is automatic_code_signing, there are also some helpers enable_automatic_code_signing, disable_automatic_code_signing where you only need the project path set :slight_smile:

±----------------------±-------------------------------------+
| Summary for Update Project Codesigning |
±----------------------±-------------------------------------+
| path | /Users/ionic/builds/project-1/platf |
| | orms/ios/XXXXXX |
| | Connect.xcodeproj |
| use_automatic_signing | false |
| team_id | XXXXXXXXX |
±----------------------±-------------------------------------+
[07:47:03]: Updating the Automatic Codesigning flag to disabled for the given project ‘/Users/ionic/builds/project-1/platforms/ios/Eyewitness Connect.xcodeproj/project.pbxproj’
[07:47:03]: Seems to be a very old project file format
[07:47:03]: PLEASE BACKUP ALL FILES before doing this.
[07:47:03]: Upgrading project to use xcode8 signing stuff
[07:47:03]: Successfully updated project settings to use ProvisioningStyle ‘Manual’
[07:47:03]: Modified Targets:
[07:47:03]: * Eyewitness Connect
[07:47:03]: -----------------------------------------
[07:47:03]: — Step: update_project_provisioning —
[07:47:03]: -----------------------------------------
[07:47:03]: You’re updating provisioning profiles directly in your project, but have you considered easier ways to do code signing?
[07:47:03]: https://docs.fastlane.tools/codesigning/GettingStarted/
[07:47:03]: Downloading root certificate from (https://www.apple.com/appleca/AppleIncRootCertificate.cer) to path ‘/tmp/AppleIncRootCertificate.cer’
[07:47:03]: Parsing mobile provisioning profile from ‘/Users/ionic/builds/project-1/provision_file.mobileprovision’
[07:47:03]: Going to update project ‘/Users/ionic/builds/project-1/platforms/ios/Eyewitness Connect.xcodeproj’ with UUID
[07:47:03]: Updating target Eyewitness Connect…
[07:47:03]: Updating configuration Debug…
[07:47:03]: Updating configuration Release…
[07:47:03]: Successfully updated project settings in ‘/Users/ionic/builds/project-1/platforms/ios/Eyewitness Connect.xcodeproj’
[07:47:03]: -----------------
[07:47:03]: — Step: gym —
[07:47:03]: -----------------
[07:47:03]: $ xcodebuild -list -workspace /Users/ionic/builds/project-1/platforms/ios/Eyewitness\ Connect.xcworkspace
[07:47:05]: $ xcodebuild -showBuildSettings -workspace /Users/ionic/builds/project-1/platforms/ios/Eyewitness\ Connect.xcworkspace -scheme Eyewitness\ Connect
[07:47:08]: Detected provisioning profile mapping: {:“com.eyewitnesssurveillance.connect”=>“EyewitnessConnectDevelopment”}
±-------------------------------------±-------------------------------------+
| Summary for gym 2.75.1 |
±-------------------------------------±-------------------------------------+
| workspace | /Users/ionic/builds/project-1/platf |
| | orms/ios/Eyewitness |
| | Connect.xcworkspace |
| output_directory | /Users/ionic/builds/project-1 |
| output_name | 3b1112da-314a-4517-9471-9acfa91283f |
| | 6-development |
| scheme | Eyewitness Connect |
| codesigning_identity | iPhone Developer: Prakruti Patel |
| | (XXXXXXXXX) |
| export_team_id | XXXXXXXXXX |
| export_options.provisioningProfiles | EyewitnessConnectDevelopment |
| .com.eyewitnesssurveillance.connect | |
| destination | generic/platform=iOS |
| build_path | /Users/ionic/Library/Developer/Xcod |
| | e/Archives/2018-01-25 |
| clean | false |
| silent | false |
| skip_package_ipa | false |
| export_method | development |
| buildlog_path | ~/Library/Logs/gym |
| skip_profile_detection | false |
| xcode_path | /Applications/Xcode.app |
±-------------------------------------±-------------------------------------+
[07:47:08]: $ set -o pipefail && xcodebuild -workspace /Users/ionic/builds/project-1/platforms/ios/Eyewitness\ Connect.xcworkspace -scheme Eyewitness\ Connect -destination ‘generic/platform=iOS’ -archivePath /Users/ionic/Library/Developer/Xcode/Archives/2018-01-25/3b1112da-314a-4517-9471-9acfa91283f6-development\ 2018-01-25\ 07.47.08.xcarchive archive CODE_SIGN_IDENTITY=iPhone\ Developer:\ Prakruti\ Patel\ (XXXXXX) | tee /Users/ionic/Library/Logs/gym/Eyewitness\ Connect-Eyewitness\ Connect.log | xcpretty
[07:47:10]: ▸ Building CordovaLib/CordovaLib [Release]
[07:47:10]: ▸ Check Dependencies
[07:47:10]: ▸ Copying CDVWebViewEngineProtocol.h
[07:47:10]: ▸ Copying CDVScreenOrientationDelegate.h
[07:47:10]: ▸ Copying CDV.h
[07:47:10]: ▸ Copying CDVCommandDelegateImpl.h
[07:47:10]: ▸ Copying CDVCommandQueue.h
[07:47:10]: ▸ Copying CDVWhitelist.h
[07:47:10]: ▸ Copying CDVAppDelegate.h
[07:47:10]: ▸ Copying CDVPlugin+Resources.h
[07:47:10]: ▸ Copying CDVUIWebViewDelegate.h
[07:47:10]: ▸ Copying CDVAvailability.h
[07:47:10]: ▸ Copying CDVPluginResult.h
[07:47:10]: ▸ Copying NSMutableArray+QueueAdditions.h
[07:47:10]: ▸ Copying CDVInvokedUrlCommand.h
[07:47:10]: ▸ Copying NSDictionary+CordovaPreferences.h
[07:47:10]: ▸ Copying CDVPlugin.h
[07:47:10]: ▸ Copying CDVURLProtocol.h
[07:47:10]: ▸ Copying CDVCommandDelegate.h
[07:47:10]: ▸ Copying CDVAvailabilityDeprecated.h
[07:47:10]: ▸ Copying CDVUserAgentUtil.h
[07:47:10]: ▸ Copying CDVTimer.h
[07:47:10]: ▸ Copying CDVConfigParser.h
[07:47:10]: ▸ Copying CDVViewController.h
[07:47:10]: ▸ Precompiling CordovaLib_Prefix.pch
[07:47:13]: ▸ Precompiling CordovaLib_Prefix.pch
[07:47:13]: ▸ Compiling CDVViewController.m
[07:47:17]: ▸ Compiling NSDictionary+CordovaPreferences.m
[07:47:17]: ▸ Compiling CDVAppDelegate.m
[07:47:17]: ▸ Compiling CDVUIWebViewDelegate.m
[07:47:17]: ▸ Compiling CDVCommandDelegateImpl.m
[07:47:17]: ▸ Compiling CDVJSON_private.m
[07:47:17]: ▸ Compiling CDVWhitelist.m
[07:47:17]: ▸ Compiling CDVInvokedUrlCommand.m
[07:47:17]: ▸ Compiling CDVTimer.m
[07:47:17]: ▸ Compiling CDVUserAgentUtil.m
[07:47:17]: ▸ Compiling CDVConfigParser.m
[07:47:17]: ▸ Compiling CDVGestureHandler.m
[07:47:17]: ▸ Compiling CDVHandleOpenURL.m
[07:47:17]: ▸ Compiling CDVUIWebViewNavigationDelegate.m
[07:47:18]: ▸ Compiling NSMutableArray+QueueAdditions.m
[07:47:18]: ▸ Compiling CDVCommandQueue.m
[07:47:18]: ▸ Compiling CDVPluginResult.m
[07:47:18]: ▸ Compiling CDVPlugin+Resources.m
[07:47:18]: ▸ Compiling CDVURLProtocol.m
[07:47:18]: ▸ :warning:️ /Users/ionic/builds/project-1/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:60:9: ‘ALAssetsLibraryAssetForURLResultBlock’ is deprecated: first deprecated in iOS 9.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead [-Wdeprecated-declarations]
[07:47:18]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) {
[07:47:18]: ▸ ^
[07:47:18]: ▸ :warning:️ /Users/ionic/builds/project-1/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:63:69: ‘defaultRepresentation’ is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
[07:47:18]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation];
[07:47:18]: ▸ ^
[07:47:18]: ▸ :warning:️ /Users/ionic/builds/project-1/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:64:142: ‘UTI’ is deprecated: first deprecated in iOS 9.0 - Use requestImageDataForAsset:options:resultHandler: on PHImageManager for a PHAsset to request image data from the Photos framework and check the dataUTI passed to your result handler instead [-Wdeprecated-declarations]
[07:47:18]: ▸ NSString* MIMEType = (__bridge_transfer NSString*)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)[assetRepresentation UTI], kUTTagClassMIMEType);
[07:47:18]: ▸ ^
[07:47:18]: ▸ :warning:️ /Users/ionic/builds/project-1/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:65:82: ‘size’ is deprecated: first deprecated in iOS 9.0 - Use requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead [-Wdeprecated-declarations]
[07:47:18]: ▸ Byte* buffer = (Byte*)malloc((unsigned long)[assetRepresentation size]);
[07:47:18]: ▸ ^

push/PushPlugin.m:532:49: undeclared selector ‘userHasRemoteNotificationsEnabled’ [-Wundeclared-selector]
[07:48:20]: ▸ enabled = [appDelegate performSelector:@selector(userHasRemoteNotificationsEnabled)];
[07:48:20]: ▸ ^
[07:48:20]: ▸ Compiling CDVDevice.m
[07:48:20]: ▸ Linking Eyewitness
[07:48:20]: ▸ :warning:️ ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac’
[07:48:20]: ▸ :warning:️ ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/Protobuf’
[07:48:20]: ▸ :warning:️ ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/nanopb’
[07:48:20]: ▸ :x: ld: library not found for -lGoogleToolboxForMac
[07:48:20]: ▸ :x: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[07:48:20]: ▸ Linking Eyewitness
[07:48:20]: ▸ :warning:️ ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac’
[07:48:20]: ▸ :warning:️ ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/Protobuf’
[07:48:20]: ▸ :warning:️ ld: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/nanopb’
[07:48:20]: ▸ :x: ld: library not found for -lGoogleToolboxForMac
[07:48:20]: ▸ ** ARCHIVE FAILED **
[07:48:20]: ▸ The following build commands failed:
[07:48:20]: ▸ Ld /Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness\ Connect/IntermediateBuildFilesPath/Eyewitness\ Connect.build/Release-iphoneos/Eyewitness\ Connect.build/Objects-normal/armv7/Eyewitness\ Connect normal armv7
[07:48:20]: ▸ (1 failure)
▸ Building CordovaLib/CordovaLib [Release]
▸ Check Dependencies
▸ Copying CDVWebViewEngineProtocol.h
▸ Copying CDVScreenOrientationDelegate.h
▸ Copying CDV.h
▸ Copying CDVCommandDelegateImpl.h
▸ Copying CDVCommandQueue.h
▸ Copying CDVWhitelist.h
▸ Copying CDVAppDelegate.h
▸ Copying CDVPlugin+Resources.h
▸ Copying CDVUIWebViewDelegate.h
▸ Copying CDVAvailability.h
▸ Copying CDVPluginResult.h
▸ Copying NSMutableArray+QueueAdditions.h
▸ Copying CDVInvokedUrlCommand.h
▸ Copying NSDictionary+CordovaPreferences.h
▸ Copying CDVPlugin.h
▸ Copying CDVURLProtocol.h
▸ Copying CDVCommandDelegate.h
▸ Copying CDVAvailabilityDeprecated.h
▸ Copying CDVUserAgentUtil.h
▸ Copying CDVTimer.h
▸ Copying CDVConfigParser.h
▸ Copying CDVViewController.h
▸ Precompiling CordovaLib_Prefix.pch
▸ Precompiling CordovaLib_Prefix.pch
▸ Compiling CDVViewController.m
▸ Compiling NSDictionary+CordovaPreferences.m
▸ Compiling CDVAppDelegate.m
▸ Compiling CDVUIWebViewDelegate.m
▸ Compiling CDVCommandDelegateImpl.m
▸ Compiling CDVJSON_private.m
▸ Compiling CDVWhitelist.m
▸ Compiling CDVInvokedUrlCommand.m
▸ Compiling CDVTimer.m
▸ Compiling CDVUserAgentUtil.m
▸ Compiling CDVConfigParser.m
▸ Compiling CDVGestureHandler.m
▸ Compiling CDVHandleOpenURL.m
▸ Compiling CDVUIWebViewNavigationDelegate.m
▸ Compiling NSMutableArray+QueueAdditions.m
▸ Compiling CDVCommandQueue.m
▸ Compiling CDVPluginResult.m
▸ Compiling CDVPlugin+Resources.m
▸ Compiling CDVURLProtocol.m
^
▸ Compiling CDVDevice.m
▸ Linking Eyewitness
:warning:️ ld: directory not found for option '-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac’
:warning:️ ld: directory not found for option '-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/Protobuf’
:warning:️ ld: directory not found for option '-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/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)
▸ Linking Eyewitness
:warning:️ ld: directory not found for option '-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac’
:warning:️ ld: directory not found for option '-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/Protobuf’
:warning:️ ld: directory not found for option '-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/nanopb’
:x: ld: library not found for -lGoogleToolboxForMac
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness\ Connect/IntermediateBuildFilesPath/Eyewitness\ Connect.build/Release-iphoneos/Eyewitness\ Connect.build/Objects-normal/armv7/Eyewitness\ Connect normal armv7
(1 failure)
[07:48:20]: Exit status: 65
±--------------±------------------------+
| Build environment |
±--------------±------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.75.1 |
| export_method | development |
| sdk | iPhoneOS11.2.sdk |
±--------------±------------------------+
[07:48:20]: ▸ ld: warning: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac’
[07:48:20]: ▸ ld: warning: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/Protobuf’
[07:48:20]: ▸ ld: warning: directory not found for option ‘-L/Users/ionic/Library/Developer/Xcode/DerivedData/Eyewitness_Connect-gjhfwiyzdljbtfesrplrrkshkxnd/Build/Intermediates.noindex/ArchiveIntermediates/Eyewitness Connect/BuildProductsPath/Release-iphoneos/nanopb’
[07:48:20]: ▸ ld: library not found for -lGoogleToolboxForMac
[07:48:20]: ▸ clang
[07:48:20]:
[07:48:20]: :arrow_up:️ Check out the few lines of raw xcodebuild output above for potential hints on how to solve this error
[07:48:20]: :clipboard: For the complete and more detailed error log, check the full log at:
[07:48:20]: :clipboard: /Users/ionic/Library/Logs/gym/Eyewitness Connect-Eyewitness Connect.log
[07:48:20]:
[07:48:20]: Your export_method in gym is defined as development
[07:48:20]: which might cause problems when signing your application
[07:48:20]: Are you sure want to build and export for development?
[07:48:20]: Please make sure to define the correct export methods when calling
[07:48:20]: gym in your Fastfile or from the command line
[07:48:20]:
[07:48:20]:
[07:48:20]: Looks like fastlane ran into a build/archive error with your project
[07:48:20]: It’s hard to tell what’s causing the error, so we wrote some guides on how
[07:48:20]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[07:48:20]: Before submitting an issue on GitHub, please follow the guide above and make
[07:48:20]: sure your project is set up correctly.
[07:48:20]: fastlane uses xcodebuild commands to generate your binary, you can see the
[07:48:20]: the full commands printed out in yellow in the above log.
[07:48:20]: Make sure to inspect the output above, as usually you’ll find more error information there
[07:48:20]:
[07:48:20]: -------------------------
[07:48:20]: — Step: upload_logs —
[07:48:20]: -------------------------
[07:48:24]: ---------------------------
[07:48:24]: — Step: shell command —
[07:48:24]: ---------------------------
[07:48:24]: -----------------------------
[07:48:24]: — Step: delete_keychain —
[07:48:24]: -----------------------------
[07:48:24]: Error building the application - see the log above
±------------------------------------±-------------------------------------+
| Lane Context |
±------------------------------------±-------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios package_build |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | iPhone Developer: Prakruti Patel |
| | (9S3SVA68G8) |
| DOWNLOAD_CERTS_TEAM_ID | N64C8W83EM |
| DOWNLOAD_CERTS_PROJECT_NAME | Eyewitness Connect |
| DOWNLOAD_CERTS_CERT_PATH | /Users/ionic/builds/project-1/cert_ |
| | file.p12 |
| DOWNLOAD_CERTS_PROVISIONING_PATH | /Users/ionic/builds/project-1/provi |
| | sion_file.mobileprovision |
| SIGH_PROFILE_PATHS | ["/Users/ionic/builds/project-1/pro |
| | vision_file.mobileprovision"] |
±------------------------------------±-------------------------------------+
[07:48:24]: Error building the application - see the log above
±-----±-----------------------±------------+
| fastlane summary |
±-----±-----------------------±------------+
| Step | Action | Time (in s) |
±-----±-----------------------±------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 1 |
| 3 | download_www | 4 |
| 4 | create_keychain | 0 |
| 5 | download_certs | 1 |
| 6 | import_certificate | 0 |
| 7 | npm install --quiet | 40 |
| 8 | cordova platform add | 41 |
| | ios --nofetch | |
| 9 | update_project_codesi | 0 |
| | gning | |
| 10 | update_project_provis | 0 |
| | ioning | |
| :boom: | gym | 77 |
| 12 | upload_logs | 3 |
| 13 | shell command | 0 |
| 14 | delete_keychain | 0 |
±-----±-----------------------±------------+
[07:48:24]: fastlane finished with errors
\e[91mFailed to upload ipa to storage please retry your build.\e[0m
MAC Iteration 1
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048

[!] Error building the application - see the log above
Running after script…
$ clean-up

Hi,

getting the same error with 2.1.2.

And also can confirm downgrading works.

Error seems to be documented here: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#library-not-found-for--lgoogletoolboxformac

However, I do not see how to fix that based solely relying on package.json or config.xml

Best Alex

Same issue - Ionic needs to update the packager online
library not found for -lGoogleToolboxForMac

Manually building for now but part of Paying for Ionic was the ease of use…

This worked for me…

and make sure you set the +x permission as recommended, it did not work until I did so. Being on windows, the git solution is what I used:

1 Like