codesigndoc icon indicating copy to clipboard operation
codesigndoc copied to clipboard

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

Open tymrtn opened this issue 7 years ago • 1 comments

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

tymrtn avatar Aug 31 '18 18:08 tymrtn

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.

tamasbazs avatar Sep 01 '18 12:09 tamasbazs