Skip to content

different behaviour when running codesigndoc via ssh #142

Open
@balazsmaria

Description

@balazsmaria

I have setup a mac1 aws instance and there's two options to run codesign there:

  • vnc into mac,
  • ssh.

the strangest thing is that it doesn't work the same way.

has someone experienced the same? as if it would collect certificates from the wrong place...

ec2-user@ip-172-31-19-232 ios % bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-io/codesigndoc/master/_scripts/install_wrap-xcode.sh)"

 => Creating a temporary directory for codesigndoc ...
 => Downloading version: 2.4.1
 => Downloading codesigndoc from (https://github.com/bitrise-io/codesigndoc/releases/download/2.4.1/codesigndoc-Darwin-x86_64) to (/var/folders/ct/mwqblby96mldcs8y28slrb580000gn/T/codesigndocXXXXXX.TgSTywiY/codesigndoc) ...
############################################################################################################################################################################################################################ 100.0%############################################################################################################################################################################################################################ 100.0%
 => Making it executable ...
 => codesigndoc version: 2.4.1
 => Running codesigndoc scan ...

Scan the directory for project files
You can specify the Xcode project/workscape file to scan with the --file flag.
Found one project file: Runner.xcworkspace.

🔦  Scanning Schemes ...
$ xcodebuild "-workspace" "/Users/ec2-user/development/******/ios/Runner.xcworkspace" "-list"

Xcode (xcodebuild) version: Xcode 12.5.1 (Build version 12E507)


🔦  Running an Xcode Archive, to get all the required code signing settings...
$ xcodebuild "-workspace" "/Users/ec2-user/development/******/ios/Runner.xcworkspace" "-scheme" "Runner" "clean" "archive" "-archivePath" "/var/folders/ct/mwqblby96mldcs8y28slrb580000gn/T/__codesigndoc__301232433/Runner.xcarchive"
........................

Last lines of the build log:
Flutter.framework/_CodeSignature/
Flutter.framework/_CodeSignature/CodeResources

sent 441345353 bytes  received 120 bytes  80244631.45 bytes/sec
total size is 441291065  speedup is 1.00
Warning: unable to build chain to self-signed root for signer "Apple Development: **************"
/Users/ec2-user/Library/Developer/Xcode/DerivedData/Runner-eevskbwlrqijwnacffapcqhuvehp/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/App.framework/App: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code

** ARCHIVE FAILED **


The following build commands failed:
        PhaseScriptExecution Thin\ Binary /Users/ec2-user/Library/Developer/Xcode/DerivedData/Runner-eevskbwlrqijwnacffapcqhuvehp/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh
(1 failure)
Please check the build log to see what caused the error.

Xcode Archive failed.
Open the project: /Users/ec2-user/development/*****/ios/Runner.xcworkspace
and make sure that you can build an Archive, with the scheme: Runner

💡  Saving xcodebuild output into file: /Users/ec2-user/development/*****/ios/codesigndoc_exports/xcodebuild-output.log

------------------------------
First of all please make sure that you can Archive your app from Xcode.
codesigndoc only works if you can archive your app from Xcode.
If you can, and you get a valid .ipa/.app file if you export from Xcode,
please create an issue on GitHub at: https://github.com/bitrise-io/codesigndoc/issues
with as many details & logs as you can share!
------------------------------

Error: failed to run xcodebuild command, error: exit status 65

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions