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

Able to build IPA in XCode but unable to run codesigndoc on the same target #90

Open
tymrtn opened this issue Aug 31, 2018 · 1 comment

Comments

@tymrtn
Copy link

tymrtn commented Aug 31, 2018

Codesigndoc command from terminal:
`macbook-pro:iphone_project #redacted#$ bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/_scripts/install_wrap-xcode.sh)"
=> Creating a temporary directory for codesigndoc ...
=> Downloading version: 2.1.3
=> Downloading codesigndoc from (https://github.com/bitrise-tools/codesigndoc/releases/download/2.1.3/codesigndoc-Darwin-x86_64) to (/var/folders/hq/pc7mzf914zngfxsz42rzldlc0000gn/T/codesigndocXXXXXX.NlpevAeH/codesigndoc) ...
######################################################################## 100.0%
=> Making it executable ...
=> codesigndoc version: 2.1.3
=> Running codesigndoc scan ...

Export output dir already exists at path: /Users/tylermartin/Code/migym_iphone/codesigndoc_exports

Xcode (xcodebuild) version: Xcode 9.4.1 (Build version 9F2000)

Please drag-and-drop your Xcode Project (.xcodeproj) or Workspace (.xcworkspace) file,
the one you usually open in Xcode, then hit Enter.
(Note: if you have a Workspace file you should most likely use that) : /Users/tylermartin/Code/migym_iphone/MiGymIphone/Targets/MiGym.xcodeproj

🔦 Scanning Schemes ...
$ xcodebuild "-project" "/Users/tylermartin/Code/migym_iphone/MiGymIphone/Targets/MiGym.xcodeproj" "-list"

Select the Scheme you usually use in Xcode
Please select from the list:
[1] : 68 Sports
[2] : Aces Arena
...
[165] : Y of Metro Chi
(type in the option's number, then hit Enter) [1] : 1

🔦 Running an Xcode Archive, to get all the required code signing settings...
$ xcodebuild "-project" "/Users/#redacted#/Code/#redacted#/#redacted#/Targets/#redacted#.xcodeproj" "-scheme" "68 Sports" "clean" "archive" "-archivePath" "/var/folders/hq/pc7mzf914zngfxsz42rzldlc0000gn/T/__codesigndoc__661826536/68 Sports.xcarchive"
.....................................

💡 Saving xcodebuild output into file: /Users/#redacted#/Code/#redacted#/codesigndoc_exports/xcodebuild-output.log
Please check the logfile (/Users/#redacted#/Code/#redacted#/codesigndoc_exports/xcodebuild-output.log) to see what caused the error
and make sure that you can Archive this project from Xcode!

Open the project: /Users/#redacted#/Code/#redacted#/#redacted#/Targets/#redacted#.xcodeproj
and Archive, using the Scheme: 68 Sports


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-tools/codesigndoc/issues
with as many details & logs as you can share!

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

Xcode output log:
xcodebuild-output.log

@tamasbazs
Copy link

Hi @tymrtn,
Thanks for reporting the issue here and adding so many details, it really helped with the debugging! To have the answer here also: For projects that contain both an .xcodeproj and an .xcworkspace files, the .xcworkspace file should be used as it contains information that is needed to be able to export the correct files and run a successful build.

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