簡體   English   中英

在詹金斯上使用fastlane的構建問題失敗

[英]Build issue using fastlane failed on Jenkins

我面臨一個問題。 存檔成功時,構建失敗。 在Jenkins日志下方:

    [33m▸[0m [39;1mProcessing[0m Info.plist
[33m▸[0m [39;1mGenerating 'MyApp.app.dSYM'[0m
[33m▸[0m [39;1mRunning script[0m 'Run Script'
[33m▸[0m [39;1mCopying[0m /Users/sanoj/Library/Developer/Xcode/DerivedData/MyApp-ehrdzbsrtcthuraipdvlkghvcjyx/Build/Intermediates.noindex/ArchiveIntermediates/adhoc/BuildProductsPath/Release-iphoneos/pop.framework
[33m▸[0m [39;1mSigning[0m /Users/sanoj/Library/Developer/Xcode/DerivedData/MyApp-ehrdzbsrtcthuraipdvlkghvcjyx/Build/Intermediates.noindex/ArchiveIntermediates/adhoc/InstallationBuildProductsLocation/Applications/MyApp.app/Frameworks/pop.framework
** ARCHIVE FAILED **


The following build commands failed:
CodeSign /Users/sanoj/Library/Developer/Xcode/DerivedData/MyApp-ehrdzbsrtcthuraipdvlkghvcjyx/Build/Intermediates.noindex/ArchiveIntermediates/adhoc/InstallationBuildProductsLocation/Applications/MyApp.app/Frameworks/pop.framework
(1 failure)
[16:06:32]: [31mExit status: 65[0m

+---------------+-------------------------+
|            [32m[33mBuild environment[0m            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.104.0                 |
| export_method | enterprise              |
| sdk           | iPhoneOS11.4.sdk        |
+---------------+-------------------------+

[16:06:32]: ▸ [35mSigning Identity:     "iPhone Distribution: Network, Inc."[0m
[16:06:32]: ▸ [35m    /usr/bin/codesign --force --sign 6A0EAAC1D162CA8CEE05F09EF98171DF5 --preserve-metadata=identifier,entitlements,flags --timestamp=none /Users/sanoj/Library/Developer/Xcode/DerivedData/MyApp-ehrdzbsrtcthuraipdvlkghvcjyx/Build/Intermediates.noindex/ArchiveIntermediates/adhoc/InstallationBuildProductsLocation/Applications/MyApp.app/Frameworks/pop.framework[0m
[16:06:32]: ▸ [35m/Users/sanoj/Library/Developer/Xcode/DerivedData/MyApp-ehrdzbsrtcthuraipdvlkghvcjyx/Build/Intermediates.noindex/ArchiveIntermediates/adhoc/InstallationBuildProductsLocation/Applications/MyApp.app/Frameworks/pop.framework: errSecInternalComponent[0m
[16:06:32]: ▸ [35mCommand /usr/bin/codesign failed with exit code 1[0m
[16:06:32]: 
[16:06:32]: [31m⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error[0m
[16:06:32]: [33m📋  For the complete and more detailed error log, check the full log at:[0m
[16:06:32]: [33m📋  /Users/sanoj/Library/Logs/gym/MyApp-adhoc.log[0m
[16:06:32]: 
[16:06:32]: [31mLooks like fastlane ran into a build/archive error with your project[0m
[16:06:32]: [31mIt's hard to tell what's causing the error, so we wrote some guides on how[0m
[16:06:32]: [31mto troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/[0m
[16:06:32]: [31mBefore submitting an issue on GitHub, please follow the guide above and make[0m
[16:06:32]: [31msure your project is set up correctly.[0m
[16:06:32]: [31mfastlane uses `xcodebuild` commands to generate your binary, you can see the[0m
[16:06:32]: [31mthe full commands printed out in yellow in the above log.[0m
[16:06:32]: [31mMake sure to inspect the output above, as usually you'll find more error information there[0m
[16:06:32]: 
+------------------+----------+
|        [33mLane Context[0m         |
+------------------+----------+
| DEFAULT_PLATFORM | ios      |
| PLATFORM_NAME    |          |
| LANE_NAME        | ci       |
| BUILD_NUMBER     | 1.14.467 |
| VERSION_NUMBER   | 1.14     |
+------------------+----------+
[16:06:32]: [31mError building the application - see the log above[0m

+------+---------------------------------+-------------+
|                   [32mfastlane summary[0m                   |
+------+---------------------------------+-------------+
| Step | Action                          | Time (in s) |
+------+---------------------------------+-------------+
| 1    | default_platform                | 0           |
| 2    | Switch to configure lane        | 0           |
| 3    | app_name                        | 0           |
| 4    | update_app_identifier           | 0           |
| 5    | increment_build_number          | 1           |
| 6    | increment_version_number        | 1           |
| 7    | Switch to distribution_app lane | 0           |
| 💥   | [31mgym[0m                             | 118         |
+------+---------------------------------+-------------+

[16:06:32]: [31mfastlane finished with errors[0m
[31m
[!] Error building the application - see the log above[0m
Build step 'Execute shell' marked build as failure
Archiving artifacts
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /Users/sanoj/jenkins/workspace/MyApp-1.14/fastlane/xcov_report to /JENKINS_HOME/home/jobs/MyApp-1.14/htmlreports/Code_Coverage_Report
Build step 'Upload to HockeyApp' marked build as failure
Finished: FAILURE

故障排除步驟:

  1. 檢查您使用的是正確的方案。 方案應該存在於Xcode配置中。
  2. 使用手動簽名樣式是因為它需要簽名許可。
  3. 將證書從登錄名從鑰匙串移到系統。
  4. 將配置企業更改為企業。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM