Corodva应用构建失败,适用于iOS **归档失败**

问题描述 投票:0回答:1

[我正在尝试将我的iOS科尔多瓦应用程序构建为基于Ionic AppFlow的云构建。 Android版本工作正常。这是控制台输出:

Running with gitlab-runner 10.2.0~beta.147.gbd1f3fcb (bd1f3fcb)
  on ip-10-2-129-245 (dc549c99)
Creating new VM...
Running on Ionics-Mac-4.local via ip-10-2-129-245...
Cloning repository...
Cloning into 'builds/skico/sc-candidate-app-cordova'...
Checking out 16fe59ae as master...
Updating/initializing submodules...
$ fetch-updates || true
Checking for build process updates...
$ build-ios
Setting up project pipeline...
Running build process...
+--------------------------------------------+---------+----------------------------+
|                                   Used plugins                                    |
+--------------------------------------------+---------+----------------------------+
| Plugin                                     | Version | Action                     |
+--------------------------------------------+---------+----------------------------+
| fastlane-plugin-update_project_codesigning | 0.2.0   | update_project_codesigning |
+--------------------------------------------+---------+----------------------------+

[12:27:03]: Sending anonymous analytics information
[12:27:03]: Learn more at https://docs.fastlane.tools/#metrics
[12:27:03]: No personal or sensitive data is sent.
[12:27:03]: You can disable this by adding `opt_out_usage` at 
.........

+---------------------+---------------------------+
|                  Build Summary                  |
+---------------------+---------------------------+
| Job ID              | 6756030                   |
| Node.js version     | v10.16.0                  |
| Cordova CLI version | 9.0.3 ([email protected]) |
| npm version         | 6.9.0                     |
| macOS version       | 10.14.5                   |
| Xcode version       | Xcode 10.2.1              |
|                     | Build version 10E1001     |
+---------------------+---------------------------+

[12:27:08]: --------------------------------
[12:27:08]: --- Step: detect_native_type ---
[12:27:08]: --------------------------------
[12:27:08]: Checking if cordova or capacitor project
[12:27:08]: Cordova project detected
[12:27:08]: -------------------------
[12:27:08]: --- Step: get_web_dir ---
[12:27:08]: -------------------------
[12:27:08]: webDir is `www`
[12:27:08]: ---------------------------------
[12:27:08]: --- Step: add_git_credentials ---
[12:27:08]: ---------------------------------
[12:27:08]: Writing git-credentials files
[12:27:08]: git-credentials successfully added to project
[12:27:08]: -------------------------------
[12:27:08]: --- Step: modify_config_xml ---
[12:27:08]: -------------------------------
[12:27:08]: No custom native config detected.
[12:27:08]: -----------------------------
[12:27:08]: --- Step: create_keychain ---
[12:27:08]: -----------------------------
[12:27:08]: $ security list-keychains -d user
[12:27:08]: ▸ "/Users/ionic/Library/Keychains/login.keychain-db"
[12:27:08]: ----------------------------
[12:27:08]: --- Step: download_certs ---
[12:27:08]: ----------------------------

[12:16:54]: ▸ Compiling NSDictionary+CordovaPreferences.m
[12:16:58]: ▸ Compiling CDVWhitelist.m
[12:16:58]: ▸ Compiling NSMutableArray+QueueAdditions.m
[12:16:58]: ▸ Compiling NSDictionary+CordovaPreferences.m
[12:16:58]: ▸ Compiling CDVWhitelist.m
[12:16:58]: ▸ Compiling CDVViewController.m
[12:16:58]: ▸ Compiling CDVUserAgentUtil.m
[12:16:58]: ▸ Compiling CDVURLProtocol.m
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) {
[12:16:58]: ▸         ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation];
[12:16:58]: ▸                ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ NSString* MIMEType = (__bridge_transfer NSString*)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)[assetRepresentation UTI], kUTTagClassMIMEType);
[12:16:58]: ▸ ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ Byte* buffer = (Byte*)malloc((unsigned long)[assetRepresentation size]);
[12:16:58]: ▸ ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil];
[12:16:58]: ▸ ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil];
[12:16:58]: ▸ ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) {
[12:16:58]: ▸ ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation];
[12:16:58]: ▸            ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetsLibraryAccessFailureBlock failureBlock = ^(NSError* error) {
[12:16:58]: ▸            ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init];
[12:16:58]: ▸                ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init];
[12:16:58]: ▸            ^
[12:16:58]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:16:58]: ▸ [assetsLibrary assetForURL:url resultBlock:resultBlock failureBlock:failureBlock];
[12:16:58]: ▸            ^
[12:16:58]: ▸ Compiling CDVUIWebViewNavigationDelegate.m
[12:16:58]: ▸ Compiling CDVUIWebViewEngine.m
[12:16:58]: ▸ Compiling CDVUIWebViewDelegate.m
[12:16:58]: ▸ Compiling CDVTimer.m
[12:16:58]: ▸ Compiling CDVPluginResult.m
[12:16:58]: ▸ Compiling CDVPlugin.m
[12:16:58]: ▸ Compiling CDVPlugin+Resources.m
[12:16:58]: ▸ Compiling CDVLogger.m
[12:16:58]: ▸ Compiling CDVLocalStorage.m
[12:16:58]: ▸ Compiling CDVJSON_private.m
[12:16:58]: ▸ Compiling CDVInvokedUrlCommand.m
[12:16:58]: ▸ Compiling CDVIntentAndNavigationFilter.m
[12:16:58]: ▸ Compiling CDVHandleOpenURL.m
[12:16:58]: ▸ Compiling CDVGestureHandler.m
[12:16:58]: ▸ Compiling CDVConfigParser.m
[12:16:58]: ▸ Compiling CDVCommandQueue.m
[12:16:58]: ▸ Compiling CDVCommandDelegateImpl.m
[12:16:58]: ▸ Compiling CDVAppDelegate.m
[12:16:58]: ▸ Compiling CDVViewController.m
[12:17:00]: ▸ Compiling CDVUserAgentUtil.m
[12:17:00]: ▸ Building library libCordova.a
[12:17:00]: ▸ Compiling CDVURLProtocol.m
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) {
[12:17:00]: ▸ ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation];
[12:17:00]: ▸                ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ NSString* MIMEType = (__bridge_transfer NSString*)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)[assetRepresentation UTI], kUTTagClassMIMEType);
[12:17:00]: ▸ ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ Byte* buffer = (Byte*)malloc((unsigned long)[assetRepresentation size]);
[12:17:00]: ▸ ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil];
[12:17:00]: ▸ ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ NSUInteger bufferSize = [assetRepresentation getBytes:buffer fromOffset:0.0 length:(NSUInteger)[assetRepresentation size] error:nil];
[12:17:00]: ▸ ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) {
[12:17:00]: ▸ ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetRepresentation* assetRepresentation = [asset defaultRepresentation];
[12:17:00]: ▸            ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetsLibraryAccessFailureBlock failureBlock = ^(NSError* error) {
[12:17:00]: ▸            ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init];
[12:17:00]: ▸                ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init];
[12:17:00]: ▸            ^
[12:17:00]: ▸ ⚠️  /Users/ionic/builds/skico/sc-candidate-app-cordova/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]
[12:17:00]: ▸ [assetsLibrary assetForURL:url resultBlock:resultBlock failureBlock:failureBlock];
[12:17:00]: ▸            ^
[12:17:00]: ▸ Compiling CDVUIWebViewNavigationDelegate.m
[12:17:00]: ▸ Compiling CDVUIWebViewEngine.m
[12:17:00]: ▸ Compiling CDVUIWebViewDelegate.m
[12:17:00]: ▸ Compiling CDVTimer.m
[12:17:00]: ▸ Compiling CDVPluginResult.m
[12:17:00]: ▸ Compiling CDVPlugin.m
[12:17:00]: ▸ Compiling CDVPlugin+Resources.m
[12:17:00]: ▸ Compiling CDVLogger.m
[12:17:00]: ▸ Compiling CDVLocalStorage.m
[12:17:01]: ▸ Compiling CDVJSON_private.m
[12:17:01]: ▸ Compiling CDVInvokedUrlCommand.m
[12:17:01]: ▸ Compiling CDVIntentAndNavigationFilter.m
[12:17:01]: ▸ Compiling CDVHandleOpenURL.m
[12:17:01]: ▸ Compiling CDVGestureHandler.m
[12:17:01]: ▸ Compiling CDVConfigParser.m
[12:17:01]: ▸ Compiling CDVCommandQueue.m
[12:17:01]: ▸ Compiling CDVCommandDelegateImpl.m
[12:17:01]: ▸ Compiling CDVAppDelegate.m
[12:17:01]: ▸ Building library libCordova.a
[12:17:02]: ▸ Running script '[CP] Check Pods Manifest.lock'
[12:17:02]: ▸ Running script 'Copy www directory'
[12:17:03]: ▸ Compiling CDVLaunchScreen.storyboard
[12:17:08]: ▸ Compiling MainViewController.xib
[12:17:09]: ▸ ** ARCHIVE FAILED **
[12:17:09]: ▸ The following build commands failed:
[12:17:09]: ▸ CompileAssetCatalog /Users/ionic/Library/Developer/Xcode/DerivedData/s-gponuhqwbnfygkcatdvqkdodeepi/Build/Intermediates.noindex/ArchiveIntermediates/s/InstallationBuildProductsLocation/Applications/s.app /Users/ionic/builds/skico/sc-candidate-app-cordova/platforms/ios/s/Images.xcassets
[12:17:09]: ▸ (1 failure)

我已经检查过

  • 证书和构建类型匹配
  • config.xml中的WidgetID是正确的
  • 证书,配置文件等已正确配置
  • Ionic中的安全配置文件已正确配置

我使用XCode 10作为构建工具。

全部无济于事。

还有什么可能是错误的原因?

((我无法发布整个输出,如果您需要其他部分,请告诉我)

ios cordova build xcode10 ionic-appflow
1个回答
0
投票

您是否在此项目中添加了webview插件?

© www.soinside.com 2019 - 2024. All rights reserved.