Buld Failed: Archive Failed: Check Dependencies


#1

Using Ionic to Package Build, I get the following error in the log:

[09:53:42]: ▸ Check Dependencies
[09:53:42]: ▸ ** ARCHIVE FAILED **
[09:53:42]: ▸ The following build commands failed:
[09:53:42]: ▸ Check dependencies
[09:53:42]: ▸ (1 failure)

How do I prevent this form happening? I don’t know what is wrong. Can’t find anything usefull on the forum or through google.

The full log, up until the error:

[09:53:27]: ▸ Building CordovaLib/CordovaLib [Release] [09:53:27]: ▸ Check Dependencies [09:53:27]: ▸ Copying CDVWebViewEngineProtocol.h [09:53:27]: ▸ Copying CDVScreenOrientationDelegate.h [09:53:27]: ▸ Copying CDV.h [09:53:27]: ▸ Copying CDVCommandDelegateImpl.h [09:53:27]: ▸ Copying CDVCommandQueue.h [09:53:27]: ▸ Copying CDVWhitelist.h [09:53:27]: ▸ Copying CDVAppDelegate.h [09:53:27]: ▸ Copying CDVPlugin+Resources.h [09:53:27]: ▸ Copying CDVAvailability.h [09:53:27]: ▸ Copying CDVUIWebViewDelegate.h [09:53:27]: ▸ Copying CDVPluginResult.h [09:53:27]: ▸ Copying NSMutableArray+QueueAdditions.h [09:53:27]: ▸ Copying CDVInvokedUrlCommand.h [09:53:27]: ▸ Copying NSDictionary+CordovaPreferences.h [09:53:27]: ▸ Copying CDVPlugin.h [09:53:27]: ▸ Copying CDVURLProtocol.h [09:53:27]: ▸ Copying CDVCommandDelegate.h [09:53:27]: ▸ Copying CDVAvailabilityDeprecated.h [09:53:27]: ▸ Copying CDVUserAgentUtil.h [09:53:27]: ▸ Copying CDVTimer.h [09:53:27]: ▸ Copying CDVConfigParser.h [09:53:27]: ▸ Copying CDVViewController.h [09:53:27]: ▸ Precompiling CordovaLib_Prefix.pch [09:53:30]: ▸ Precompiling CordovaLib_Prefix.pch [09:53:30]: ▸ Compiling CDVViewController.m [09:53:34]: ▸ Compiling NSDictionary+CordovaPreferences.m [09:53:34]: ▸ Compiling CDVAppDelegate.m [09:53:34]: ▸ Compiling CDVUIWebViewDelegate.m [09:53:34]: ▸ Compiling CDVCommandDelegateImpl.m [09:53:34]: ▸ Compiling CDVJSON_private.m [09:53:34]: ▸ Compiling CDVWhitelist.m [09:53:34]: ▸ Compiling CDVInvokedUrlCommand.m [09:53:34]: ▸ Compiling CDVTimer.m [09:53:34]: ▸ Compiling CDVUserAgentUtil.m [09:53:34]: ▸ Compiling CDVConfigParser.m [09:53:34]: ▸ Compiling CDVGestureHandler.m [09:53:34]: ▸ Compiling CDVHandleOpenURL.m [09:53:35]: ▸ Compiling CDVUIWebViewNavigationDelegate.m [09:53:35]: ▸ Compiling NSMutableArray+QueueAdditions.m [09:53:35]: ▸ Compiling CDVCommandQueue.m [09:53:35]: ▸ Compiling CDVPluginResult.m [09:53:35]: ▸ Compiling CDVPlugin+Resources.m [09:53:35]: ▸ Compiling CDVURLProtocol.m [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:35]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) { [09:53:35]: ▸         ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:35]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation]; [09:53:35]: ▸                ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:35]: ▸ NSString* MIMEType = (__bridge_transfer NSString*)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)[assetRepresentation UTI], kUTTagClassMIMEType); [09:53:35]: ▸ ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:35]: ▸ Byte* buffer = (Byte*)malloc((unsigned long)[assetRepresentation size]); [09:53:35]: ▸ ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:66:133: '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] [09:53:35]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil]; [09:53:35]: ▸ ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:66:62: 'getBytes:fromOffset:length:error:' 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] [09:53:35]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil]; [09:53:35]: ▸ ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:60:63: 'ALAsset' is deprecated: first deprecated in iOS 9.0 - Use PHAsset from the Photos framework instead [-Wdeprecated-declarations] [09:53:35]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) { [09:53:35]: ▸ ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:63:17: 'ALAssetRepresentation' is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations] [09:53:35]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation]; [09:53:35]: ▸            ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:74:9: 'ALAssetsLibraryAccessFailureBlock' is deprecated: first deprecated in iOS 9.0 - Use the Photos framework instead [-Wdeprecated-declarations] [09:53:35]: ▸ ALAssetsLibraryAccessFailureBlock failureBlock = ^(NSError* error) { [09:53:35]: ▸            ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:79:9: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations] [09:53:35]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init]; [09:53:35]: ▸                ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:79:60: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations] [09:53:35]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init]; [09:53:35]: ▸            ^ [09:53:35]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:80:24: 'assetForURL:resultBlock:failureBlock:' 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] [09:53:35]: ▸ [assetsLibrary assetForURL:url resultBlock:resultBlock failureBlock:failureBlock]; [09:53:35]: ▸            ^ [09:53:35]: ▸ Compiling CDVLogger.m [09:53:35]: ▸ Compiling CDVUIWebViewEngine.m [09:53:36]: ▸ Compiling CDVPlugin.m [09:53:36]: ▸ Compiling CDVLocalStorage.m [09:53:36]: ▸ Compiling CDVIntentAndNavigationFilter.m [09:53:36]: ▸ Compiling CDVViewController.m [09:53:39]: ▸ Compiling NSDictionary+CordovaPreferences.m [09:53:39]: ▸ Compiling CDVAppDelegate.m [09:53:39]: ▸ Compiling CDVUIWebViewDelegate.m [09:53:39]: ▸ Compiling CDVCommandDelegateImpl.m [09:53:39]: ▸ Compiling CDVJSON_private.m [09:53:39]: ▸ Compiling CDVWhitelist.m [09:53:39]: ▸ Compiling CDVInvokedUrlCommand.m [09:53:39]: ▸ Compiling CDVTimer.m [09:53:39]: ▸ Compiling CDVUserAgentUtil.m [09:53:39]: ▸ Compiling CDVConfigParser.m [09:53:39]: ▸ Compiling CDVGestureHandler.m [09:53:39]: ▸ Compiling CDVHandleOpenURL.m [09:53:39]: ▸ Compiling CDVUIWebViewNavigationDelegate.m [09:53:39]: ▸ Compiling NSMutableArray+QueueAdditions.m [09:53:39]: ▸ Compiling CDVCommandQueue.m [09:53:39]: ▸ Compiling CDVPluginResult.m [09:53:40]: ▸ Compiling CDVPlugin+Resources.m [09:53:40]: ▸ Compiling CDVURLProtocol.m [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:40]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) { [09:53:40]: ▸ ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:40]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation]; [09:53:40]: ▸                ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:40]: ▸ NSString* MIMEType = (__bridge_transfer NSString*)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)[assetRepresentation UTI], kUTTagClassMIMEType); [09:53:40]: ▸ ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/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] [09:53:40]: ▸ Byte* buffer = (Byte*)malloc((unsigned long)[assetRepresentation size]); [09:53:40]: ▸ ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:66:133: '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] [09:53:40]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil]; [09:53:40]: ▸ ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:66:62: 'getBytes:fromOffset:length:error:' 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] [09:53:40]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil]; [09:53:40]: ▸ ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:60:63: 'ALAsset' is deprecated: first deprecated in iOS 9.0 - Use PHAsset from the Photos framework instead [-Wdeprecated-declarations] [09:53:40]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) { [09:53:40]: ▸ ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:63:17: 'ALAssetRepresentation' is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations] [09:53:40]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation]; [09:53:40]: ▸            ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:74:9: 'ALAssetsLibraryAccessFailureBlock' is deprecated: first deprecated in iOS 9.0 - Use the Photos framework instead [-Wdeprecated-declarations] [09:53:40]: ▸ ALAssetsLibraryAccessFailureBlock failureBlock = ^(NSError* error) { [09:53:40]: ▸            ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:79:9: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations] [09:53:40]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init]; [09:53:40]: ▸                ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:79:60: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations] [09:53:40]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init]; [09:53:40]: ▸            ^ [09:53:40]: ▸ ⚠️  /Users/ionic/builds/composoftware/supergastvrij-app/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:80:24: 'assetForURL:resultBlock:failureBlock:' 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] [09:53:40]: ▸ [assetsLibrary assetForURL:url resultBlock:resultBlock failureBlock:failureBlock]; [09:53:40]: ▸            ^ [09:53:40]: ▸ Compiling CDVLogger.m [09:53:40]: ▸ Compiling CDVUIWebViewEngine.m [09:53:40]: ▸ Compiling CDVPlugin.m [09:53:40]: ▸ Compiling CDVLocalStorage.m [09:53:40]: ▸ Compiling CDVIntentAndNavigationFilter.m [09:53:40]: ▸ Building library libCordova.a [09:53:41]: ▸ Building library libCordova.a [09:53:42]: ▸ Building SuperGastvrij/SuperGastvrij [Release] [09:53:42]: ▸ Check Dependencies [09:53:42]: ▸ ** ARCHIVE FAILED ** [09:53:42]: ▸ The following build commands failed: [09:53:42]: ▸ Check dependencies [09:53:42]: ▸ (1 failure)

#2

Tracked it down to Xcode9 package build not working, but using Xcode8 in ionic pro did work.