microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

[Question]: Xcode export fail with no meaningful error message #20104

Open lucaszhang99 opened 3 months ago

lucaszhang99 commented 3 months ago

Task name

Xcode@5

Task version

5.238.1

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Macos 14

Question

I'm using signingOption: 'auto' in this task and plist is generated automatically, since I'm only starting using azure to build ios apps, Would be great if someone can explain more about the following error

/usr/bin/xcodebuild -exportArchive -archivePath /Users/runner/work/1/s/DemoProject.xcarchive -exportPath /Users/runner/work/1/s/output/iphoneos/Debug -exportOptionsPlist _XcodeTaskExportOptions.plist | /usr/local/lib/ruby/gems/3.0.0/bin/xcpretty --no-color
2024-07-03 02:55:08.105 xcodebuild[10628:48302] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/cb/pxjkr9gs3xqgtqtlqx_n3j580000gn/T/DemoProject_2024-07-03_02-55-08.103.xcdistributionlogs".
2024-07-03 02:55:08.526 xcodebuild[10628:48302] [MT] IDEDistribution: Command line name "development" is deprecated. Use "debugging" instead.
##[error]Error: /usr/bin/xcodebuild failed with return code: null
ivanduplenskikh commented 3 months ago

@lucaszhang99, could you please share pipeline logs in debug mode to take a look since there is not exit code number there? You can retrieve them by following docs. To set up debug (verbose) mode - you can use options described here.

Also, I found an issue that seems similar https://github.com/microsoft/azure-pipelines-tasks/issues/3136

lucaszhang99 commented 3 months ago

logs_117.zip Please find the debug log, thanks

FeuerSoftwareMoritz commented 1 week ago

Any updates on this? I have the same issue.

ivanduplenskikh commented 1 week ago

@lucaszhang99, @FeuerSoftwareMoritz, apologies for the delayed reply. I've been diligently testing and investigating this issue, but unfortunately, the return code null doesn't offer any clues that could help pinpoint the underlying problem or reproduce it somehow. Additionally, I haven't come across any similar issues with a matching signature.

Could you clarify if this issue occurs sporadically or is it a constant problem affecting your pipelines? I ask because I couldn't find anything specific in the attached log that might shed light on this.